ASoC: wcd938x: Fix event generation for some controls
authorMark Brown <broonie@kernel.org>
Fri, 3 Jun 2022 12:25:26 +0000 (14:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:38 +0000 (21:24 +0200)
commitdd70da2a5816821ab4bd22313ad8d22cfa16aeba
treea7712cd26d9ef1a8c393c3084dc69a1694e3e2f0
parent05708fb473ce7f2af1082c39ec91077a5a404cf4
ASoC: wcd938x: Fix event generation for some controls

[ Upstream commit 10e7ff0047921e32b919ecee7be706dd33c107f8 ]

Currently wcd938x_*_put() unconditionally report that the value of the
control changed, resulting in spurious events being generated. Return 0 in
that case instead as we should. There is still an issue in the compander
control which is a bit more complex.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220603122526.3914942-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wcd938x.c