Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316244
b: refs/heads/master
c: 18d7564
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 13, 2012
1 parent 770d849 commit 98e39e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: a9db7dbee0436f0c741c6dfb39ab0241d4131539
refs/heads/master: 18d756440e8ed292b772682c4440a9d33643225b
5 changes: 4 additions & 1 deletion trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,10 @@ static void soc_remove_dai_link(struct snd_soc_card *card, int num, int order)
cpu_dai->probed = 0;
list_del(&cpu_dai->card_list);

if (!cpu_dai->codec)
if (!cpu_dai->codec) {
snd_soc_dapm_free(&cpu_dai->dapm);
module_put(cpu_dai->dev->driver->owner);
}
}
}

Expand Down Expand Up @@ -1264,6 +1266,7 @@ static int soc_probe_dai_link(struct snd_soc_card *card, int num, int order)
if (!try_module_get(cpu_dai->dev->driver->owner))
return -ENODEV;

list_add(&cpu_dai->dapm.list, &card->dapm_list);
snd_soc_dapm_new_dai_widgets(&cpu_dai->dapm, cpu_dai);
}

Expand Down

0 comments on commit 98e39e5

Please sign in to comment.