All of lore.kernel.org
 help / color / mirror / Atom feed
From: chris@kode54.net
To: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>
Cc: Christopher Snowhill <chris@kode54.net>, Rong Zhang <i@rong.moe>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ALSA: usb-audio: Add quirk flags for Logitech PRO X 2 LIGHTSPEED
Date: Fri, 20 Nov 2026 04:03:48 -0800	[thread overview]
Message-ID: <20261120120356.10909-3-chris@kode54.net> (raw)
In-Reply-To: <20261120120356.10909-1-chris@kode54.net>

The receiver of the Logitech PRO X 2 LIGHTSPEED headset (046d:0af7)
resets itself on ordinary requests such as SET_INTERFACE when it has
been hotplugged and not yet gone through a reset of its own. When the
probe-time interface setup runs shortly after configuration, the
receiver can instead stop answering control requests altogether until
its watchdog resets it about 77 seconds later, and the headset may not
pair afterwards.

Skip the probe-time interface setup, so that the first alt setting
change happens at stream open. The receiver still resets once there,
but re-enumerates within half a second and then works normally. Also
set IFACE_DELAY: the delay after SET_INTERFACE lets the receiver drop
off before the sample rate request is sent; otherwise that request is
in flight when the device disappears and the disconnect waits for the
control message timeout, delaying recovery by five seconds.

Keep CTL_MSG_DELAY_1M from the Logitech vendor entry, which a device
entry replaces.

A receiver that is present at boot is not affected.

Assisted-by: AI
Signed-off-by: Christopher Snowhill <chris@kode54.net>
---
 sound/usb/quirks.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index cff10fac496f..29523d2a99bd 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -2284,6 +2284,9 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 	DEVICE_FLG(0x046d, 0x0aba, /* Logitech PRO X Wireless */
 		   QUIRK_FLAG_MIXER_GET_CUR_OK |
 		   QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE),
+	DEVICE_FLG(0x046d, 0x0af7, /* Logitech PRO X 2 LIGHTSPEED */
+		   QUIRK_FLAG_CTL_MSG_DELAY_1M | QUIRK_FLAG_SKIP_IFACE_SETUP |
+		   QUIRK_FLAG_IFACE_DELAY),
 	DEVICE_FLG(0x0499, 0x1506, /* Yamaha THR5 */
 		   QUIRK_FLAG_GENERIC_IMPLICIT_FB),
 	DEVICE_FLG(0x0499, 0x1509, /* Steinberg UR22 */
-- 
2.56.0


  parent reply	other threads:[~2026-11-20 12:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 12:03 [PATCH 0/2] ALSA: usb-audio: quirk_flags parsing fix and Logitech PRO X 2 LIGHTSPEED quirk chris
2026-11-20 12:03 ` [PATCH 1/2] ALSA: usb-audio: Ignore trailing whitespace in quirk_flags chris
2026-11-20 12:03 ` chris [this message]
2026-11-20 17:09 ` [PATCH 0/2] ALSA: usb-audio: quirk_flags parsing fix and Logitech PRO X 2 LIGHTSPEED quirk Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261120120356.10909-3-chris@kode54.net \
    --to=chris@kode54.net \
    --cc=i@rong.moe \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.