diff options
author | Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> | 2012-02-29 10:58:49 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:05:07 +0200 |
commit | 6767a710af4d60ec91f7d813deec8da046acf56c (patch) | |
tree | eedf3ea07641089d53261862c81caa488a8f9839 /sound | |
parent | 79cd4a39087c2a75caba0f6730edff3f24c13a08 (diff) |
USB:Enabling autosuspend in Host audio
Allowing to suspend the usb bus if the connected device is
a USB Audio device.
ST-Ericsson ID: 415876
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/card.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c index 4a7be7b9833..e667491baee 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -445,6 +445,7 @@ snd_usb_audio_probe(struct usb_device *dev, struct usb_host_interface *alts; int ifnum; u32 id; + struct usb_device *snd_dev; alts = &intf->altsetting[0]; ifnum = get_iface_desc(alts)->bInterfaceNumber; @@ -527,6 +528,9 @@ snd_usb_audio_probe(struct usb_device *dev, usb_chip[chip->index] = chip; chip->num_interfaces++; chip->probing = 0; + snd_dev = interface_to_usbdev(intf); + usb_enable_autosuspend(snd_dev); + mutex_unlock(®ister_mutex); return chip; |