Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248276
b: refs/heads/master
c: 9a841eb
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 13, 2011
1 parent 6cbd759 commit 8a23c56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01b07e2d84c887b432353ead846f4497a33b5f5d
refs/heads/master: 9a841ebb9cac3f1b7253bb01c304f89b1af25aba
7 changes: 4 additions & 3 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,10 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
INIT_WORK(&card->deferred_resume_work, soc_resume_deferred);
#endif

if (card->dapm_widgets)
snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets,
card->num_dapm_widgets);

/* initialise the sound card only once */
if (card->probe) {
ret = card->probe(card);
Expand Down Expand Up @@ -1911,9 +1915,6 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
card->controls,
card->num_controls);

if (card->dapm_widgets)
snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets,
card->num_dapm_widgets);
if (card->dapm_routes)
snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,
card->num_dapm_routes);
Expand Down

0 comments on commit 8a23c56

Please sign in to comment.