]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: q6asm: handle EOS correctly
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 11 Jun 2020 12:41:53 +0000 (13:41 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 11 Jun 2020 14:58:16 +0000 (15:58 +0100)
commit47983108ca3b38dd5e1720fa398f13a3d1e352c7
tree6d22de890d7c4c5e4cb67c412708a74ace6295d9
parent9315d47f2796cbf4fc963ab3dfdd3a362e6602a9
ASoC: q6asm: handle EOS correctly

Successful send of EOS command does not indicate that EOS is actually
finished, correct event to wait EOS is finished is EOS_RENDERED event.
EOS_RENDERED means that the DSP has finished processing all the buffers
for that particular session and stream.

This patch fixes EOS handling!

Fixes: 5e2cd7d20aed ("ASoC: qdsp6: q6asm: Add support to audio stream apis")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200611124159.20742-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm.c