ALSA: usb-audio: Add a quirk for Lenovo Thinkpad Thunderbolt 3 dock
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.
Suggested-by Takashi Iwai <[email protected]>
Signed-off-by Mario Limonciello <[email protected]>
--- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+)
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 ),/* Vendor matches */ VENDOR_FLG(0x045e, /* MS Lifecam */
Signature · 1 line
2.43.0
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.
Suggested-by Takashi Iwai <[email protected]>Signed-off-by Mario Limonciello <[email protected]>
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
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