From: Mark Brown Date: Mon, 10 Oct 2011 12:38:06 +0000 (+0100) Subject: ASoC: Instantiate card widgets immediately X-Git-Tag: firefly_0821_release~3680^2~2691^2~600 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b90d2f908465c800388714180217620c4a5b2fe4;p=firefly-linux-kernel-4.4.55.git ASoC: Instantiate card widgets immediately This ensures they are available prior to the card late_probe(). Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 8dc9aba3526d..d6af52bd97df 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1430,6 +1430,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes, card->num_dapm_routes); + snd_soc_dapm_new_widgets(&card->dapm); + for (i = 0; i < card->num_links; i++) { dai_link = &card->dai_link[i];