376bc6071148322dcab068bf48f017394cdea589
[openwrt/staging/chunkeey.git] /
1 From 42fbd61f4775d9ec9e7a1d1833565a45581efb27 Mon Sep 17 00:00:00 2001
2 From: Jonathan Bell <jonathan@raspberrypi.com>
3 Date: Thu, 15 Apr 2021 13:15:14 +0100
4 Subject: [PATCH] sound/usb: add device quirks for A4Tech FHD 1080p
5 webcams
6
7 These devices use a type of Sonix chipset that produces broken microphone
8 data if suspended/resumed.
9
10 They also don't support readback of the sample rate.
11
12 Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
13 ---
14 sound/usb/quirks-table.h | 9 +++++++++
15 sound/usb/quirks.c | 1 +
16 2 files changed, 10 insertions(+)
17
18 --- a/sound/usb/quirks-table.h
19 +++ b/sound/usb/quirks-table.h
20 @@ -47,6 +47,15 @@
21 },
22
23 {
24 + /* A4Tech FHD 1080p webcam */
25 + USB_DEVICE(0x09da, 0x2695),
26 + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
27 + .ifnum = QUIRK_ANY_INTERFACE,
28 + .type = QUIRK_SETUP_DISABLE_AUTOSUSPEND
29 + }
30 +},
31 +
32 +{
33 /* Creative BT-D1 */
34 USB_DEVICE(0x041e, 0x0005),
35 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
36 --- a/sound/usb/quirks.c
37 +++ b/sound/usb/quirks.c
38 @@ -1530,6 +1530,7 @@ bool snd_usb_get_sample_rate_quirk(struc
39 case USB_ID(0x2912, 0x30c8): /* Audioengine D1 */
40 case USB_ID(0x413c, 0xa506): /* Dell AE515 sound bar */
41 case USB_ID(0x046d, 0x084c): /* Logitech ConferenceCam Connect */
42 + case USB_ID(0x09da, 0x2695): /* A4Tech FHD 1080p webcam */
43 return true;
44 }
45