]> www.infradead.org Git - users/hch/misc.git/commitdiff
ALSA: usb-audio: apply quirk for MOONDROP Quark2
authorCryolitia PukNgae <cryolitia@uniontech.com>
Wed, 3 Sep 2025 05:09:48 +0000 (13:09 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Sep 2025 13:37:30 +0000 (15:37 +0200)
It reports a MIN value -15360 for volume control, but will mute when
setting it less than -14208

Tested-by: Guoli An <anguoli@uniontech.com>
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-4-d4ca777b8512@uniontech.com
sound/usb/mixer.c

index 5fcf1117777d1a1423806ea139a7692eea3c9ee8..34bcbfd8b54e66abc0229eefd354eb7bc4c01576 100644 (file)
@@ -1182,6 +1182,13 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval,
                        cval->res = 1;
                }
                break;
+       case USB_ID(0x3302, 0x12db): /* MOONDROP Quark2 */
+               if (!strcmp(kctl->id.name, "PCM Playback Volume")) {
+                       usb_audio_info(chip,
+                               "set volume quirk for MOONDROP Quark2\n");
+                       cval->min = -14208; /* Mute under it */
+               }
+               break;
        }
 }