]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8958: Fix change notifications for DSP controls
authorMark Brown <broonie@kernel.org>
Sat, 16 Apr 2022 12:54:08 +0000 (13:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:07:23 +0000 (12:07 +0100)
commit64c93eb0c0687a530a88489756e68657c7c1c5cf
treed4efb94b518cc6a73f826e9d0518e90647d5c031
parentcee63b501940f41cb7918a8f24adcacd7ab20465
ASoC: wm8958: Fix change notifications for DSP controls

The WM8958 DSP controls all return 0 on successful write, not a boolean
value indicating if the write changed the value of the control. Fix this
by returning 1 after a change, there is already a check at the start of
each put() that skips the function in the case that there is no change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220416125408.197440-1-broonie@kernel.org
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8958-dsp2.c