ASoC: Instantiate card widgets immediately
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Oct 2011 12:38:06 +0000 (13:38 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 11 Oct 2011 17:59:17 +0000 (18:59 +0100)
This ensures they are available prior to the card late_probe().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c

index 8dc9aba3526d62cadd1fbfbe6c6ca03e52d15289..d6af52bd97dffcac463f8eb7f7847a2d98284a22 100644 (file)
@@ -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];