diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-10 12:38:06 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-11 17:59:17 (GMT) |
commit | b90d2f908465c800388714180217620c4a5b2fe4 (patch) | |
tree | 8f35db45864ef5a2db10589529905e6d9548e5af /sound/soc/soc-core.c | |
parent | ba896ede9a9a54a9114ee2a4fe534328078c6b02 (diff) | |
download | linux-fsl-qoriq-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>
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 8dc9aba..d6af52b 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]; |