diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-07-26 06:51:13 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-05 17:21:17 +0200 |
commit | e40fadbcef583808c11d2e86b8ac1c652731468e (patch) | |
tree | f4eb1016993d36b6410a1d1fd1f241d9319b7812 /include | |
parent | ASoC: soc-component: add snd_soc_component_resume() (diff) | |
download | linux-e40fadbcef583808c11d2e86b8ac1c652731468e.tar.xz linux-e40fadbcef583808c11d2e86b8ac1c652731468e.zip |
ASoC: soc-component: add snd_soc_component_is_suspended()
Current ALSA SoC is directly using component->xxx,
But, it is not good for encapsulation.
This patch adds new snd_soc_component_is_suspended() and use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/874l395rlx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc-component.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index 1e3b70855ba7..9600dc4ca6b4 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -355,5 +355,6 @@ int snd_soc_component_trigger(struct snd_soc_component *component, int cmd); void snd_soc_component_suspend(struct snd_soc_component *component); void snd_soc_component_resume(struct snd_soc_component *component); +int snd_soc_component_is_suspended(struct snd_soc_component *component); #endif /* __SOC_COMPONENT_H */ |