git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: usb-audio: Fix autopm error during probing
[pandora-kernel.git]
/
sound
/
usb
/
card.c
diff --git
a/sound/usb/card.c
b/sound/usb/card.c
index
566acb3
..
acb7fac
100644
(file)
--- a/
sound/usb/card.c
+++ b/
sound/usb/card.c
@@
-611,7
+611,9
@@
int snd_usb_autoresume(struct snd_usb_audio *chip)
int err = -ENODEV;
down_read(&chip->shutdown_rwsem);
- if (!chip->shutdown && !chip->probing)
+ if (chip->probing)
+ err = 0;
+ else if (!chip->shutdown)
err = usb_autopm_get_interface(chip->pm_intf);
up_read(&chip->shutdown_rwsem);