Skip to content

Commit 788449a

Browse files
dengxiangtiwai
authored andcommitted
ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
This patch adds a USB quirk for Mythware XA001AU USB interface. Signed-off-by: dengxiang <dengxiang@nfschina.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20230803024437.370069-1-dengxiang@nfschina.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 3b9adfb commit 788449a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

sound/usb/quirks-table.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,6 +4507,35 @@ YAMAHA_DEVICE(0x7010, "UB99"),
45074507
}
45084508
}
45094509
},
4510+
{
4511+
/* Advanced modes of the Mythware XA001AU.
4512+
* For the standard mode, Mythware XA001AU has ID ffad:a001
4513+
*/
4514+
USB_DEVICE_VENDOR_SPEC(0xffad, 0xa001),
4515+
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
4516+
.vendor_name = "Mythware",
4517+
.product_name = "XA001AU",
4518+
.ifnum = QUIRK_ANY_INTERFACE,
4519+
.type = QUIRK_COMPOSITE,
4520+
.data = (const struct snd_usb_audio_quirk[]) {
4521+
{
4522+
.ifnum = 0,
4523+
.type = QUIRK_IGNORE_INTERFACE,
4524+
},
4525+
{
4526+
.ifnum = 1,
4527+
.type = QUIRK_AUDIO_STANDARD_INTERFACE,
4528+
},
4529+
{
4530+
.ifnum = 2,
4531+
.type = QUIRK_AUDIO_STANDARD_INTERFACE,
4532+
},
4533+
{
4534+
.ifnum = -1
4535+
}
4536+
}
4537+
}
4538+
},
45104539

45114540
#undef USB_DEVICE_VENDOR_SPEC
45124541
#undef USB_AUDIO_DEVICE

0 commit comments

Comments
 (0)