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.

Problem faced when writing to sound device

Hi All,

I have developed a live-streaming application for audio/video playback. I receive a DVB broadcast, decode the data present in it and render the decoded data onto a TV. The application works well but, I am facing a problem with audio playback. My call to "Sound_write" API returns a value of -3 (DMAI_EIO). This happens very frequently, but the interval after which it occurs is random in nature (sometimes after 3 hours, sometimes 3minutes).

The parameters with which I open my sound device are generic in nature. Meaning, the sampling frequency and number  of channels are taken from the input stream. The buffer size with which I open my device is 8192 (as given in TI's sample demos).

Kindly guide me as to how I can avoid this error. Details of my development environment are:

dm6467-t processor

git kernel with sound under  OSS framework

dvsdk version 3_10_00_16Let me know if you require any further information/details. Thanking all in advance and awaiting an early reply.

Regards,

Veenit

  • Hi,

    To my knowledge dvsdk 3_10_00_16 should be using ALSA framework for Audio. We do not support OSS framework

    Regards, Sudhakar

  • Hi Sudhakar,

    Firstly, thanks for the reply.

    Yes, you are correct that dvsdk_3_xx_xx_xx was supporting ALSA and not OSS. I had to move to ALSA since my capturing worked better with OSS than with ALSA. But now I am facing this problem.

    On running my application with "DMAI_DEBUG=1" directive, I get the following error:

    [Sound] Error writing data to sound device(Input/output error)

    Could you suggest a possible way of overcoming the same in this situation.

    Regards,

    Veenit