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

Mark Brown broonie at kernel.org
Tue Sep 22 02:43:41 PDT 2026


On Sun, Sep 20, 2026 at 02:53:53PM +1000, James Calligeros wrote:
> From: Hector Martin <marcan at marcan.st>
> 
> 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.
-------------- 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/20260922/77061be9/attachment.sig>


More information about the linux-arm-kernel mailing list