diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-10 16:38:06 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-11 21:59:17 +0400 |
commit | b90d2f908465c800388714180217620c4a5b2fe4 (patch) | |
tree | 8f35db45864ef5a2db10589529905e6d9548e5af | |
parent | ba896ede9a9a54a9114ee2a4fe534328078c6b02 (diff) | |
download | linux-b90d2f908465c800388714180217620c4a5b2fe4.tar.xz |
ASoC: Instantiate card widgets immediately
This ensures they are available prior to the card late_probe().
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-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 8dc9aba3526d..d6af52bd97df 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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]; |