ASoC: q6asm: add length to write command token
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 27 Jul 2020 09:38:00 +0000 (10:38 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 17:29:33 +0000 (18:29 +0100)
commit50d4e2146cdd48fcc1cd748dfb06dd0fc486eb26
treeabf26c4d4bd114cb8f465efb75123e679563bbd2
parente0c078a8da333eb45745d1c5e4b72f0314b8b742
ASoC: q6asm: add length to write command token

Add length to write command packet token so that we can track exactly
how many bytes are consumed by DSP in the command reply.

This is useful in some use-cases where the end of the file/stream
is not aligned with period size.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20200727093806.17089-5-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c
sound/soc/qcom/qdsp6/q6asm.c
sound/soc/qcom/qdsp6/q6asm.h