diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-28 10:49:11 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-30 02:11:36 +0100 |
commit | 73de4b026850da432b8bcfb73fc4af94674a8102 (patch) | |
tree | 776334515ae6c7ee703bb234b8a4b9b8c23180d8 /include/sound | |
parent | 27f07cacc9f1ddf955b85e5746f967351ab0b40b (diff) | |
download | linux-73de4b026850da432b8bcfb73fc4af94674a8102.tar.gz linux-73de4b026850da432b8bcfb73fc4af94674a8102.tar.bz2 linux-73de4b026850da432b8bcfb73fc4af94674a8102.zip |
ASoC: soc-card: add snd_soc_card_probe()
Card related function should be implemented at soc-card now.
This patch adds it.
One note here is that card has "card->probe" and "card->late_probe"
callbacks.
Because it needs to care "late_probe", "card->probed" flag is set
under if (card->probe) at snd_soc_card_probe().
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/87wo4wzv54.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-card.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-card.h b/include/sound/soc-card.h index ab2410397d0e..191285a0ce19 100644 --- a/include/sound/soc-card.h +++ b/include/sound/soc-card.h @@ -24,6 +24,8 @@ int snd_soc_card_suspend_post(struct snd_soc_card *card); 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); + /* device driver data */ static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card, void *data) |