diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-23 08:14:02 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-23 08:14:02 -0400 |
commit | 3372dbdd8ca11f51be8c6a30b2bc79eb04c4a902 (patch) | |
tree | d4499bf5a5665b4820ffaf96bce55bf6b895195e /sound/soc/soc-core.c | |
parent | bc465aa9d045feb0e13b4a8f32cc33c1943f62d6 (diff) | |
parent | 967b1307b69b8ada8b331e01046ad1ef83742e99 (diff) |
Merge branch 'for-next' into topic/hda-core
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e5c990889dcc..07aa54385ae0 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1578,6 +1578,10 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1578 | snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets, | 1578 | snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets, |
1579 | card->num_dapm_widgets); | 1579 | card->num_dapm_widgets); |
1580 | 1580 | ||
1581 | if (card->of_dapm_widgets) | ||
1582 | snd_soc_dapm_new_controls(&card->dapm, card->of_dapm_widgets, | ||
1583 | card->num_of_dapm_widgets); | ||
1584 | |||
1581 | /* initialise the sound card only once */ | 1585 | /* initialise the sound card only once */ |
1582 | if (card->probe) { | 1586 | if (card->probe) { |
1583 | ret = card->probe(card); | 1587 | ret = card->probe(card); |
@@ -1633,6 +1637,10 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1633 | snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes, | 1637 | snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes, |
1634 | card->num_dapm_routes); | 1638 | card->num_dapm_routes); |
1635 | 1639 | ||
1640 | if (card->of_dapm_routes) | ||
1641 | snd_soc_dapm_add_routes(&card->dapm, card->of_dapm_routes, | ||
1642 | card->num_of_dapm_routes); | ||
1643 | |||
1636 | for (i = 0; i < card->num_links; i++) { | 1644 | for (i = 0; i < card->num_links; i++) { |
1637 | if (card->dai_link[i].dai_fmt) | 1645 | if (card->dai_link[i].dai_fmt) |
1638 | snd_soc_runtime_set_dai_fmt(&card->rtd[i], | 1646 | snd_soc_runtime_set_dai_fmt(&card->rtd[i], |
@@ -3242,8 +3250,8 @@ int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card, | |||
3242 | widgets[i].name = wname; | 3250 | widgets[i].name = wname; |
3243 | } | 3251 | } |
3244 | 3252 | ||
3245 | card->dapm_widgets = widgets; | 3253 | card->of_dapm_widgets = widgets; |
3246 | card->num_dapm_widgets = num_widgets; | 3254 | card->num_of_dapm_widgets = num_widgets; |
3247 | 3255 | ||
3248 | return 0; | 3256 | return 0; |
3249 | } | 3257 | } |
@@ -3327,8 +3335,8 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, | |||
3327 | } | 3335 | } |
3328 | } | 3336 | } |
3329 | 3337 | ||
3330 | card->num_dapm_routes = num_routes; | 3338 | card->num_of_dapm_routes = num_routes; |
3331 | card->dapm_routes = routes; | 3339 | card->of_dapm_routes = routes; |
3332 | 3340 | ||
3333 | return 0; | 3341 | return 0; |
3334 | } | 3342 | } |