ASoC: wm_adsp: Return whether changed when writing controls
authorSimon Trimmer <simont@opensource.cirrus.com>
Wed, 23 Nov 2022 16:58:11 +0000 (16:58 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Nov 2022 17:03:10 +0000 (17:03 +0000)
commit7406bdbc4fb8b99cf0150cb2056a585c95ceafe7
tree8341ab9a91a2b4972e21c50970b9176cba3b6d34
parentc56f4b2442d33bd94c418697f753271099384bee
ASoC: wm_adsp: Return whether changed when writing controls

Functions that update cs_dsp controls need to handle return codes that
indicate whether the control value changed. A return code of 1 indicates
a change, 0 indicates no-change and a negative value is an error
condition.

Acked controls implicitly change value when written so a successful
write shall always report that the value changed.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221123165811.3014472-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c