From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> --- v1 -> v2 - not update component->active via macro include/sound/soc-component.h | 1 + sound/soc/soc-dai.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index 864983b09846..820b9b618f97 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -394,6 +394,7 @@ static inline bool snd_soc_component_is_active( { return component->active != 0; } +#define snd_soc_component_active(component) ((component)->active) /* component pin */ int snd_soc_component_enable_pin(struct snd_soc_component *component, diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index de2981fa5372..bb771302fd6f 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -393,6 +393,7 @@ void snd_soc_dai_action(struct snd_soc_dai *dai, { dai->stream_active[stream] += action; dai->active += action; + /* see snd_soc_component_active() */ dai->component->active += action; } EXPORT_SYMBOL_GPL(snd_soc_dai_action); -- 2.17.1