Skip to contentSkip to conversation

ALSA: usb-audio: Add a quirk for Lenovo Thinkpad Thunderbolt 3 dock

PATCH Superseded Mario Limonciello 2 participants 2 messages May 23, 2025 – May 24, 2025 Sound

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ALSA: usb-audio: Add a quirk for Lenovo Thinkpad Thunderbolt 3 dock

From: Mario Limonciello <[email protected]>

The audio controller in the Lenovo Thinkpad Thunderbolt 3 dock doesn't support reading the sampling rate.

Add a quirk for it.

---
 sound/usb/quirks.c | 2 ++
 1 file changed, 2 insertions(+)
sound/usb/quirks.c +2 -0
index dbbc9eb935a4b..c29607091fb1c 100644
@@ -2360,6 +2360,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 		   QUIRK_FLAG_ALIGN_TRANSFER),
 	DEVICE_FLG(0x534d, 0x2109, /* MacroSilicon MS2109 */
 		   QUIRK_FLAG_ALIGN_TRANSFER),
+	DEVICE_FLG(0x17ef, 0x3083, /* Lenovo TBT3 dock */
+		   QUIRK_FLAG_GET_SAMPLE_RATE),
 
 	/* Vendor matches */
 	VENDOR_FLG(0x045e, /* MS Lifecam */
Signature · 1 line
2.43.0
#1 lore raw
Quoted 10 lines · Mario Limonciello

From: Mario Limonciello <[email protected]>

The audio controller in the Lenovo Thinkpad Thunderbolt 3 dock doesn't support reading the sampling rate.

Add a quirk for it.

Thanks for the renewed patch.
Just a minor thing:

Quoted 9 lines
---
 sound/usb/quirks.c | 2 ++
 1 file changed, 2 insertions(+)
sound/usb/quirks.c +0 -0
index dbbc9eb935a4b..c29607091fb1c 100644

sound/usb/quirks.c static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { · line 2364

Quoted 5 lines
sound/usb/quirks.c +2 -0
@@ -2360,6 +2360,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 		   QUIRK_FLAG_ALIGN_TRANSFER),
 	DEVICE_FLG(0x534d, 0x2109, /* MacroSilicon MS2109 */
 		   QUIRK_FLAG_ALIGN_TRANSFER),
+	DEVICE_FLG(0x17ef, 0x3083, /* Lenovo TBT3 dock */
+		   QUIRK_FLAG_GET_SAMPLE_RATE),

The table is sorted in the ID number order. Could you put the new entry at the right position?

Takashi