Skip to content

Commit

Permalink
ASoC: Instantiate card widgets immediately
Browse files Browse the repository at this point in the history
This ensures they are available prior to the card late_probe().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Oct 11, 2011
1 parent ba896ed commit b90d2f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit b90d2f9

Please sign in to comment.