Skip to content

Commit e3c9f36

Browse files
committed
ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns.
JIRA: https://issues.redhat.com/browse/RHEL-80657 commit 5d01ed9 Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Date: Fri Mar 14 17:48:00 2025 +0000 ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns. Period sizes less than 6k for capture path triggers overruns in the dsp capture pipeline. Change the period size and number of periods to value which DSP is happy with. Fixes: 9b4fe0f ("ASoC: qdsp6: audioreach: add q6apm-dai support") Cc: stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Tested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Tested-by: Johan Hovold <johan+linaro@kernel.org> Link: https://patch.msgid.link/20250314174800.10142-6-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
1 parent 7a118b6 commit e3c9f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/qcom/qdsp6/q6apm-dai.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#define PLAYBACK_MIN_PERIOD_SIZE 128
2525
#define CAPTURE_MIN_NUM_PERIODS 2
2626
#define CAPTURE_MAX_NUM_PERIODS 8
27-
#define CAPTURE_MAX_PERIOD_SIZE 4096
28-
#define CAPTURE_MIN_PERIOD_SIZE 320
27+
#define CAPTURE_MAX_PERIOD_SIZE 65536
28+
#define CAPTURE_MIN_PERIOD_SIZE 6144
2929
#define BUFFER_BYTES_MAX (PLAYBACK_MAX_NUM_PERIODS * PLAYBACK_MAX_PERIOD_SIZE)
3030
#define BUFFER_BYTES_MIN (PLAYBACK_MIN_NUM_PERIODS * PLAYBACK_MIN_PERIOD_SIZE)
3131
#define COMPR_PLAYBACK_MAX_FRAGMENT_SIZE (128 * 1024)

0 commit comments

Comments
 (0)