From 614749f16e94a23f0c46fb04f694f9415540d394 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 14 Oct 2026 02:59:18 +0000 Subject: [PATCH] ASoC: soc-component: move snd_soc_component_active() to soc-component.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Alvin Šipraga Link: https://patch.msgid.link/87bj8xyol6.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- include/sound/soc-component.h | 6 +----- sound/soc/soc-component.c | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index 1a5c9d0d386d..0f955f5cbebc 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -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, diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 737b17ed60d8..962cd7ab3cc2 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -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.