Re: [PATCH 14/28] ASoC: ops: Export snd_soc_control_matches()

From: Mark Brown

Date: Tue Sep 22 2026 - 05:49:45 EST


On Sun, Sep 20, 2026 at 02:53:53PM +1000, James Calligeros wrote:
> From: Hector Martin <marcan@xxxxxxxxx>
>
> This helper is useful for drivers that want to do their own control
> lookups and matching as part of more complex logic than the existing
> operations.

> EXPORT_SYMBOL_GPL(snd_soc_put_volsw_sx);
>
> -static bool soc_control_matches(struct snd_kcontrol *kctl,
> +bool snd_soc_control_matches(struct snd_kcontrol *kctl,
> const char *pattern)
> {
> const char *name = kctl->id.name;
> @@ -425,6 +425,7 @@ static bool soc_control_matches(struct snd_kcontrol *kctl,
>
> return !strcmp(name, pattern);
> }
> +EXPORT_SYMBOL_GPL(snd_soc_control_matches);

Please document the API now you're exporting it.

Attachment: signature.asc
Description: PGP signature