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 error

Hi, we use DM8168, RDK4.0, AIC3101.

There has an error for audio playback.

the console prints:

Could not write (writei returned error Input/output error)

Could not write (writei returned error File descriptor in bad state)

what's the problem?

And how can I resolve?

Thanks.

  • 1. Do you get this error always - ie., even one pcm write call is not successful?

    2. What is the behavior with aplay?

    3. Is this observed with standard dvr rdk release? Have you done any customization? What is the hardware platform used (EVM/ DVR or custom board)?

  • We use EVM. when the application runs a long time, I will always get this error always as long as call pcm write.
    I frequently set the playAudioFlag to 0 or 1.
    It received the aac data from the internet, and then decode, send to playback.
    It will frequently call snd_pcm_writei(), and the data length is not fixed with 1024 samples. It maybe be splited into multiple small data.