diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-28 03:48:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-30 03:11:32 +0200 |
commit | 130dc08c827db76f4a32fe7867075029fe9071d1 (patch) | |
tree | 35786d9d9eeb5c0256447cd8a37c4b6ccd00b55f /sound/soc/soc-card.c | |
parent | ASoC: soc-card: move snd_soc_card_subclass to soc-card (diff) | |
download | linux-130dc08c827db76f4a32fe7867075029fe9071d1.tar.xz linux-130dc08c827db76f4a32fe7867075029fe9071d1.zip |
ASoC: soc-card: add snd_soc_card_suspend_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/87367k25jc.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 aa9dbb89f8a1..710684c030bc 100644 --- a/sound/soc/soc-card.c +++ b/sound/soc/soc-card.c @@ -79,3 +79,13 @@ end: return soc_card_ret(card, ret); } EXPORT_SYMBOL_GPL(snd_soc_card_jack_new); + +int snd_soc_card_suspend_pre(struct snd_soc_card *card) +{ + int ret = 0; + + if (card->suspend_pre) + ret = card->suspend_pre(card); + + return soc_card_ret(card, ret); +} |