All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: qcom: q6apm-dai: stop the playback queue from wedging the DSP
@ 2026-11-20 19:47 Perry Dale
  2026-11-20 19:47 ` [PATCH 1/2] ASoC: qcom: q6apm-dai: queue playback buffers only while the graph runs Perry Dale
  2026-11-20 19:47 ` [PATCH 2/2] ASoC: qcom: q6apm-dai: keep a playback stream running across a PCM reset Perry Dale
  0 siblings, 2 replies; 4+ messages in thread
From: Perry Dale @ 2026-11-20 19:47 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, Perry Dale

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-20 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 19:47 [PATCH 0/2] ASoC: qcom: q6apm-dai: stop the playback queue from wedging the DSP Perry Dale
2026-11-20 19:47 ` [PATCH 1/2] ASoC: qcom: q6apm-dai: queue playback buffers only while the graph runs Perry Dale
2026-11-20 19:47 ` [PATCH 2/2] ASoC: qcom: q6apm-dai: keep a playback stream running across a PCM reset Perry Dale
2026-11-20 20:17   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.