Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316243
b: refs/heads/master
c: a9db7db
h: refs/heads/master
i:
  316241: 33e3470
  316239: 0f074a9
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 13, 2012
1 parent c84fb5e commit 770d849
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: b883f363495f3d2e237170f6b8814869a3dd16fe
refs/heads/master: a9db7dbee0436f0c741c6dfb39ab0241d4131539
14 changes: 9 additions & 5 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,9 @@ 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);
module_put(cpu_dai->dev->driver->owner);

if (!cpu_dai->codec)
module_put(cpu_dai->dev->driver->owner);
}
}

Expand Down Expand Up @@ -1257,11 +1259,13 @@ static int soc_probe_dai_link(struct snd_soc_card *card, int num, int order)
/* probe the cpu_dai */
if (!cpu_dai->probed &&
cpu_dai->driver->probe_order == order) {
cpu_dai->dapm.card = card;
if (!try_module_get(cpu_dai->dev->driver->owner))
return -ENODEV;
if (!cpu_dai->codec) {
cpu_dai->dapm.card = card;
if (!try_module_get(cpu_dai->dev->driver->owner))
return -ENODEV;

snd_soc_dapm_new_dai_widgets(&cpu_dai->dapm, cpu_dai);
snd_soc_dapm_new_dai_widgets(&cpu_dai->dapm, cpu_dai);
}

if (cpu_dai->driver->probe) {
ret = cpu_dai->driver->probe(cpu_dai);
Expand Down

0 comments on commit 770d849

Please sign in to comment.