ASoC: wm8958: Fix change notifications for DSP controls
authorMark Brown <broonie@kernel.org>
Sat, 16 Apr 2022 12:54:08 +0000 (13:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:06 +0000 (12:30 +0200)
commit66e5f6d561c7edbba09438334d98e7fe70e52861
treee5b02c9e7b5709d88760002c36970736fc8a8df9
parenta5581587bbee2700aaee3971ac25f801cae24732
ASoC: wm8958: Fix change notifications for DSP controls

commit b4f5c6b2e52b27462c0599e64e96e53b58438de1 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm8958-dsp2.c