This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Audio Ouptut issue on DM365

Hi,

 

I am getting the error in write call. I am just redirect file to audio output device.

First I captured the audio data using cat /dev/dsp > test then play that file using below command getting error during write call.

root@10.100.1.172:/home# cat test > /dev/dsp
cat: write error: Input/output error

I am getting same issue in my application and I am using OSS driver IOCTL.

Please advice me how to resolve this issue.

Thanks,

Dilip

  • Dilip,

    I do not have DM365 software installed to test this out myself, but plan on isntalling it soon if someone else does not chime-in to help offer an explanation.  However, I would recommend you moving away from using /dev/dsp for develpment phase; this is legacy OSS stuff that is being depracated in favor of ALSA.  DM365 uses kernel 2.6.18 which supports ALSA with OSS emulation layer; however, we do not claim we support OSS emulation layer in our literature because this support goes away in newer kernels; therefore as TI and our customer migrate to newer kernels OSS support will disappear; I just wanted to make you aware of this so you do not spend too much time developing for OSS only to find out you will need to re-write code for ALSA in the future...

  • Juan is correct that in general you should be using ALSA as the OSS support is being deprecated and may or may not work in future releases.

    On a more positive note I tried this out on my board and I was able to record and play back a test audio file through the /dev/dsp OSS adapter, I tried this out on both PSP_02_10_00_14 and PSP_02_10_00_11 kernels with success, what software versions are you running? Do you have any modifications?

  • Hi,

    I am using dvsdk_2_10_00_14 and lsp_2_10_11.

    I observed it by running multiple time cat <audio file>  > /dev/dsp. I tried it 5 to 10 times.

    No, I did not modified any thing.

     

     

     

     

  • I tested this out a few more times and I was able to get the i/o error a couple of times going through various sequences of reading in audio data and playing it back out, based on this I assume that you are only getting this error intermittently?

    Unfortunately there may not be an immediate fix for this, as it sounds like a bug (I don't think we could be doing anything wrong here), and because of the upcoming ALSA migration there is a possibility that this will not be fixed, however I will pass the issue on internally and let you know what I hear back.

  • Hi,

    We havet this bug, too.

    How the progressing for this issue?

    Regards,

    Person

  • I don't believe this issue was ever fixed, and I don't believe it will be at this point, the recommendation would be to use ALSA (for example aplay, arecord) in place of OSS which used /dev/dsp. Even in the far newer DVSDK 3.10 for DM365 the /dev/dsp OSS emulation layer does not seem to work properly, though it gives no error, it does not return or output any audio data.