ASoC: meson: g12a-toacodec: Fix event generation
authorMark Brown <broonie@kernel.org>
Wed, 3 Jan 2024 18:34:03 +0000 (18:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:16:51 +0000 (17:16 +0100)
commit3d5a6ed6aa43c4f7220e8ecf06b4fbfcd2c254f3
treed8ad01c246c344021846d690c84ce522713241e3
parent28fdf45be31f9feb20da9fc7bbd7b4e0a9f44fdf
ASoC: meson: g12a-toacodec: Fix event generation

[ Upstream commit 172c88244b5f2d3375403ebb504d407be0fded59 ]

When a control changes value the return value from _put() should be 1 so
we get events generated to userspace notifying applications of the change.
We are checking if there has been a change and exiting early if not but we
are not providing the correct return value in the latter case, fix this.

Fixes: af2618a2eee8 ("ASoC: meson: g12a: add internal DAC glue driver")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240103-meson-enum-val-v1-3-424af7a8fb91@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/meson/g12a-toacodec.c