[PATCH 0/2] ASoC: qcom: q6apm-dai: stop the playback queue from wedging the DSP
From: Perry Dale
Date: Fri Nov 20 2026 - 14:47:43 EST
On the AYN Odin 2 Portal (SM8550) the audio DSP stops answering GPR
commands when a game pauses its stream, and every later prepare times
out until a reboot. q6apm_dai_ack() queues one write per period of the
whole appl_ptr after a trigger stop has reset queue_ptr.
Patch 1 is the fix and is marked for stable. It queues only while the
graph runs and bounds what one call can queue. With it alone, a PCM
reset on a running stream past the first ring stops that stream until
its next prepare, and the DSP keeps answering.
Patch 2 carries a running stream across a PCM reset. It counts the
buffers the DSP holds, queues from the write-done event as well as from
.ack, and stops the stream with an xrun when a send fails. It is not
needed for stable.
Both were built as a module for 7.4-rc1 and run on the Portal with a
test program of ten cases. The unpatched driver fails the first drop
round of that program. Each changelog lists what was run and what was
not, and describes the use of AI coding tools.
Perry Dale (2):
ASoC: qcom: q6apm-dai: queue playback buffers only while the graph
runs
ASoC: qcom: q6apm-dai: keep a playback stream running across a PCM
reset
sound/soc/qcom/qdsp6/q6apm-dai.c | 166 ++++++++++++++++++++++++++++---
1 file changed, 152 insertions(+), 14 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.56.0