• Resolved

/dev/dsp open failure

Hi,

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.

  • Hi,

    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:

    Hi,

    Any clue about this issue.

    TIA , Sreedhar

     

  • In reply to Appalayagari Sreedhar:

    Hi,

    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.

    Regards,

    Vaibhav

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

  • In reply to Vaibhav Bedia:

    Hi,

    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.

    Thank you, Sreedhar

  • In reply to Appalayagari Sreedhar:

    Hi,

    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?

    Regards,

    Vaibhav

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

  • In reply to Vaibhav Bedia:

    Hi vaibhav,

    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.

    -Sreedhar

  • In reply to Appalayagari Sreedhar:

    Hi Vaibhav,

    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.

    -Sreedhar