From 6767a710af4d60ec91f7d813deec8da046acf56c Mon Sep 17 00:00:00 2001 From: Sakethram Bommisetti Date: Wed, 29 Feb 2012 10:58:49 +0530 Subject: 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 --- sound/usb/card.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sound') 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; -- cgit v1.2.3