I have developed a audio driver, the audio ic is interfaced with the TI DM365 processor MCBSP ports.
I am working with the 2.6.32 kernel.
I am able to play the audio using the aplay command. but when i try to open the device using /dev/dsp i am getting the -ve value. it fails to open the device.
when i check the
>> ls /dev/dsp
it is available in the device directory.
I have enabled the Sound OSS related options in the kernel menuconfig. with the same options i am able to open the device for the tlv320aic3x device on DM365 leopard evm.
Could anyone please suggest where i am doing wrong? and help to solve this problem.
Thank you, Sreedhar.
When i tried to open the /dev/dsp in Read only mode it is success.
could you please tell me how i can open the /dev/dsp in read write mode.
Thank you, Sreedhar
In reply to Appalayagari Sreedhar:
Any clue about this issue.
TIA , Sreedhar
You mentioned that you are able to use the dsp node with the aic codec. Can you describe what changes you have done after which it is not working.
In reply to Vaibhav Bedia:
The menuconfig options are same for the aic3x codec and for the codec which i have developed,
when i try to open the open the device using the /dev/dsp it is success for aic3x but failure for my audio codec in READWRITE mode.
the failure happens in READWRITE mode. it is success in READONLY mode.
i feel i am missing something in my audio driver which is causing the problem when i try to open the device using the /dev/dsp.
but after i do aplay and try to open the device using the /dev/dsp in READWRITE mode it works.
I could not figure it out where is the problem. please provide your suggestions.
There might be some flag in the driver setup that you are missing. Can you compare the flags in the aic3x and your custom driver?
Thank you very much. i will do the same.
on further probing and testing.
i found that if i open the device separately O_WRONLY and O_RDONLY mode it works.
if i try to open the device using the O_RDWR mode it fails.
is there any configuration settings i need to check.
I found the problem. in my audio driver.
In snd_soc_dai structure i have commented the
//.symmetric_rates = 1
then this issue not coming.
I verified this structure in tlv320aic3x.c file there is no such
parameter, so i commented this and resolved this problem.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.