Skip to content

Commit

Permalink
ASoC: Ensure all DAPM widgets are instantiated with the card
Browse files Browse the repository at this point in the history
Specifically for the widgets added by machine driver late probe functions.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Oct 8, 2011
1 parent 87bea31 commit 2dc0021
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 @@ -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);
Expand Down

0 comments on commit 2dc0021

Please sign in to comment.