[PATCH v2 06/21] ASoC: ops: Introduce 'snd_soc_deactivate_kctl'

Mark Brown broonie at kernel.org
Tue Oct 13 10:50:56 PDT 2026


On Sun, Oct 04, 2026 at 04:03:33PM +1000, James Calligeros wrote:

> + * Return 0 for success, else error.
> + */
> +int snd_soc_deactivate_kctl(struct snd_soc_card *card,
> +	const char *name, int active)
> +{

> +	if (kctl) {
> +		ret = snd_ctl_activate_id(card->snd_card, &kctl->id, active);
> +		if (ret < 0)
> +			return ret;

snd_ctl_activate_id() returns 1 on change, 0 on no change, which doesn't
match the documentation there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261013/9a80ee41/attachment.sig>


More information about the linux-arm-kernel mailing list