From: Mark Brown <broonie@opensource.wolfsonmicro.com>
Date: Sat, 8 Oct 2011 12:59:44 +0000 (+0100)
Subject: ASoC: Ensure all DAPM widgets are instantiated with the card
X-Git-Tag: firefly_0821_release~3680^2~2691^2~640
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2dc00213b03669010a67454d6448d91f3af06435;p=firefly-linux-kernel-4.4.55.git

ASoC: Ensure all DAPM widgets are instantiated with the card

Specifically for the widgets added by machine driver late probe functions.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index b65e3d40177c..8dc9aba3526d 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1478,6 +1478,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 		}
 	}
 
+	snd_soc_dapm_new_widgets(&card->dapm);
+
 	ret = snd_card_register(card->snd_card);
 	if (ret < 0) {
 		printk(KERN_ERR "asoc: failed to register soundcard for %s\n", card->name);