]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl_micfil: Fix event generation in micfil_put_dc_remover_state()
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 1 Apr 2026 09:42:20 +0000 (17:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2026 17:24:24 +0000 (18:24 +0100)
commit7d2bd35100de370dc326b250e8f6b66bee06a2f3
treed4f7b2a2adc6c6616e1c6519c1ec2e0afa0fa423
parentfc4daaddb276d370b7da3819872044df446a1911
ASoC: fsl_micfil: Fix event generation in micfil_put_dc_remover_state()

ALSA controls should return 1 if the value in the control changed but the
control put operation micfil_put_dc_remover_state() only returns 0 or a
negative error code, causing ALSA to not generate any change events.

return the value of snd_soc_component_update_bits() directly, as it has
the capability of return check status of changed or not.

Also enable pm runtime before calling the function
snd_soc_component_update_bits() to make the regmap cache data align with
the value in hardware.

Fixes: 29dbfeecab85 ("ASoC: fsl_micfil: Add Hardware Voice Activity Detector support")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260401094226.2900532-6-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c