Commit e4b0e41f authored by Takashi Iwai's avatar Takashi Iwai

ALSA: usb-audio: Use the new macro for HP Dock rename quirks

Replace the open-code with the new QUIRK_DEVICE_PROFILE() macro for
simplicity.

Fixes: 0c5086f5 ("ALSA: usb-audio: Add vendor, product and profile name for HP Thunderbolt Dock")
Link: https://lore.kernel.org/r/20200608071513.570-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0c5086f5
...@@ -43,22 +43,14 @@ ...@@ -43,22 +43,14 @@
/* HP Thunderbolt Dock Audio Headset */ /* HP Thunderbolt Dock Audio Headset */
{ {
USB_DEVICE(0x03f0, 0x0269), USB_DEVICE(0x03f0, 0x0269),
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { QUIRK_DEVICE_PROFILE("HP", "Thunderbolt Dock Audio Headset",
.vendor_name = "HP", "HP-Thunderbolt-Dock-Audio-Headset"),
.product_name = "Thunderbolt Dock Audio Headset",
.profile_name = "HP-Thunderbolt-Dock-Audio-Headset",
.ifnum = QUIRK_NO_INTERFACE
}
}, },
/* HP Thunderbolt Dock Audio Module */ /* HP Thunderbolt Dock Audio Module */
{ {
USB_DEVICE(0x03f0, 0x0567), USB_DEVICE(0x03f0, 0x0567),
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { QUIRK_DEVICE_PROFILE("HP", "Thunderbolt Dock Audio Module",
.vendor_name = "HP", "HP-Thunderbolt-Dock-Audio-Module"),
.product_name = "Thunderbolt Dock Audio Module",
.profile_name = "HP-Thunderbolt-Dock-Audio-Module",
.ifnum = QUIRK_NO_INTERFACE
}
}, },
/* FTDI devices */ /* FTDI devices */
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment