forked from luck/tmp_suning_uos_patched
62e4dc5e13
commit 4739d88ad8e1900f809f8a5c98f3c1b65bf76220 upstream.
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:
|
||
---|---|---|
.. | ||
qdsp6 | ||
apq8016_sbc.c | ||
apq8096.c | ||
common.c | ||
common.h | ||
Kconfig | ||
lpass-apq8016.c | ||
lpass-cpu.c | ||
lpass-hdmi.c | ||
lpass-hdmi.h | ||
lpass-ipq806x.c | ||
lpass-lpaif-reg.h | ||
lpass-platform.c | ||
lpass-sc7180.c | ||
lpass.h | ||
Makefile | ||
sdm845.c | ||
storm.c |