linux/sound/soc/qcom
Srinivas Kandagatla be1fae62cf
ASoC: q6apm-lpass-dai: close graph on prepare errors
There is an issue around with error handling and graph management with
the exising code, none of the error paths close the graph, which result in
leaving the loaded graph in dsp, however the driver thinks otherwise.

This can have a nasty side effect specially when we try to load the same
graph to dsp, dsp returns error which leaves the board with no sound and
requires restart.

Fix this by properly closing the graph when we hit errors between
open and close.

Fixes: 30ad723b93 ("ASoC: qdsp6: audioreach: add q6apm lpass dai support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # X13s
Link: https://lore.kernel.org/r/20240613-q6apm-fixes-v1-1-d88953675ab3@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-06-14 15:22:20 +01:00
..
qdsp6 ASoC: q6apm-lpass-dai: close graph on prepare errors 2024-06-14 15:22:20 +01:00
apq8016_sbc.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
apq8096.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.c ASoC: qcom: Add missing module descriptions 2024-05-08 20:51:09 +09:00
common.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
Kconfig ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00
lpass-apq8016.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-cdc-dma.c ASoC: qcom: Fix uninitialized pointer dmactl 2024-02-21 14:01:17 +00:00
lpass-cpu.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-hdmi.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-hdmi.h
lpass-ipq806x.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-lpaif-reg.h
lpass-platform.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7180.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7280.c ASoC: qcom: lpass: Make asoc_qcom_lpass_cpu_platform_remove() return void 2023-10-23 13:29:47 +01:00
lpass.h ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
Makefile ASoC: qcom: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:26 +09:00
sc7180.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
sc7280.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
sc8280xp.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
sdm845.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.c ASoC: qcom: add missing MODULE_DESCRIPTION() macro 2024-06-04 12:57:44 +01:00
sdw.h ASoC: qcom: Add helper for allocating Soundwire stream runtime 2023-11-29 18:53:24 +00:00
sm8250.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
storm.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
x1e80100.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00