diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-07-22 03:34:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-23 19:14:22 +0200 |
commit | 24b09d051164680f0a1d1910efe21ce36ad5c1ca (patch) | |
tree | 51fcbbd76d9c3b8ca61a6109ddf0dba023b3585d /sound/soc/soc-dai.c | |
parent | ASoC: soc-dai: add snd_soc_dai_suspend() (diff) | |
download | linux-24b09d051164680f0a1d1910efe21ce36ad5c1ca.tar.xz linux-24b09d051164680f0a1d1910efe21ce36ad5c1ca.zip |
ASoC: soc-dai: add snd_soc_dai_resume()
Current ALSA SoC is directly using dai->driver->xxx,
thus, it has deep nested bracket, and it makes code unreadable.
This patch adds new snd_soc_dai_resume() and use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87lfwqhn2j.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
-rw-r--r-- | sound/soc/soc-dai.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c index 3373598e0682..ddb6f217c0ed 100644 --- a/sound/soc/soc-dai.c +++ b/sound/soc/soc-dai.c @@ -359,3 +359,9 @@ void snd_soc_dai_suspend(struct snd_soc_dai *dai) if (dai->driver->suspend) dai->driver->suspend(dai); } + +void snd_soc_dai_resume(struct snd_soc_dai *dai) +{ + if (dai->driver->resume) + dai->driver->resume(dai); +} |