Skip to contentSkip to conversation

ALSA: usb-audio: Fix Logitech PRO X Wireless volume control

PATCH In review Alexander Niemeyer 2 participants 2 messages Aug 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb-audio: Fix Logitech PRO X Wireless volume control

The Logitech PRO X Wireless headset (046d:0aba) advertises a UAC1
playback volume range from -64 dB to 0 dB in 1 dB steps. The -64 dB endpoint is not effective, and GET_CUR reflects effective SET_CUR changes only after roughly 50 ms.

Since commit 86aa1ea1f15c ("ALSA: usb-audio: Do not expose sticky mixers"), the probe-time sticky mixer check writes the advertised minimum or maximum value and immediately reads it back. On this device that falsely classifies the working playback volume control as sticky and removes it, leaving only the PCM Playback Switch control.

Clamp the unusable minimum to the next step (-63 dB) for Feature Unit 2 volume control and skip the probe-time sticky/resolution checks for this control.

With the quirk applied, ALSA exposes PCM Playback Volume again and the physical headset volume wheel updates ALSA and PipeWire/KDE system volume normally.

Tested on Linux 7.1.5 with Logitech PRO X Wireless 046d:0aba.

Fixes 86aa1ea1f15c ("ALSA: usb-audio: Do not expose sticky mixers")
Assisted-by ChatGPT:GPT-5.6-Sol
---
 sound/usb/mixer.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
sound/usb/mixer.c +15 -0
@@ -1299,6 +1299,21 @@ static int get_min_max_with_quirks(struct usb_mixer_elem_info *cval,
         if (cval->res == 0)
             cval->res = 1;
 
+        /*
+         * Logitech PRO X Wireless advertises a non-functional
+         * -64 dB minimum and delays GET_CUR updates.
+         */
+        if (cval->head.mixer->chip->usb_id ==
+            USB_ID(0x046d, 0x0aba) &&
+            cval->head.id == 2 &&
+            cval->control == UAC_FU_VOLUME) {
+            usb_audio_info(cval->head.mixer->chip,
+                       "Logitech PRO X Wireless: applying "
+                       "playback volume quirk\n");
+            cval->min = -16128; /* -63 dB */
+            goto no_checks;
+        }
+
         if (cval->min < cval->max) {
             int saved;
#1 lore raw

Hi Alexander,

Quoted 43 lines · Alexander Niemeyer

The Logitech PRO X Wireless headset (046d:0aba) advertises a UAC1
playback volume range from -64 dB to 0 dB in 1 dB steps. The -64 dB endpoint is not effective, and GET_CUR reflects effective SET_CUR changes only after roughly 50 ms.

Since commit 86aa1ea1f15c ("ALSA: usb-audio: Do not expose sticky mixers"), the probe-time sticky mixer check writes the advertised minimum or maximum value and immediately reads it back. On this device that falsely classifies the working playback volume control as sticky and removes it, leaving only the PCM Playback Switch control.

Clamp the unusable minimum to the next step (-63 dB) for Feature Unit 2 volume control and skip the probe-time sticky/resolution checks for this control.

With the quirk applied, ALSA exposes PCM Playback Volume again and the physical headset volume wheel updates ALSA and PipeWire/KDE system volume normally.

Tested on Linux 7.1.5 with Logitech PRO X Wireless 046d:0aba.

Fixes 86aa1ea1f15c ("ALSA: usb-audio: Do not expose sticky mixers")
Assisted-by ChatGPT:GPT-5.6-Sol
---
  sound/usb/mixer.c | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
sound/usb/mixer.c +5 -0
@@ -1299,6 +1299,21 @@ static int get_min_max_with_quirks(struct 
 usb_mixer_elem_info *cval,
          if (cval->res == 0)
              cval->res = 1;
 
+        /*
+         * Logitech PRO X Wireless advertises a non-functional
+         * -64 dB minimum and delays GET_CUR updates.
+         */
+        if (cval->head.mixer->chip->usb_id ==

sound/usb/mixer.c static int get_min_max_with_quirks(struct · line 1317

Quoted 10 lines
sound/usb/mixer.c +10 -0
+            USB_ID(0x046d, 0x0aba) &&
+            cval->head.id == 2 &&
+            cval->control == UAC_FU_VOLUME) {
+            usb_audio_info(cval->head.mixer->chip,
+                       "Logitech PRO X Wireless: applying "
+                       "playback volume quirk\n");
+            cval->min = -16128; /* -63 dB */
+            goto no_checks;
+        }
+

Adding a device-specific quirk here made me uncomfortable. If my proposed improvement to the sticky check works for you (after me finishing it and you testing it), it'd better adding the quirk to volume_control_quirks().

Thanks,
Rong

Quoted 2 lines
sound/usb/mixer.c +0 -0
          if (cval->min < cval->max) {
              int saved;