linux/sound/soc/qcom
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
..
qdsp6 ASoC: qdsp6: q6routing: Fix return value from msm_routing_put_audio_mixer 2021-12-01 14:13:48 +00:00
apq8016_sbc.c ASoC: qcom: apq8016_sbc: Add SEC_MI2S support 2021-08-09 12:39:26 +01:00
apq8096.c ASoC: qcom: apq8096: Constify static snd_soc_ops 2021-10-01 19:35:05 +01:00
common.c ASoC: qcom: common: Respect status = "disabled" on DAI link nodes 2021-10-25 17:41:25 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
lpass-apq8016.c ASoC: qcom: lpass: Fix i2s ctl register bit map 2021-02-05 17:16:40 +00:00
lpass-cpu.c ASoC: qcom: lpass-cpu: mark IRQ_CLEAR register as volatile and readable 2021-06-24 19:29:53 +01:00
lpass-hdmi.c ASoC: qcom: lpass-hdmi: remove useless return 2021-03-10 13:01:49 +00:00
lpass-hdmi.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-ipq806x.c ASoC: qcom: lpass-ipq806x: fix bitwidth regmap field 2021-01-20 16:46:47 +00:00
lpass-lpaif-reg.h ASoC: qcom: lpass-cpu: Remove bit clock state check 2021-01-28 17:11:30 +00:00
lpass-platform.c ASoC: qcom: lpass: Use managed buffer allocation 2021-08-04 08:09:23 +02:00
lpass-sc7180.c ASoC: qcom: Add four speaker support on MI2S secondary 2021-06-14 15:01:05 +01:00
lpass.h Merge series "ASoC: tlv320aic32x4: Add support for TAS2505" from Claudius Heine <ch@denx.de>: 2021-06-23 16:31:14 +01:00
Makefile ASoC: qcom: sc7180: Add machine driver for sound card registration 2020-10-27 14:05:46 +00:00
sc7180.c ASoC: qcom: sc7180: fix 32 bit format for adau7002 2020-11-27 14:50:17 +00:00
sdm845.c ASoC: qcom: sdm845: add jack support for WCD934x 2021-06-04 15:29:02 +01:00
sm8250.c ASoC: qcom: sm8250: Add Jack support 2021-10-18 21:11:50 +01:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00