]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl_xcvr: Fix event generation for cached controls
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Tue, 28 Apr 2026 03:07:08 +0000 (00:07 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2026 13:21:24 +0000 (22:21 +0900)
commite8446a4a574d19f0fb39c06af15dbc5165079474
treec8a5aab359b6d5f7a3be10e3c5d41aa58808e903
parent56d5a9eaf60af5c824a33a83e1468aa143627a62
ASoC: fsl_xcvr: Fix event generation for cached controls

ALSA controls should return 1 from a put callback when the control
value changes. fsl_xcvr_capds_put() and fsl_xcvr_tx_cs_put() both
update cached control data but always return 0, so ALSA suppresses
change notifications for the Capabilities Data Structure and playback
IEC958 channel status controls.

Compare the old and new cached values before copying the new data,
and return whether the control value changed.

Fixes: 28564486866f ("ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver")
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260428-asoc-fsl-xcvr-event-generation-v1-1-f21cf0812c4f@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c