aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-05-28 10:49:20 +0900
committerMark Brown <broonie@kernel.org>2020-05-30 02:11:37 +0100
commit5c0eac036dfd3e20dd09ab86343c3b2fb2a1ac86 (patch)
treea03d29c3d5546a3f73af18fd306eb2525746b15e /include
parentASoC: soc-card: add snd_soc_card_probe() (diff)
downloadlinux-dev-5c0eac036dfd3e20dd09ab86343c3b2fb2a1ac86.tar.xz
linux-dev-5c0eac036dfd3e20dd09ab86343c3b2fb2a1ac86.zip
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')
-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,