Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230337
b: refs/heads/master
c: 676ad98
h: refs/heads/master
i:
  230335: 137404e
v: v3
  • Loading branch information
Jarkko Nikula authored and Mark Brown committed Dec 3, 2010
1 parent ed0901d commit 935a85f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 4bd3a1f415affa4729856dca7e39c5093a9a954f
refs/heads/master: 676ad98a06a629e6273819a54b70f3987044b608
8 changes: 6 additions & 2 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ static int soc_probe_aux_dev(struct snd_soc_card *card, int num)
struct snd_soc_pcm_runtime *rtd = &card->rtd_aux[num];
struct snd_soc_codec *codec;
const char *temp;
int ret = 0;
int ret = -ENODEV;

/* find CODEC from registered CODECs*/
list_for_each_entry(codec, &codec_list, list) {
Expand All @@ -1620,10 +1620,14 @@ static int soc_probe_aux_dev(struct snd_soc_card *card, int num)
ret = -EBUSY;
goto out;
}
break;
goto found;
}
}
/* codec not found */
dev_err(card->dev, "asoc: codec %s not found", aux_dev->codec_name);
goto out;

found:
if (!try_module_get(codec->dev->driver->owner))
return -ENODEV;

Expand Down

0 comments on commit 935a85f

Please sign in to comment.