From 9ed86b4e6c438e2205f41ccc5691cd026130936d Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Tue, 13 Dec 2016 18:13:56 -0800 Subject: [PATCH] sound: usb: auto suspend device only if it supports remote wakeup Some usb headsets which do not support remote wakeup when suspended and resumed by host resulting device disconnect. Hence do not suspend device if it not remote wake up capable. Change-Id: Ia2462116582b6e22c44cff88df2872e4127e5e29 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 1f6c247f773a..76720b2a1f0e 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); + intf->needs_remote_wakeup = 1; usb_enable_autosuspend(chip->dev); atomic_dec(&chip->active); mutex_unlock(®ister_mutex);