From f537dfe3835b334509039a7cb1d89ba2739fdec2 Mon Sep 17 00:00:00 2001 From: William Wu Date: Tue, 27 Sep 2022 21:13:35 +0800 Subject: [PATCH] USB: quirks: add quirk auto suspend for Sonix webcam The Sonix webcam (idVendor=0x0c45,idProduct=0x636a) can't support auto-suspend well on rockchip platforms. With auto-suspend, the usb mic of the webcam fail to start capture. So we need to disable auto-suspend for this Sonix webcam. Signed-off-by: William Wu Change-Id: Icc59c4fe1fda78be73441dc4320d6d738d031efd --- drivers/usb/core/quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index 5acf9fa3d446..ad57ebf49154 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -416,6 +416,7 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x0bda, 0x8153), .driver_info = USB_QUIRK_NO_LPM }, /* Sonix FaceBlack device */ + { USB_DEVICE(0x0c45, 0x636a), .driver_info = USB_QUIRK_AUTO_SUSPEND }, { USB_DEVICE(0x0c45, 0x64ab), .driver_info = USB_QUIRK_AUTO_SUSPEND }, { USB_DEVICE(0x0c45, 0x64ac), .driver_info = USB_QUIRK_AUTO_SUSPEND },