]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm5102: Fix event generation for output compensation
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 28 Jun 2022 15:34:06 +0000 (16:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:25 +0000 (17:16 +0100)
commit6e124427551e599447536674c4c14d778d3f08cf
tree9cc2a04261b15404ed258a0ea6eb0b535aa78ec9
parentc43acce5ffa4a3d7c72e99a7c949d9516b6a2bf0
ASoC: wm5102: Fix event generation for output compensation

The output compensation controls 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/20220628153409.3266932-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5102.c