summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-15 09:46:42 +0900
committerMark Brown <broonie@kernel.org>2020-05-18 16:15:02 +0100
commit488b2ca599f96d46d4a4d730845a247328cb6a28 (patch)
treeccb135b0993375480f2b7bad246c9a5582dbd6f6 /include/sound
parentefffd9b344adbf813e3ae6f6136df80000bf2833 (diff)
ASoC: soc-component: add snd_soc_component_active()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/875zcy6n4d.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-component.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 864983b09846..f39e1084850e 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -395,6 +395,12 @@ static inline bool snd_soc_component_is_active(
return component->active != 0;
}
+static inline unsigned int
+snd_soc_component_active(struct snd_soc_component *component)
+{
+ return component->active;
+}
+
/* component pin */
int snd_soc_component_enable_pin(struct snd_soc_component *component,
const char *pin);