linux-stable/sound/soc
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
..
adi
amd ASoC: amd: fix uninitialized variable in snd_acp6x_probe() 2021-11-30 13:08:02 +00:00
atmel
au1x
bcm
cirrus
codecs ASoC: rt5682s: Fix crash due to out of scope stack vars 2021-11-26 13:24:10 +00:00
dwc
fsl
generic
hisilicon
img
intel ASoC: Intel: soc-acpi: add entry for ESSX8336 on CML 2021-11-23 12:08:58 +00:00
jz4740
kirkwood
mediatek ASoC: mediatek: mt8173: Fix debugfs registration for components 2021-11-12 18:16:44 +00:00
meson ASoC: meson: axg-tdm-interface: manage formatters in trigger 2021-10-22 13:25:48 +01:00
mxs
pxa
qcom ASoC: qdsp6: q6routing: Fix return value from msm_routing_put_audio_mixer 2021-12-01 14:13:48 +00:00
rockchip ASoC: rockchip: i2s_tdm: Dup static DAI template 2021-11-30 13:08:01 +00:00
samsung
sh ASoC: rsnd: fixup DMAEngine API 2021-11-12 21:25:19 +00:00
sof ASoC: SOF: Intel: Retry codec probing if it fails 2021-11-30 13:08:03 +00:00
spear
sprd
sti
stm ASoC: stm32: i2s: fix 32 bits channel length without mclk 2021-11-17 13:04:38 +00:00
sunxi
tegra ASoC: tegra: Use normal system sleep for ADX 2021-11-26 13:24:07 +00:00
ti
uniphier
ux500
xilinx
xtensa
Kconfig
Makefile
soc-ac97.c
soc-acpi.c ASoC: soc-acpi: Set mach->id field on comp_ids matches 2021-11-22 15:40:01 +00:00
soc-card.c
soc-component.c
soc-compress.c
soc-core.c ASoC: core: Remove invalid snd_soc_component_set_jack call 2021-10-29 16:49:40 +01:00
soc-dai.c
soc-dapm.c ASoC: DAPM: Cover regression by kctl change notification fix 2021-11-05 12:58:12 +00:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops.c
soc-pcm.c
soc-topology-test.c
soc-topology.c ASoC: topology: Add missing rwsem around snd_ctl_remove() calls 2021-11-16 14:29:50 +00:00
soc-utils.c ASoC: Stop dummy from overriding hwparams 2021-10-29 16:49:45 +01:00