]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg()
authorMark Brown <broonie@kernel.org>
Thu, 5 Feb 2026 00:25:38 +0000 (00:25 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 1 Mar 2026 23:48:02 +0000 (23:48 +0000)
commit31ddc62c1cd92e51b9db61d7954b85ae2ec224da
tree8f8ce3e5b255b6248b99a255c46f161e7a662b01
parent54a86cf48eaa6d1ab5130d756b718775e81e1748
ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg()

ALSA controls should return 1 if the value in the control changed but the
control put operation fsl_easrc_set_reg() only returns 0 or a negative
error code, causing ALSA to not generate any change events. Add a suitable
check by using regmap_update_bits_check() with the underlying regmap, this
is more clearly and simply correct than trying to verify that one of the
generic ops is exactly equivalent to this one.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260205-asoc-fsl-easrc-fix-events-v1-2-39d4c766918b@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_easrc.c