]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 14 Mar 2025 17:48:00 +0000 (17:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:43:39 +0000 (10:43 +0200)
commit 5d01ed9b9939b4c726be74db291a982bc984c584 upstream.

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: 9b4fe0f1cd79 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/qcom/qdsp6/q6apm-dai.c

index 12cc05815193037318f01575974e788c43fb2652..de99c6920df87f45cce2e36b4a87751efa838d64 100644 (file)
@@ -24,8 +24,8 @@
 #define PLAYBACK_MIN_PERIOD_SIZE       128
 #define CAPTURE_MIN_NUM_PERIODS                2
 #define CAPTURE_MAX_NUM_PERIODS                8
-#define CAPTURE_MAX_PERIOD_SIZE                4096
-#define CAPTURE_MIN_PERIOD_SIZE                320
+#define CAPTURE_MAX_PERIOD_SIZE                65536
+#define CAPTURE_MIN_PERIOD_SIZE                6144
 #define BUFFER_BYTES_MAX (PLAYBACK_MAX_NUM_PERIODS * PLAYBACK_MAX_PERIOD_SIZE)
 #define BUFFER_BYTES_MIN (PLAYBACK_MIN_NUM_PERIODS * PLAYBACK_MIN_PERIOD_SIZE)
 #define SID_MASK_DEFAULT       0xF