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)
commit71b5ab96ffe6589abe7a2e302b83f7a426ebe099
tree9cc2a04261b15404ed258a0ea6eb0b535aa78ec9
parenta5d6d28e2ea38dff017cb562dfbe0259d093a851
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