Message ID | 20240717091951.11344-1-wangdich9700@163.com |
---|---|
State | Superseded |
Headers | show |
Series | ALSA: usb-audio: Fix microphone sound on HD webcam. | expand |
On Wed, 17 Jul 2024 11:19:51 +0200, wangdicheng wrote: > V1 -> V2: align the space Please put "v2" in the subject, i.e. "[PATCH v2] ALSA: ..." > --- a/sound/usb/quirks.c > +++ b/sound/usb/quirks.c > @@ -2179,6 +2179,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { > QUIRK_FLAG_FIXED_RATE), > DEVICE_FLG(0x1bcf, 0x2283, /* NexiGo N930AF FHD Webcam */ > QUIRK_FLAG_GET_SAMPLE_RATE), > + DEVICE_FLG(0x1bcf, 0x2281, /* HD Webcam */ > + QUIRK_FLAG_GET_SAMPLE_RATE), > > /* Vendor matches */ > VENDOR_FLG(0x045e, /* MS Lifecam */ This still doesn't to apply the latest code cleanly. You must be using an old kernel code. There was rearrangement of the table entries in the commit 668abe6dc7b6, and this has been backported to some stable kernels as well. Please try to rebase to the latest code. thanks, Takashi
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 409fc1164694..d1bdb0b93bda 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1211,6 +1211,13 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval, cval->res = 16; } break; + case USB_ID(0x1bcf, 0x2281): /* HD Webcam */ + if (!strcmp(kctl->id.name, "Mic Capture Volume")) { + usb_audio_info(chip, + "set resolution quirk: cval->res = 16\n"); + cval->res = 16; + } + break; } } diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 4e64842245e1..7cd13e4fda4f 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2179,6 +2179,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_FIXED_RATE), DEVICE_FLG(0x1bcf, 0x2283, /* NexiGo N930AF FHD Webcam */ QUIRK_FLAG_GET_SAMPLE_RATE), + DEVICE_FLG(0x1bcf, 0x2281, /* HD Webcam */ + QUIRK_FLAG_GET_SAMPLE_RATE), /* Vendor matches */ VENDOR_FLG(0x045e, /* MS Lifecam */