diff options
| author | Cryolitia PukNgae <cryolitia@uniontech.com> | 2025-09-03 13:09:48 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-09-04 15:37:30 +0200 |
| commit | a73349c5dd27bc544b048e2e2c8ef6394f05b793 (patch) | |
| tree | 76ec317c7998e4df9e7d56304c5442326e3c2d68 | |
| parent | 806a38293fc0dfc80e556ec8f389dffc6ea90059 (diff) | |
ALSA: usb-audio: apply quirk for MOONDROP Quark2
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
| -rw-r--r-- | sound/usb/mixer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 5fcf1117777d..34bcbfd8b54e 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -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; } } |
