diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-10 13:38:06 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-11 18:59:17 +0100 |
commit | b90d2f908465c800388714180217620c4a5b2fe4 (patch) | |
tree | 8f35db45864ef5a2db10589529905e6d9548e5af /sound/soc | |
parent | ba896ede9a9a54a9114ee2a4fe534328078c6b02 (diff) |
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')
-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 8dc9aba3526..d6af52bd97d 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]; |