]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: usb-audio: Add quirk for HP 320 FHD Webcam
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2024 12:02:17 +0000 (13:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Nov 2024 12:13:39 +0000 (13:13 +0100)
commit dabc44c28f118910dea96244d903f0c270225669 upstream.

HP 320 FHD Webcam (03f0:654a) seems to have flaky firmware like other
webcam devices that don't like the frequency inquiries.  Also, Mic
Capture Volume has an invalid resolution, hence fix it to be 16 (as a
blind shot).

Link: https://bugzilla.suse.com/show_bug.cgi?id=1232768
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20241105120220.5740-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c
sound/usb/quirks.c

index ae27e5c57c70e50360a1a596542fc076cc01943d..4b979218d3b027d6022528bba4e1b97572ae92cc 100644 (file)
@@ -1206,6 +1206,7 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval,
                }
                break;
        case USB_ID(0x1bcf, 0x2283): /* NexiGo N930AF FHD Webcam */
+       case USB_ID(0x03f0, 0x654a): /* HP 320 FHD Webcam */
                if (!strcmp(kctl->id.name, "Mic Capture Volume")) {
                        usb_audio_info(chip,
                                "set resolution quirk: cval->res = 16\n");
index 066e972e0e10a21a4dd7559de7b94a8a7bf7eff2..1d620c2f41a35445a667ce607518ca7dc5e54fdb 100644 (file)
@@ -1747,6 +1747,8 @@ struct usb_audio_quirk_flags_table {
 
 static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
        /* Device matches */
+       DEVICE_FLG(0x03f0, 0x654a, /* HP 320 FHD Webcam */
+                  QUIRK_FLAG_GET_SAMPLE_RATE),
        DEVICE_FLG(0x041e, 0x3000, /* Creative SB Extigy */
                   QUIRK_FLAG_IGNORE_CTL_ERROR),
        DEVICE_FLG(0x041e, 0x4080, /* Creative Live Cam VF0610 */