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.

AM625: aplay: main:831: audio open error: Invalid argument

Part Number: AM625

Command:  aplay jiewo.wav

Platform: AM625 SDK 9.0  SDK8.3

Issue:In SDK9.0,when TF card and U disk are plugged into the development board at the same time, audio playback will have a probability of failure.The probability of failure is about 50%.The errors are as follows:

root@OK62xx:/# aplay jiewo.wav
aplay: main:831: audio open error: Invalid argument

On the same embedded card, SDK8.3 does not have this problem.Therefore, hardware problems can be ruled out.

Please help me to complete the task.

Thanks,

Xiong wei

  • Hi Xiongwei,

    Can you elaborate more on your setup? I assume you are booting the AM62x board with SD card. Along with the SD card, are you also having a TF card/U Disk connected on the board and seeing the issue. Can you share the logs and steps to reproduce.

    Best Regards,

    Suren

  • Hi, Suren

    Thanks for your reply.I am booting the AM62x board with emmc.The problem that the TF card and the U disk must on the board at the same time to produce the probability failure of audio playback. When I have a TF card and one U disk on the board the probability is going to be lower.When I haeve a TF card and three U disks on the board the probability is going to be higher.

    Can you give me some advice.

    1.log-good

    root@OK62xx:~# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: OK6254 [OK6254], device 0: davinci-mcasp.0-es8328-hifi-analog es8328-hifi-analog-0 [davinci-mcasp.0-es8328-hifi-analog es8328-hifi-analog-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    root@OK62xx:~# aplay jiewo.wav
    Playing WAVE 'jiewo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
    ^CAborted by signal Interrupt...
    [  371.215243] ti-udma 485c0100.dma-controller: chan1 teardown timeout!
    

    2.log-bad

    aroot@OK62xx:~# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: OK6254 [OK6254], device 0: davinci-mcasp.0-es8328-hifi-analog es8328-hifi-analog-0 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    root@OK62xx:~# aplay jiewo.wav
    aplay: main:831: audio open error: Invalid argument
    

  • Hi Xiongwei,

    Can you attach the entire boot log in both working and non-working scenarios?

    Also, can you reproduce the issue on our EVM with 9.1 SDK software? Or you are seeing this issue only your custom board?

    Best Regards,

    Suren