]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: es8328: Propagate error codes from regmap updates
authorHsieh Hung-En <hungen3108@gmail.com>
Thu, 15 Jan 2026 16:13:59 +0000 (00:13 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jan 2026 18:58:22 +0000 (18:58 +0000)
commit4711b292b440a8404833df0e0ba96dad86600a84
treecaf8701f457b8b48e3a61af2eac4e7dcaebd9406
parent61d2a7699ab39d448f44919ef15c16187e6f70ec
ASoC: es8328: Propagate error codes from regmap updates

In es8328_hw_params(), the return value of
snd_soc_component_update_bits() was ignored. This could lead to silent
failures where the hardware is left in an inconsistent state if a
regmap write fails.

Check the return value of regmap updates and propagate any errors back
to the ALSA core. Return 0 on success to match the DAI ops convention.

Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
Link: https://patch.msgid.link/20260115161359.41979-1-hungen3108@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c