]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: madera: Fix event generation for rate controls
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 10:51:19 +0000 (11:51 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:22:01 +0000 (16:22 +0100)
commit9f0c0f1350f1e8083a5f1e38b605cc07f506342c
tree0c121bf1ddc463b12d24572f9e1bba652f4192d1
parent835bb5c01fbea0e1f87b8f48796bfcbd10fdc486
ASoC: madera: Fix event generation for rate controls

madera_adsp_rate_put always returns zero regardless of if the control
value was updated. This results in missing notifications to user-space
of the control change. Update the handling to return 1 when the
value is changed.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623105120.1981154-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/madera.c