ASoC: soc-component: move snd_soc_component_active() to soc-component.c

struct snd_soc_component will be capsuled soon, its member will not be
able to access from non soc-component.c.

Move snd_soc_component_active() to soc-component.c

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/87bj8xyol6.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2026-10-14 02:59:18 +00:00 committed by Mark Brown
parent 3f78fa3893
commit 614749f16e
No known key found for this signature in database
GPG Key ID: 2FEF73B0B3D03889
2 changed files with 7 additions and 5 deletions

View File

@ -365,11 +365,7 @@ static inline void *snd_soc_component_get_drvdata(struct snd_soc_component *c)
return dev_get_drvdata(c->dev);
}
static inline unsigned int
snd_soc_component_active(struct snd_soc_component *component)
{
return component->active;
}
unsigned int snd_soc_component_active(struct snd_soc_component *component);
/* component controls */
struct snd_kcontrol *snd_soc_component_get_kcontrol(struct snd_soc_component *component,

View File

@ -55,6 +55,12 @@ struct snd_soc_dapm_context *snd_soc_component_to_dapm(struct snd_soc_component
}
EXPORT_SYMBOL_GPL(snd_soc_component_to_dapm);
unsigned int snd_soc_component_active(struct snd_soc_component *component)
{
return component->active;
}
EXPORT_SYMBOL_GPL(snd_soc_component_active);
/*
* We might want to check substream by using list.
* In such case, we can update these macros.