diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-28 04:48:48 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-30 04:11:33 +0300 |
commit | d17b60b2c46750ebfb6ea39a2b02d988b97484eb (patch) | |
tree | 71ad03cfc584c5faf2b4c71a5c9433e527eccc0a /sound/soc/soc-card.c | |
parent | 130dc08c827db76f4a32fe7867075029fe9071d1 (diff) | |
download | linux-d17b60b2c46750ebfb6ea39a2b02d988b97484eb.tar.xz |
ASoC: soc-card: add snd_soc_card_suspend_post()
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/871rn425j3.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 710684c030bc..d196103225ba 100644 --- a/sound/soc/soc-card.c +++ b/sound/soc/soc-card.c @@ -89,3 +89,13 @@ int snd_soc_card_suspend_pre(struct snd_soc_card *card) return soc_card_ret(card, ret); } + +int snd_soc_card_suspend_post(struct snd_soc_card *card) +{ + int ret = 0; + + if (card->suspend_post) + ret = card->suspend_post(card); + + return soc_card_ret(card, ret); +} |