Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283762
b: refs/heads/master
c: 983a150
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 23, 2011
1 parent d0670d1 commit af4fb27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 193b2f3f53690ca1f7409340dd9e63fcac1f6277
refs/heads/master: 983a150a12f8cf729784d3118b25a757f8cbe46a
6 changes: 6 additions & 0 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,12 @@ int snd_soc_resume(struct device *dev)
struct snd_soc_card *card = dev_get_drvdata(dev);
int i, ac97_control = 0;

/* If the initialization of this soc device failed, there is no codec
* associated with it. Just bail out in this case.
*/
if (list_empty(&card->codec_dev_list))
return 0;

/* AC97 devices might have other drivers hanging off them so
* need to resume immediately. Other drivers don't have that
* problem and may take a substantial amount of time to resume
Expand Down

0 comments on commit af4fb27

Please sign in to comment.