Re: [PATCH 11/28] ASoC: ops: Introduce 'snd_soc_deactivate_kctl'

From: Mark Brown

Date: Tue Sep 22 2026 - 06:42:28 EST


On Sun, Sep 20, 2026 at 02:53:50PM +1000, James Calligeros wrote:
> From: Martin Povišer <povik+lin@xxxxxxxxxxx>
>
> The new function can be used to deactivate controls -- either a single
> one or in bulk by pattern. It is something a machine driver may call in
> fixup_controls.

> + * Return number of matching controls on success, else error.
> + * No controls need to match.
> + */
> +int snd_soc_deactivate_kctl(struct snd_soc_card *card,
> + const char *name, int active)

> + if (!hits)
> + return -EINVAL;

The comment says no controls need to match, but we return an error in
that case.

Attachment: signature.asc
Description: PGP signature