diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-08 08:59:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-08 12:55:51 -0400 |
commit | 2dc00213b03669010a67454d6448d91f3af06435 (patch) | |
tree | 3b6c022a3d6be5159505c5ea4cde79b4587845c8 /sound/soc/soc-core.c | |
parent | 87bea31c7b59a07fe5a1c827eb01db3b7c3ae672 (diff) |
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
1478 | } | 1478 | } |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | snd_soc_dapm_new_widgets(&card->dapm); | ||
1482 | |||
1481 | ret = snd_card_register(card->snd_card); | 1483 | ret = snd_card_register(card->snd_card); |
1482 | if (ret < 0) { | 1484 | if (ret < 0) { |
1483 | printk(KERN_ERR "asoc: failed to register soundcard for %s\n", card->name); | 1485 | printk(KERN_ERR "asoc: failed to register soundcard for %s\n", card->name); |