Re: [PATCH] ASoC: tas2770: Only treat negative return codes as errors set_tdm_idle

From: Markus Elfring

Date: Sat Oct 24 2026 - 07:32:05 EST


> snd_soc_component_update_bits returns 1 on a successful update, and
> we were returning from tas2770_set_dai_tdm_idle early on any nonzero
> return code. Change this so that only negative return codes are
> treated as errors.

https://elixir.bootlin.com/linux/v7.3/source/sound/soc/codecs/tas2770.c#L495-L567

* How do you think about to refine the summary phrase another bit
like “Fix error detection in tas2770_set_dai_tdm_idle()”?

* See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.3#n34


Regards,
Markus