mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
3f78fa3893
commit
614749f16e
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user