diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-28 03:48:55 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-30 03:11:34 +0200 |
commit | 934c752c38b751663fe3dc18413db13e73b8b2b2 (patch) | |
tree | f4589f91ec2fe69ebcd6b95b50aa0e3aa5dcd95b /sound/soc/soc-card.c | |
parent | ASoC: soc-card: add snd_soc_card_suspend_post() (diff) | |
download | linux-934c752c38b751663fe3dc18413db13e73b8b2b2.tar.xz linux-934c752c38b751663fe3dc18413db13e73b8b2b2.zip |
ASoC: soc-card: add snd_soc_card_resume_pre()
Card related function should be implemented at soc-card now.
This patch adds it.
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/87zh9szv5k.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-card.c')
-rw-r--r-- | sound/soc/soc-card.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/soc-card.c b/sound/soc/soc-card.c index d196103225ba..78dc30568416 100644 --- a/sound/soc/soc-card.c +++ b/sound/soc/soc-card.c @@ -99,3 +99,13 @@ int snd_soc_card_suspend_post(struct snd_soc_card *card) return soc_card_ret(card, ret); } + +int snd_soc_card_resume_pre(struct snd_soc_card *card) +{ + int ret = 0; + + if (card->resume_pre) + ret = card->resume_pre(card); + + return soc_card_ret(card, ret); +} |