Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276284
b: refs/heads/master
c: 5ff1ddf
h: refs/heads/master
v: v3
  • Loading branch information
Eric Miao authored and Mark Brown committed Nov 23, 2011
1 parent b70c96b commit b76b3f8
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: b284362b6b45150d171ff5bed92bc416b040aead
refs/heads/master: 5ff1ddf22b2584d00d7e0ba5a8eab07b5338bd84
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 b76b3f8

Please sign in to comment.