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: Audio recording broken updating TI 6.1 Linux from 09.02.00.009 to 09.02.00.010

Part Number: AM625


Tool/software:

The audio recording is broken after updating the TI 6.1 Linux kernel from 09.02.00.009 to 09.02.00.010 tag.

The issue was bisected to be related to commit `67d5b2439815 2024-04-29 Jai Luthra dmaengine: ti: k3-udma: Fix teardown for cyclic RX with PDMA`.

The issue can be reproduced using alsa utils and checking the recorded file. In our case this was noticed using alsabat and looping back the audio card in/out.

`alsabat -D hw:"$card",0 -c 2 -f S16_LE -r44100`

alsa-utils version 1.2.6
Entering playback thread (ALSA).
Get period size: 2450  buffer size: 22050
Playing generated audio sine wave
Entering capture thread (ALSA).
Get period size: 2450  buffer size: 22050
Recording ...
Playback completed.
Capture canceled.
BAT analysis: signal has 65536 frames at 44100 Hz, 2 channels, 2 bytes per sample.
/tmp/bat.wav.oaN3rJ is not a riff/wave file
Return value is -22

Setting rx-num-evt and tx-num-evt to 0 (or removing those properties) from the DT work-around the issue.