summaryrefslogtreecommitdiff
path: root/include/sound/soc-card.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-28 04:49:20 +0300
committerMark Brown <broonie@kernel.org>2020-05-30 04:11:37 +0300
commit5c0eac036dfd3e20dd09ab86343c3b2fb2a1ac86 (patch)
treea03d29c3d5546a3f73af18fd306eb2525746b15e /include/sound/soc-card.h
parent73de4b026850da432b8bcfb73fc4af94674a8102 (diff)
downloadlinux-5c0eac036dfd3e20dd09ab86343c3b2fb2a1ac86.tar.xz
ASoC: soc-card: add snd_soc_card_late_probe()
Card related function should be implemented at soc-card now. This patch adds it. card has "card->probe" and "card->late_probe" callbacks, and "late_probe" callback is called after "probe". This means, we can set "card->probed" flag afer "late_probe" for all cases. 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/87v9kgzv4w.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-card.h')
-rw-r--r--include/sound/soc-card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-card.h b/include/sound/soc-card.h
index 191285a0ce19..521dc05e4e9f 100644
--- a/include/sound/soc-card.h
+++ b/include/sound/soc-card.h
@@ -25,6 +25,7 @@ int snd_soc_card_resume_pre(struct snd_soc_card *card);
int snd_soc_card_resume_post(struct snd_soc_card *card);
int snd_soc_card_probe(struct snd_soc_card *card);
+int snd_soc_card_late_probe(struct snd_soc_card *card);
/* device driver data */
static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,