]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qdsp6: q6apm-dai: unprepare stream if its already prepared
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 10 Jun 2022 14:48:18 +0000 (15:48 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:21:42 +0000 (16:21 +0100)
commite910ea663dae49381ac244f486a65b625949f9fe
tree0c33b5643ba5f01d8958e7be46a220faf26354ab
parent324e9a35cb6eaa1e0ad7a7bc7408356fa16ca043
ASoC: qdsp6: q6apm-dai: unprepare stream if its already prepared

prepare callback can be called multiple times, so unprepare the stream
if its already prepared.

Without this DSP is not happy to setting the params on a already
prepared graph.

Fixes: 1e92c0f10faa ("ASoC: qdsp6: audioreach: add q6apm-dai support")
Reported-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220610144818.511797-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6apm-dai.c