Skip to contentSkip to conversation

ASoC: Instantiate card widgets immediately

PATCH New Mark Brown 1 participant 1 message Oct 10, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Instantiate card widgets immediately

This ensures they are available prior to the card late_probe().

---
 sound/soc/soc-core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +2 -0
index 8dc9aba..d6af52b 100644
@@ -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];
 
Signature · 1 line
1.7.6.3