diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-30 14:04:14 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-30 14:04:14 +0400 |
commit | c79c33af8f867e57ad4b84102db7901aee67485a (patch) | |
tree | aa619736b89a143cfc48f9647493c929523a928a /sound/soc/soc-core.c | |
parent | 1c9a341bbdc14051a4d8c74ea67269786c7d3736 (diff) | |
parent | 824ef826f3c4d83d1925a5e351313bfd3e5ca6cb (diff) | |
download | linux-c79c33af8f867e57ad4b84102db7901aee67485a.tar.xz |
Merge remote-tracking branch 'asoc/topic/core' into tmp
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 5471940dc0f7..4d0561312f3b 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1245,9 +1245,6 @@ static int soc_post_component_init(struct snd_soc_card *card, } rtd->card = card; - /* Make sure all DAPM widgets are instantiated */ - snd_soc_dapm_new_widgets(&codec->dapm); - /* machine controls, routes and widgets are not prefixed */ temp = codec->name_prefix; codec->name_prefix = NULL; @@ -1743,8 +1740,6 @@ static int 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]; dai_fmt = dai_link->dai_fmt; @@ -1823,12 +1818,12 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) } } - snd_soc_dapm_new_widgets(&card->dapm); - if (card->fully_routed) list_for_each_entry(codec, &card->codec_dev_list, card_list) snd_soc_dapm_auto_nc_codec_pins(codec); + snd_soc_dapm_new_widgets(card); + ret = snd_card_register(card->snd_card); if (ret < 0) { dev_err(card->dev, "ASoC: failed to register soundcard %d\n", |