]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: qcom: q6asm: add q6asm_get_hw_pointer
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Thu, 23 Oct 2025 10:24:31 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 5 Nov 2025 13:28:23 +0000 (13:28 +0000)
commitb6a1d7243ec3a3fe1a3c2969fcd32c802fb5d2a9
tree276da22a1cca33088966dc07e5a1cf4baed1cffb
parente386c2cf3df2b62a6cc78d2f7984102b64753bee
ASoC: qcom: q6asm: add q6asm_get_hw_pointer

Currently q6asm-dai is performing an extra layer of calculation on the hw_ptr,
which is always prone to errors and redundant.

q6asm already has tokens to indentify the pointer pointers which an be
used to get the hw_ptr and this is more accurate then doing the
artificial calculation at upper layers.

Add helper function q6asm_get_hw_pointer() to get this hw_ptr.

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-8-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm.c
sound/soc/qcom/qdsp6/q6asm.h