Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae248d7d authored by Hemant Kumar's avatar Hemant Kumar
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent b128f2fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -657,6 +657,7 @@ static int usb_audio_probe(struct usb_interface *intf,
	chip = snd_usb_audio_probe(interface_to_usbdev(intf), intf, id);
	chip = snd_usb_audio_probe(interface_to_usbdev(intf), intf, id);
	if (chip) {
	if (chip) {
		usb_set_intfdata(intf, chip);
		usb_set_intfdata(intf, chip);
		usb_enable_autosuspend(chip->dev);
		return 0;
		return 0;
	} else
	} else
		return -EIO;
		return -EIO;