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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Kuninori Morimoto 2019-07-26 13:51:13 +09:00 • committed by Mark Brown
commit e40fadbcef
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
3 changed files with 8 additions and 3 deletions

View file

@ -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 */