]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: q6apm: add q6apm_get_hw_pointer helper
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 14 Mar 2025 17:47:57 +0000 (17:47 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 31 Mar 2025 13:59:35 +0000 (14:59 +0100)
commit0badb5432fd525a00db5630c459b635e9d47f445
treebd3bcfcf4fece66669a7a894e42b07a3968d5237
parent3d4a4411aa8bbc3653ff22a1ff0432eb93d22ae0
ASoC: q6apm: add q6apm_get_hw_pointer helper

Implement an helper function in q6apm to be able to read the current
hardware pointer for both read and write buffers.

This should help q6apm-dai to get the hardware pointer consistently
without it doing manual calculation, which could go wrong in some race
conditions.

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-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6apm.c
sound/soc/qcom/qdsp6/q6apm.h