From d314a9ef47e303c957bf45e01200e421753b1e56 Mon Sep 17 00:00:00 2001 From: Jonathan Bell Date: Thu, 15 Apr 2021 13:15:14 +0100 Subject: [PATCH 378/552] sound/usb: add device quirks for A4Tech FHD 1080p webcams These devices use a type of Sonix chipset that produces broken microphone data if suspended/resumed. They also don't support readback of the sample rate. Signed-off-by: Jonathan Bell --- sound/usb/quirks-table.h | 9 +++++++++ sound/usb/quirks.c | 1 + 2 files changed, 10 insertions(+) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 19bb499c17da..bfc53a26388a 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -46,6 +46,15 @@ } }, +{ + /* A4Tech FHD 1080p webcam */ + USB_DEVICE(0x09da, 0x2695), + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_SETUP_DISABLE_AUTOSUSPEND + } +}, + { /* Creative BT-D1 */ USB_DEVICE(0x041e, 0x0005), diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 326d1b0ea5e6..a240a5d480aa 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1534,6 +1534,7 @@ bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip) case USB_ID(0x2912, 0x30c8): /* Audioengine D1 */ case USB_ID(0x413c, 0xa506): /* Dell AE515 sound bar */ case USB_ID(0x046d, 0x084c): /* Logitech ConferenceCam Connect */ + case USB_ID(0x09da, 0x2695): /* A4Tech FHD 1080p webcam */ return true; } -- 2.33.0