]> 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 19:24:39 +0000 (21:24 +0200)
commit437b8e1e6b85138db2ec9a08ebb81484e5c16230
tree84c96d50cff5f38009d5273e39be2c2d24f4bda6
parent63a247a97ed07835a5363a4c70a48bfbc10b3420
ASoC: cs47l15: Fix event generation for low power mux control

[ Upstream commit 53c4ad5799801b8d0657dcd44161d825dfe7c833 ]

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