Thread (4 messages) 4 messages, 2 authors, 2025-06-26

Re: [PATCH v3] ASoC: fsl_sai: Force a software reset when starting in consumer mode

From: Fabio Estevam <festevam@gmail.com>
Date: 2025-06-26 11:58:14
Also in: linux-sound, lkml

Hi Arun,

On Thu, Jun 26, 2025 at 8:52 AM Arun Raghavan [off-list ref] wrote:
From: Arun Raghavan <redacted>

On an imx8mm platform with an external clock provider, when running the
receiver (arecord) and triggering an xrun with xrun_injection, we see a
channel swap/offset. This happens sometimes when running only the
receiver, but occurs reliably if a transmitter (aplay) is also
concurrently running.

It seems that the SAI loses track of frame sync during the trigger stop
-> trigger start cycle that occurs during an xrun. Doing just a FIFO
reset in this case does not suffice, and only a software reset seems to
get it back on track.

This looks like the same h/w bug that is already handled for the
producer case, so we now do the reset unconditionally on config disable.

Signed-off-by: Arun Raghavan <redacted>
Reported-by: Pieterjan Camerlynck <redacted>
What about adding a Fixes tag and Cc stable so that it gets backported
to the stable trees?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help