]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: qcom: q6asm-dai: schedule all available frames to avoid dsp under-runs
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Thu, 23 Oct 2025 10:24:30 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 5 Nov 2025 13:28:22 +0000 (13:28 +0000)
commite386c2cf3df2b62a6cc78d2f7984102b64753bee
treeb0484309c165437c1d668f5ff2d01d6ea5917395
parenta354f030dbce17ab3cf299660a38b162d97f7151
ASoC: qcom: q6asm-dai: schedule all available frames to avoid dsp under-runs

With the existing code, we are only setting up one period at a time, in a
ping-pong buffer style. This triggers lot of underruns in the dsp
leading to jitter noise during audio playback.

Fix this by scheduling all available periods, this will ensure that the dsp
has enough buffer feed and ultimatley fixing the underruns and audio distortion.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Tested-by: Alexey Klimov <alexey.klimov@linaro.org> # RB5, RB3
Link: https://patch.msgid.link/20251023102444.88158-7-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c