diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-07-26 06:50:34 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-05 17:20:16 +0200 |
commit | 66c51573b89d0a5c1089139a2f0dd029a755c37d (patch) | |
tree | 49546b960d4dab2ccc334060b8466d4a2fde1a68 /include/sound | |
parent | ASoC: soc-component: add snd_soc_component_trigger() (diff) | |
download | linux-66c51573b89d0a5c1089139a2f0dd029a755c37d.tar.xz linux-66c51573b89d0a5c1089139a2f0dd029a755c37d.zip |
ASoC: soc-component: add snd_soc_component_suspend()
Current ALSA SoC is directly using component->driver->xxx,
thus, it is deep nested, and makes code difficult to read,
and is not good for encapsulation.
This patch adds new snd_soc_component_suspend() and use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/877e855rn0.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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index 302e27a89d47..cdb014f41fd1 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -353,5 +353,6 @@ int snd_soc_component_hw_free(struct snd_soc_component *component, int snd_soc_component_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd); +void snd_soc_component_suspend(struct snd_soc_component *component); #endif /* __SOC_COMPONENT_H */ |