Part Number: SK-AM62A-LP
Hello,
We have been having problems playing consecutive audio files on the AM62 platform. This occurs on our custom hardware as well as the TI EVM.
For example, using the TI AM62A EVM:
root@am62axx-evm:/opt/edgeai-gst-apps# aplay /usr/share/sounds/alsa/Noise.wav /usr/share/sounds/alsa/Noise.wav /usr/share/sounds/alsa/Noise.wav /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[ 73.356455] davinci-mcasp 2b10000.audio-controller: Transmit buffer underflow underrun!!! (at least 1.508 ms long)
[ 73.387715] davinci-mcasp 2b10000.audio-controller: Transmit buffer underflow underrun!!! (at least 0.028 ms long)
[ 73.416359] davinci-mcasp 2b10000.audio-controller: Transmit buffer underflow
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1416: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0
[ 74.440187] ti-udma 485c0100.dma-controller: chan1 teardown timeout!
root@am62axx-evm:/opt/edgeai-gst-apps# uname -a
Linux am62axx-evm 6.1.46-gf8110d9ce8 #1 SMP PREEMPT Mon Sep 4 04:45:34 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
I should note that in this example with three files on the command line, the audio file does play once before printing those errrors. In addition, if you call aplay multiple times in a row with a single WAV file it does seem to work.
Our customer was unable to play consecutive sound files in a Qt application, which led to this testing with the aplay application.
Is there a workaround or fix? Previous e2e issues mentioned that a similar problem should be fixed in Processor SDK 9.0 (<e2e.ti.com/.../processor-sdk-am62x-audio-playback-dma-teardown-complete-not-seen-after-dma-teardown-requested> , but this test was performed with the 9.x SDK SD card image. The teardown timeout message still exists.
If I missed something, please let me know.
Thanks,
-Bob