ASoC: meson: Fix event generation for G12A tohdmi mux
authorMark Brown <broonie@kernel.org>
Thu, 21 Apr 2022 12:38:03 +0000 (13:38 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Apr 2022 13:41:55 +0000 (14:41 +0100)
commit12131008fc13ff7f7690d170b7a8f72d24fd7d1e
treec21ed0bb631311536edf5a427ef87a8200c6c8be
parentfce49921a22262736cdc3cc74fa67915b75e9363
ASoC: meson: Fix event generation for G12A tohdmi mux

The G12A tohdmi has a custom put() operation which returns 0 when the value
of the mux changes, meaning that events are not generated for userspace.
Change to return 1 in this case, the function returns early in the case
where there is no change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20220421123803.292063-4-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/meson/g12a-tohdmitx.c