From 6373b35536e459da45cd3ad5aa6b4d8ce08254e9 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Fri, 1 Apr 2016 19:13:01 -0700 Subject: [PATCH] sound: usb: Enable autosuspend for usb audio device This allows runtime suspend to kick in upon all the children of usb device are suspended. It saves power when usb audio device is connected but not data transfer is taking place. CRs-Fixed: 1003807 Change-Id: I227a74c029f10ffda9ceccc10322ad71e7fd0435 Signed-off-by: Hemant Kumar --- sound/usb/card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/usb/card.c b/sound/usb/card.c index e94f4d2f2620..524688e4c144 100644 --- a/sound/usb/card.c +++ b/sound/usb/card.c @@ -643,6 +643,7 @@ static int usb_audio_probe(struct usb_interface *intf, usb_chip[chip->index] = chip; chip->num_interfaces++; usb_set_intfdata(intf, chip); + usb_enable_autosuspend(chip->dev); atomic_dec(&chip->active); mutex_unlock(®ister_mutex); return 0;