linux-stable/sound/soc/qcom/qdsp6
Srinivas Kandagatla 4739d88ad8
ASoC: qdsp6: q6routing: Fix return value from msm_routing_put_audio_mixer
msm_routing_put_audio_mixer() can return incorrect value in various scenarios.

scenario 1:
amixer cset iface=MIXER,name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1
amixer cset iface=MIXER,name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0

return value is 0 instead of 1 eventhough value was changed

scenario 2:
amixer cset iface=MIXER,name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1
amixer cset iface=MIXER,name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1

return value is 1 instead of 0 eventhough the value was not changed

scenario 3:
amixer cset iface=MIXER,name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0
return value is 1 instead of 0 eventhough the value was not changed

Fix this by adding checks, so that change notifications are sent correctly.

Fixes: e3a33673e8 ("ASoC: qdsp6: q6routing: Add q6routing driver")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211130163110.5628-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-12-01 14:13:48 +00:00
..
audioreach.c ASoC: qdsp6: audioreach: add module configuration command helpers 2021-10-26 13:50:05 +01:00
audioreach.h ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly 2021-11-16 14:29:43 +00:00
Makefile ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
q6adm.c ASoC: qdsp6: q6adm: improve error reporting 2021-11-16 14:29:48 +00:00
q6adm.h
q6afe-clocks.c ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6afe-dai.c ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6afe.c ASoC: qdsp6: q6afe: Add Quinary MI2S ports 2021-06-15 16:39:38 +01:00
q6afe.h ASoC: qdsp6: q6afe: Add Quinary MI2S ports 2021-06-15 16:39:38 +01:00
q6apm-dai.c ASoC: qdsp6: audioreach: add q6apm-dai support 2021-10-26 13:50:09 +01:00
q6apm-lpass-dais.c ASoC: qdsp6: audioreach: add q6apm lpass dai support 2021-10-26 13:50:10 +01:00
q6apm.c ASoC: qdsp6: audioreach: add topology support 2021-10-26 13:50:07 +01:00
q6apm.h ASoC: qdsp6: audioreach: add q6apm support 2021-10-26 13:50:04 +01:00
q6asm-dai.c ASoC: qdsp6: q6asm: fix q6asm_dai_prepare error handling 2021-11-16 14:29:45 +00:00
q6asm.c ASoC: qdsp6: q6asm: fix cppcheck warnings for unnecessary initialization 2021-08-09 13:49:12 +01:00
q6asm.h ASoC: qcom: q6asm: align function prototypes 2021-03-10 13:01:54 +00:00
q6core.c ASoC: qdsp6: add ifdef CONFIG_OF around of_device_id 2020-09-25 18:36:58 +01:00
q6core.h
q6dsp-common.c
q6dsp-common.h
q6dsp-errno.h
q6dsp-lpass-clocks.c ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6dsp-lpass-clocks.h ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6dsp-lpass-ports.c ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6dsp-lpass-ports.h ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6prm-clocks.c ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
q6prm.c ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly 2021-11-16 14:29:43 +00:00
q6prm.h ASoC: qdsp6: audioreach: add q6prm support 2021-10-26 13:50:11 +01:00
q6routing.c ASoC: qdsp6: q6routing: Fix return value from msm_routing_put_audio_mixer 2021-12-01 14:13:48 +00:00
q6routing.h
topology.c ASoC: qdsp6: audioreach: Fix clang -Wimplicit-fallthrough 2021-10-28 13:28:18 +01:00