]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs47l15: Fix event generation for low power mux control
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 10:51:17 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 18:59:26 +0000 (20:59 +0200)
commit4f18da8fcb2ef74254fabaf4f86f96101e172413
tree0ba3f3803dcb7201b02a277013fcd634992c2d04
parent1d2bd465ab4e4851df35909a172ec13e696d3ee3
ASoC: cs47l15: Fix event generation for low power mux control

[ Upstream commit 8dd97f130d1b136e2c8466bb21906f78a87f2eaf ]

cs47l15_in1_adc_put always returns zero regardless of if the control
value was updated. This results in missing notifications to user-space
of the control change. Update the handling to return 1 when the value is
changed.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623105120.1981154-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs47l15.c