2019-05-27 14:55:05 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* ALSA USB Audio Driver
|
|
|
|
*
|
|
|
|
* Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
|
|
|
|
* Clemens Ladisch <clemens@ladisch.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The contents of this file are part of the driver's id_table.
|
|
|
|
*
|
|
|
|
* In a perfect world, this file would be empty.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Use this for devices where other interfaces are standard compliant,
|
|
|
|
* to prevent the quirk being applied to those interfaces. (To work with
|
|
|
|
* hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
|
|
|
|
*/
|
|
|
|
#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
|
|
|
|
USB_DEVICE_ID_MATCH_PRODUCT | \
|
|
|
|
USB_DEVICE_ID_MATCH_INT_CLASS, \
|
|
|
|
.idVendor = vend, \
|
|
|
|
.idProduct = prod, \
|
|
|
|
.bInterfaceClass = USB_CLASS_VENDOR_SPEC
|
|
|
|
|
2020-08-17 16:21:39 +08:00
|
|
|
/* A standard entry matching with vid/pid and the audio class/subclass */
|
|
|
|
#define USB_AUDIO_DEVICE(vend, prod) \
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
|
|
|
|
USB_DEVICE_ID_MATCH_INT_CLASS | \
|
|
|
|
USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
|
|
|
|
.idVendor = vend, \
|
|
|
|
.idProduct = prod, \
|
|
|
|
.bInterfaceClass = USB_CLASS_AUDIO, \
|
|
|
|
.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
|
|
|
|
|
2011-08-26 19:19:49 +08:00
|
|
|
/* FTDI devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0403, 0xb8d8),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "STARR LABS", */
|
|
|
|
/* .product_name = "Starr Labs MIDI USB device", */
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FTDI
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-01-03 19:59:07 +08:00
|
|
|
{
|
|
|
|
/* Creative BT-D1 */
|
|
|
|
USB_DEVICE(0x041e, 0x0005),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x03,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.attributes = 0,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-08-17 16:21:40 +08:00
|
|
|
/* E-Mu 0202 USB */
|
2020-08-23 19:32:51 +08:00
|
|
|
{ USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f02) },
|
2020-08-17 16:21:40 +08:00
|
|
|
/* E-Mu 0404 USB */
|
2020-08-23 19:32:51 +08:00
|
|
|
{ USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f04) },
|
2020-08-17 16:21:40 +08:00
|
|
|
/* E-Mu Tracker Pre */
|
2020-08-23 19:32:51 +08:00
|
|
|
{ USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f0a) },
|
2020-08-17 16:21:40 +08:00
|
|
|
/* E-Mu 0204 USB */
|
2020-08-23 19:32:51 +08:00
|
|
|
{ USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f19) },
|
2008-02-25 18:04:19 +08:00
|
|
|
|
2021-10-13 04:09:07 +08:00
|
|
|
/*
|
|
|
|
* Creative Technology, Ltd Live! Cam Sync HD [VF0770]
|
|
|
|
* The device advertises 8 formats, but only a rate of 48kHz is honored by the
|
|
|
|
* hardware and 24 bits give chopped audio, so only report the one working
|
|
|
|
* combination.
|
|
|
|
*/
|
|
|
|
{
|
2022-02-01 02:35:16 +08:00
|
|
|
USB_AUDIO_DEVICE(0x041e, 0x4095),
|
2021-10-13 04:09:07 +08:00
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 2,
|
|
|
|
.fmt_bits = 16,
|
|
|
|
.iface = 3,
|
|
|
|
.altsetting = 4,
|
|
|
|
.altset_idx = 4,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2012-12-15 12:30:33 +08:00
|
|
|
/*
|
|
|
|
* HP Wireless Audio
|
|
|
|
* When not ignored, causes instability issues for some users, forcing them to
|
2020-07-15 01:26:31 +08:00
|
|
|
* skip the entire module.
|
2012-12-15 12:30:33 +08:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0424, 0xb832),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Standard Microsystems Corp.",
|
|
|
|
.product_name = "HP Wireless Audio",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
/* Mixer */
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE,
|
|
|
|
},
|
|
|
|
/* Playback */
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE,
|
|
|
|
},
|
|
|
|
/* Capture */
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE,
|
|
|
|
},
|
|
|
|
/* HID Device, .ifnum = 3 */
|
|
|
|
{
|
|
|
|
.ifnum = -1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2007-05-07 15:27:05 +08:00
|
|
|
/*
|
|
|
|
* Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
|
|
|
|
* class matches do not take effect without an explicit ID match.
|
|
|
|
*/
|
2020-08-17 16:21:39 +08:00
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x0850) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x08ae) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x08c6) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x08f0) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x08f5) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x08f6) },
|
|
|
|
{ USB_AUDIO_DEVICE(0x046d, 0x0990) },
|
2008-02-25 18:04:19 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Yamaha devices
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define YAMAHA_DEVICE(id, name) { \
|
|
|
|
USB_DEVICE(0x0499, id), \
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Yamaha", \
|
|
|
|
.product_name = name, \
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE, \
|
|
|
|
.type = QUIRK_MIDI_YAMAHA \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
#define YAMAHA_INTERFACE(id, intf, name) { \
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0499, id), \
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Yamaha", \
|
|
|
|
.product_name = name, \
|
|
|
|
.ifnum = intf, \
|
|
|
|
.type = QUIRK_MIDI_YAMAHA \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
YAMAHA_DEVICE(0x1000, "UX256"),
|
|
|
|
YAMAHA_DEVICE(0x1001, "MU1000"),
|
|
|
|
YAMAHA_DEVICE(0x1002, "MU2000"),
|
|
|
|
YAMAHA_DEVICE(0x1003, "MU500"),
|
|
|
|
YAMAHA_INTERFACE(0x1004, 3, "UW500"),
|
|
|
|
YAMAHA_DEVICE(0x1005, "MOTIF6"),
|
|
|
|
YAMAHA_DEVICE(0x1006, "MOTIF7"),
|
|
|
|
YAMAHA_DEVICE(0x1007, "MOTIF8"),
|
|
|
|
YAMAHA_DEVICE(0x1008, "UX96"),
|
|
|
|
YAMAHA_DEVICE(0x1009, "UX16"),
|
|
|
|
YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
|
|
|
|
YAMAHA_DEVICE(0x100c, "UC-MX"),
|
|
|
|
YAMAHA_DEVICE(0x100d, "UC-KX"),
|
|
|
|
YAMAHA_DEVICE(0x100e, "S08"),
|
|
|
|
YAMAHA_DEVICE(0x100f, "CLP-150"),
|
|
|
|
YAMAHA_DEVICE(0x1010, "CLP-170"),
|
|
|
|
YAMAHA_DEVICE(0x1011, "P-250"),
|
|
|
|
YAMAHA_DEVICE(0x1012, "TYROS"),
|
|
|
|
YAMAHA_DEVICE(0x1013, "PF-500"),
|
|
|
|
YAMAHA_DEVICE(0x1014, "S90"),
|
|
|
|
YAMAHA_DEVICE(0x1015, "MOTIF-R"),
|
2006-03-15 19:24:19 +08:00
|
|
|
YAMAHA_DEVICE(0x1016, "MDP-5"),
|
2005-04-17 06:20:36 +08:00
|
|
|
YAMAHA_DEVICE(0x1017, "CVP-204"),
|
|
|
|
YAMAHA_DEVICE(0x1018, "CVP-206"),
|
|
|
|
YAMAHA_DEVICE(0x1019, "CVP-208"),
|
|
|
|
YAMAHA_DEVICE(0x101a, "CVP-210"),
|
|
|
|
YAMAHA_DEVICE(0x101b, "PSR-1100"),
|
|
|
|
YAMAHA_DEVICE(0x101c, "PSR-2100"),
|
|
|
|
YAMAHA_DEVICE(0x101d, "CLP-175"),
|
|
|
|
YAMAHA_DEVICE(0x101e, "PSR-K1"),
|
2006-03-15 19:24:19 +08:00
|
|
|
YAMAHA_DEVICE(0x101f, "EZ-J24"),
|
2005-04-17 06:20:36 +08:00
|
|
|
YAMAHA_DEVICE(0x1020, "EZ-250i"),
|
|
|
|
YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
|
|
|
|
YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
|
|
|
|
YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
|
|
|
|
YAMAHA_DEVICE(0x1024, "CVP-301"),
|
|
|
|
YAMAHA_DEVICE(0x1025, "CVP-303"),
|
|
|
|
YAMAHA_DEVICE(0x1026, "CVP-305"),
|
|
|
|
YAMAHA_DEVICE(0x1027, "CVP-307"),
|
|
|
|
YAMAHA_DEVICE(0x1028, "CVP-309"),
|
|
|
|
YAMAHA_DEVICE(0x1029, "CVP-309GP"),
|
|
|
|
YAMAHA_DEVICE(0x102a, "PSR-1500"),
|
|
|
|
YAMAHA_DEVICE(0x102b, "PSR-3000"),
|
|
|
|
YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
|
|
|
|
YAMAHA_DEVICE(0x1030, "PSR-295/293"),
|
|
|
|
YAMAHA_DEVICE(0x1031, "DGX-205/203"),
|
|
|
|
YAMAHA_DEVICE(0x1032, "DGX-305"),
|
|
|
|
YAMAHA_DEVICE(0x1033, "DGX-505"),
|
|
|
|
YAMAHA_DEVICE(0x1034, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1035, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1036, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1037, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1038, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1039, NULL),
|
|
|
|
YAMAHA_DEVICE(0x103a, NULL),
|
|
|
|
YAMAHA_DEVICE(0x103b, NULL),
|
|
|
|
YAMAHA_DEVICE(0x103c, NULL),
|
2005-07-01 22:19:39 +08:00
|
|
|
YAMAHA_DEVICE(0x103d, NULL),
|
2005-09-20 15:06:36 +08:00
|
|
|
YAMAHA_DEVICE(0x103e, NULL),
|
|
|
|
YAMAHA_DEVICE(0x103f, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1040, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1041, NULL),
|
2006-07-21 16:46:18 +08:00
|
|
|
YAMAHA_DEVICE(0x1042, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1043, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1044, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1045, NULL),
|
2008-07-10 17:01:06 +08:00
|
|
|
YAMAHA_INTERFACE(0x104e, 0, NULL),
|
2008-07-10 17:05:42 +08:00
|
|
|
YAMAHA_DEVICE(0x104f, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1050, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1051, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1052, NULL),
|
2010-10-04 19:09:12 +08:00
|
|
|
YAMAHA_INTERFACE(0x1053, 0, NULL),
|
|
|
|
YAMAHA_INTERFACE(0x1054, 0, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1055, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1056, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1057, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1058, NULL),
|
|
|
|
YAMAHA_DEVICE(0x1059, NULL),
|
|
|
|
YAMAHA_DEVICE(0x105a, NULL),
|
|
|
|
YAMAHA_DEVICE(0x105b, NULL),
|
|
|
|
YAMAHA_DEVICE(0x105c, NULL),
|
|
|
|
YAMAHA_DEVICE(0x105d, NULL),
|
2011-12-20 06:09:15 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0499, 0x1503),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Yamaha", */
|
|
|
|
/* .product_name = "MOX6/MOX8", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
2013-04-25 09:19:19 +08:00
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0499, 0x1507),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Yamaha", */
|
|
|
|
/* .product_name = "THR10", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
2013-04-25 09:19:20 +08:00
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2014-10-19 06:45:41 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0499, 0x1509),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Yamaha", */
|
|
|
|
/* .product_name = "Steinberg UR22", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-04-25 09:19:20 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0499, 0x150a),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Yamaha", */
|
|
|
|
/* .product_name = "THR5A", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
2013-04-25 09:19:21 +08:00
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0499, 0x150c),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Yamaha", */
|
|
|
|
/* .product_name = "THR10C", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
2011-12-20 06:09:15 +08:00
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
YAMAHA_DEVICE(0x2000, "DGP-7"),
|
|
|
|
YAMAHA_DEVICE(0x2001, "DGP-5"),
|
|
|
|
YAMAHA_DEVICE(0x2002, NULL),
|
2010-10-04 19:09:12 +08:00
|
|
|
YAMAHA_DEVICE(0x2003, NULL),
|
2005-04-17 06:20:36 +08:00
|
|
|
YAMAHA_DEVICE(0x5000, "CS1D"),
|
|
|
|
YAMAHA_DEVICE(0x5001, "DSP1D"),
|
|
|
|
YAMAHA_DEVICE(0x5002, "DME32"),
|
|
|
|
YAMAHA_DEVICE(0x5003, "DM2000"),
|
|
|
|
YAMAHA_DEVICE(0x5004, "02R96"),
|
|
|
|
YAMAHA_DEVICE(0x5005, "ACU16-C"),
|
|
|
|
YAMAHA_DEVICE(0x5006, "NHB32-C"),
|
|
|
|
YAMAHA_DEVICE(0x5007, "DM1000"),
|
|
|
|
YAMAHA_DEVICE(0x5008, "01V96"),
|
|
|
|
YAMAHA_DEVICE(0x5009, "SPX2000"),
|
|
|
|
YAMAHA_DEVICE(0x500a, "PM5D"),
|
|
|
|
YAMAHA_DEVICE(0x500b, "DME64N"),
|
|
|
|
YAMAHA_DEVICE(0x500c, "DME24N"),
|
|
|
|
YAMAHA_DEVICE(0x500d, NULL),
|
|
|
|
YAMAHA_DEVICE(0x500e, NULL),
|
2006-07-21 16:46:18 +08:00
|
|
|
YAMAHA_DEVICE(0x500f, NULL),
|
2005-04-17 06:20:36 +08:00
|
|
|
YAMAHA_DEVICE(0x7000, "DTX"),
|
|
|
|
YAMAHA_DEVICE(0x7010, "UB99"),
|
|
|
|
#undef YAMAHA_DEVICE
|
|
|
|
#undef YAMAHA_INTERFACE
|
2013-04-01 05:43:12 +08:00
|
|
|
/* this catches most recent vendor-specific Yamaha devices */
|
|
|
|
{
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
|
|
|
|
USB_DEVICE_ID_MATCH_INT_CLASS,
|
|
|
|
.idVendor = 0x0499,
|
|
|
|
.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_AUTODETECT
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Roland/RolandED/Edirol/BOSS devices
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0000),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "UA-100",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
2010-03-05 02:46:15 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
2005-04-17 06:20:36 +08:00
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x09,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
2010-03-05 02:46:15 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
2005-04-17 06:20:36 +08:00
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
2010-02-23 06:49:13 +08:00
|
|
|
.attributes = UAC_EP_CS_ATTR_FILL_MAX,
|
2005-04-17 06:20:36 +08:00
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0007,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0002),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-4",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x000f,
|
|
|
|
.in_cables = 0x000f
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0003),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "SC-8850",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x003f,
|
|
|
|
.in_cables = 0x003f
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0004),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "U-8",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0005,
|
|
|
|
.in_cables = 0x0005
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-01-19 15:25:19 +08:00
|
|
|
/* Has ID 0x0099 when not in "Advanced Driver" mode.
|
|
|
|
* The UM-2EX has only one input, but we cannot detect this. */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0005),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-2",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0007),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "SC-8820",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0013,
|
|
|
|
.in_cables = 0x0013
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0008),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "PC-300",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2006-01-19 15:25:19 +08:00
|
|
|
/* has ID 0x009d when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0009),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-1",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x000b),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "SK-500",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0013,
|
|
|
|
.in_cables = 0x0013
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* thanks to Emiliano Grilli <emillo@libero.it>
|
|
|
|
* for helping researching this data */
|
|
|
|
USB_DEVICE(0x0582, 0x000c),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "SC-D70",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2015-04-21 10:23:57 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2015-04-21 10:23:57 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0007,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ /*
|
|
|
|
* This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
|
|
|
|
* If the advanced mode switch at the back of the unit is off, the
|
|
|
|
* UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
|
|
|
|
* but offers only 16-bit PCM.
|
|
|
|
* In advanced mode, the UA-5 will output S24_3LE samples (two
|
|
|
|
* channels) at the rate indicated on the front switch, including
|
|
|
|
* the 96kHz sample rate.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x0582, 0x0010),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-5",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0013 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0012),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "XV-5050",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0015 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0014),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-880",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x01ff,
|
|
|
|
.in_cables = 0x01ff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0017 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0016),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "SD-90",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2011-01-10 23:30:54 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
2005-05-17 15:14:27 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2011-01-10 23:30:54 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
2005-05-17 15:14:27 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x000f,
|
|
|
|
.in_cables = 0x000f
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x001c when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x001b),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "MMP-2",
|
2005-05-17 15:14:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-05-17 15:14:27 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-05-17 15:14:27 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x001e when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x001d),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "V-SYNTH",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0024 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0023),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-550",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x003f,
|
|
|
|
.in_cables = 0x003f
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* This quirk is for the "Advanced Driver" mode. If off, the UA-20
|
|
|
|
* has ID 0x0026 and is standard compliant, but has only 16-bit PCM
|
|
|
|
* and no MIDI.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x0582, 0x0025),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-20",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-11-21 23:40:00 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2005-11-21 23:40:00 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
2010-03-05 02:46:15 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
2005-11-21 23:40:00 +08:00
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x01,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2005-11-21 23:40:00 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
2010-03-05 02:46:15 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
2005-11-21 23:40:00 +08:00
|
|
|
.channels = 2,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_attr = 0x01,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
2005-11-21 23:40:00 +08:00
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0028 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0027),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "SD-20",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x002a when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0029),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "SD-80",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x000f,
|
|
|
|
.in_cables = 0x000f
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ /*
|
|
|
|
* This quirk is for the "Advanced" modes of the Edirol UA-700.
|
|
|
|
* If the sample format switch is not in an advanced setting, the
|
|
|
|
* UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
|
|
|
|
* but offers only 16-bit PCM and no MIDI.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-700",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2008-10-04 22:27:36 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2008-10-04 22:27:36 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
2008-10-08 02:54:18 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x002e when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x002d),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "XV-2020",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0030 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x002f),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "VariOS",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0007,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0034 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0033),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "PCR",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/*
|
|
|
|
* Has ID 0x0038 when not in "Advanced Driver" mode;
|
|
|
|
* later revisions use IDs 0x0054 and 0x00a2.
|
|
|
|
*/
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0037),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "Digital Piano",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-04-06 15:47:02 +08:00
|
|
|
/*
|
|
|
|
* This quirk is for the "Advanced Driver" mode. If off, the GS-10
|
|
|
|
* has ID 0x003c and is standard compliant, but has only 16-bit PCM
|
|
|
|
* and no MIDI.
|
|
|
|
*/
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "BOSS",
|
|
|
|
.product_name = "GS-10",
|
2005-04-06 15:47:02 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
2005-04-06 15:47:02 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0041 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0040),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "GI-20",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0043 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0042),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "RS-70",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2007-12-19 21:25:24 +08:00
|
|
|
{
|
|
|
|
/* has ID 0x0049 when not in "Advanced Driver" mode */
|
|
|
|
USB_DEVICE(0x0582, 0x0047),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "EDIROL", */
|
|
|
|
/* .product_name = "UR-80", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
/* in the 96 kHz modes, only interface 1 is there */
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x004a when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0048),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2007-12-19 21:25:24 +08:00
|
|
|
/* .vendor_name = "EDIROL", */
|
|
|
|
/* .product_name = "UR-80", */
|
2005-04-17 06:20:36 +08:00
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2007-02-10 03:52:55 +08:00
|
|
|
{
|
|
|
|
/* has ID 0x004e when not in "Advanced Driver" mode */
|
|
|
|
USB_DEVICE(0x0582, 0x004c),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "PCR-A",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x004f when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x004d),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "PCR-A",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
|
|
|
|
* is standard compliant, but has only 16-bit PCM.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x0582, 0x0050),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-3FX",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0052),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UM-1SX",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
2007-07-09 16:39:44 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0060),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "EXR Series",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
2010-08-30 22:32:43 +08:00
|
|
|
{
|
|
|
|
/* has ID 0x0066 when not in "Advanced Driver" mode */
|
|
|
|
USB_DEVICE(0x0582, 0x0064),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "EDIROL", */
|
|
|
|
/* .product_name = "PCR-1", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0067 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0065),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2010-08-30 22:32:43 +08:00
|
|
|
/* .vendor_name = "EDIROL", */
|
|
|
|
/* .product_name = "PCR-1", */
|
2005-04-17 06:20:36 +08:00
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x006e when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x006d),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "FANTOM-X",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ /*
|
|
|
|
* This quirk is for the "Advanced" modes of the Edirol UA-25.
|
|
|
|
* If the switch is not in an advanced setting, the UA-25 has
|
|
|
|
* ID 0x0582/0x0073 and is standard compliant (no quirks), but
|
|
|
|
* offers only 16-bit PCM at 44.1 kHz and no MIDI.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-25",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2008-10-04 22:27:36 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2008-10-04 22:27:36 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2008-10-08 02:54:18 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x0076 when not in "Advanced Driver" mode */
|
2005-04-17 06:20:36 +08:00
|
|
|
USB_DEVICE(0x0582, 0x0075),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "BOSS",
|
|
|
|
.product_name = "DR-880",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-09-19 18:24:00 +08:00
|
|
|
{
|
2005-09-21 22:33:49 +08:00
|
|
|
/* has ID 0x007b when not in "Advanced Driver" mode */
|
2005-09-19 18:24:00 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-09-19 18:24:00 +08:00
|
|
|
.vendor_name = "Roland",
|
2005-09-21 22:33:49 +08:00
|
|
|
/* "RD" or "RD-700SX"? */
|
2005-09-19 18:24:00 +08:00
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-09-19 18:24:00 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2006-01-18 15:53:32 +08:00
|
|
|
{
|
|
|
|
/* has ID 0x0081 when not in "Advanced Driver" mode */
|
|
|
|
USB_DEVICE(0x0582, 0x0080),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Roland",
|
|
|
|
.product_name = "G-70",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2006-01-18 22:44:53 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
2006-01-18 15:53:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2006-01-16 15:03:52 +08:00
|
|
|
{
|
|
|
|
/* has ID 0x008c when not in "Advanced Driver" mode */
|
|
|
|
USB_DEVICE(0x0582, 0x008b),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "PC-50",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
2008-10-04 22:27:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
|
|
|
|
* is standard compliant, but has only 16-bit PCM and no MIDI.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x0582, 0x00a3),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-4FX",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2008-10-08 02:54:18 +08:00
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
2008-10-04 22:27:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-06-01 16:59:51 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Edirol M-16DX */
|
|
|
|
USB_DEVICE(0x0582, 0x00c4),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2008-05-19 22:21:33 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2008-10-20 22:07:45 +08:00
|
|
|
{
|
|
|
|
/* Advanced modes of the Edirol UA-25EX.
|
|
|
|
* For the standard mode, UA-25EX has ID 0582:00e7, which
|
|
|
|
* offers only 16-bit PCM at 44.1 kHz and no MIDI.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "EDIROL",
|
|
|
|
.product_name = "UA-25EX",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_EDIROL_UAXX
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2012-02-05 03:51:43 +08:00
|
|
|
{
|
|
|
|
/* Edirol UM-3G */
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = 0,
|
2013-06-03 01:49:07 +08:00
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0007,
|
|
|
|
.in_cables = 0x0007
|
|
|
|
}
|
2012-02-05 03:51:43 +08:00
|
|
|
}
|
|
|
|
},
|
2014-08-09 23:19:41 +08:00
|
|
|
{
|
|
|
|
/* BOSS ME-25 */
|
|
|
|
USB_DEVICE(0x0582, 0x0113),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-03-22 04:15:08 +08:00
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
/* only 44.1 kHz works at the moment */
|
|
|
|
USB_DEVICE(0x0582, 0x0120),
|
2010-08-30 22:42:17 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Roland", */
|
2013-06-17 00:27:56 +08:00
|
|
|
/* .product_name = "OCTO-CAPTURE", */
|
2011-11-29 08:41:27 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2013-06-17 00:27:56 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 10,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x05,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
2011-11-29 08:41:27 +08:00
|
|
|
}
|
|
|
|
},
|
2010-08-30 22:45:38 +08:00
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2013-06-17 00:27:56 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 12,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x85,
|
|
|
|
.ep_attr = 0x25,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
2010-08-30 22:45:38 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
2011-05-18 17:28:43 +08:00
|
|
|
},
|
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
2011-05-18 17:28:43 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2011-09-16 14:31:45 +08:00
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
/* only 44.1 kHz works at the moment */
|
|
|
|
USB_DEVICE(0x0582, 0x012f),
|
2011-09-16 14:31:45 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2013-06-17 00:27:56 +08:00
|
|
|
/* .vendor_name = "Roland", */
|
|
|
|
/* .product_name = "QUAD-CAPTURE", */
|
2011-07-22 01:00:57 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2013-06-17 00:27:56 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x05,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
2011-07-22 01:00:57 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2013-06-17 00:27:56 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 6,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x85,
|
|
|
|
.ep_attr = 0x25,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
2011-07-22 01:00:57 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
.ifnum = 3,
|
2011-08-10 12:39:13 +08:00
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
2013-06-17 00:27:56 +08:00
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
2012-06-23 23:30:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2015-03-12 16:41:32 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0159),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Roland", */
|
|
|
|
/* .product_name = "UA-22", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-04-08 15:56:56 +08:00
|
|
|
|
|
|
|
/* UA101 and co are supported by another driver */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x0044), /* UA-1000 high speed */
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_NODEV_INTERFACE
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x007d), /* UA-101 high speed */
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_NODEV_INTERFACE
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0582, 0x008d), /* UA-101 full speed */
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_NODEV_INTERFACE
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-04-01 05:43:12 +08:00
|
|
|
/* this catches most recent vendor-specific Roland devices */
|
2012-06-23 23:30:47 +08:00
|
|
|
{
|
2013-04-01 05:43:12 +08:00
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
|
|
|
|
USB_DEVICE_ID_MATCH_INT_CLASS,
|
|
|
|
.idVendor = 0x0582,
|
|
|
|
.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
2012-06-23 23:30:47 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
2013-04-01 05:43:12 +08:00
|
|
|
.type = QUIRK_AUTODETECT
|
2011-08-10 12:39:13 +08:00
|
|
|
}
|
|
|
|
},
|
2008-05-19 22:21:33 +08:00
|
|
|
|
2005-10-05 19:23:19 +08:00
|
|
|
/* Guillemot devices */
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* This is for the "Windows Edition" where the external MIDI ports are
|
|
|
|
* the only MIDI ports; the control data is reported through HID
|
|
|
|
* interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
|
|
|
|
* compliant USB MIDI ports for external MIDI and controls.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-10-05 19:23:19 +08:00
|
|
|
.vendor_name = "Hercules",
|
|
|
|
.product_name = "DJ Console (WE)",
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-10-05 19:23:19 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/* Midiman/M-Audio devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 2x2",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 1x1",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "Keystation",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 4x4",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x000f,
|
|
|
|
.in_cables = 0x000f
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* For hardware revision 1.05; in the later revisions (1.10 and
|
|
|
|
* 1.21), 0x1031 is the ID for the device without firmware.
|
|
|
|
* Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 8x8",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x01ff,
|
|
|
|
.in_cables = 0x01ff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 8x8",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x01ff,
|
|
|
|
.in_cables = 0x01ff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "MidiSport 2x4",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x000f,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "Quattro",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Interfaces 0-2 are "Windows-compatible", 16-bit only,
|
|
|
|
* and share endpoints with the other interfaces.
|
|
|
|
* Ignore them. The other interfaces can do 24 bits,
|
|
|
|
* but captured samples are big-endian (see usbaudio.c).
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 5,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 6,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 7,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 8,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 9,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "AudioPhile",
|
|
|
|
.ifnum = 6,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "Ozone",
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "M-Audio",
|
|
|
|
.product_name = "OmniStudio",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 5,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 6,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 7,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 8,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 9,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2007-09-17 15:33:17 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0763, 0x2019),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "M-Audio", */
|
|
|
|
/* .product_name = "Ozone Academic", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2012-11-29 06:55:38 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "M-Audio", */
|
|
|
|
/* .product_name = "Fast Track C400", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
/* Playback */
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 6,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x09,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
},
|
2013-01-14 06:02:02 +08:00
|
|
|
.clock = 0x80,
|
2012-11-29 06:55:38 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Capture */
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 3,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
},
|
2013-01-14 06:02:02 +08:00
|
|
|
.clock = 0x80,
|
2012-11-29 06:55:38 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
/* MIDI */
|
|
|
|
{
|
|
|
|
.ifnum = -1 /* Interface = 4 */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-02-10 01:56:35 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "M-Audio", */
|
|
|
|
/* .product_name = "Fast Track C600", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
/* Playback */
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x09,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
},
|
|
|
|
.clock = 0x80,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Capture */
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 6,
|
|
|
|
.iface = 3,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
},
|
|
|
|
.clock = 0x80,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* MIDI */
|
|
|
|
{
|
|
|
|
.ifnum = -1 /* Interface = 4 */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2010-03-25 18:29:14 +08:00
|
|
|
{
|
2011-05-18 17:28:45 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
|
2010-03-25 18:29:14 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "M-Audio", */
|
2010-09-02 18:58:25 +08:00
|
|
|
/* .product_name = "Fast Track Ultra", */
|
2010-03-25 18:29:14 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2011-05-25 15:09:03 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2010-09-02 18:58:25 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x09,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
}
|
|
|
|
}
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2010-09-02 18:58:25 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
}
|
|
|
|
}
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
/* interface 3 (MIDI) is standard compliant */
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2011-05-18 17:28:45 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
|
2010-03-25 18:29:14 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "M-Audio", */
|
|
|
|
/* .product_name = "Fast Track Ultra 8R", */
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2011-05-25 15:09:03 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
2010-09-02 18:58:25 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = 0x09,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
}
|
|
|
|
}
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
2010-09-02 18:58:25 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = & (const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
}
|
|
|
|
}
|
2010-03-25 18:29:14 +08:00
|
|
|
},
|
|
|
|
/* interface 3 (MIDI) is standard compliant */
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-03-09 14:55:55 +08:00
|
|
|
/* Casio devices */
|
2006-03-16 15:15:25 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x07cf, 0x6801),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Casio",
|
|
|
|
.product_name = "PL-40R",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
}
|
|
|
|
},
|
2006-03-09 14:55:55 +08:00
|
|
|
{
|
2006-03-09 15:17:08 +08:00
|
|
|
/* this ID is used by several devices without a product ID */
|
2006-03-09 14:55:55 +08:00
|
|
|
USB_DEVICE(0x07cf, 0x6802),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Casio",
|
2006-03-09 15:17:08 +08:00
|
|
|
.product_name = "Keyboard",
|
2006-03-09 14:55:55 +08:00
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_YAMAHA
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/* Mark of the Unicorn devices */
|
|
|
|
{
|
|
|
|
/* thanks to Robert A. Lerche <ral 'at' msbit.com> */
|
2005-07-04 15:21:45 +08:00
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
|
|
|
|
USB_DEVICE_ID_MATCH_PRODUCT |
|
|
|
|
USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
|
|
|
|
.idVendor = 0x07fd,
|
|
|
|
.idProduct = 0x0001,
|
|
|
|
.bDeviceSubClass = 2,
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "MOTU",
|
|
|
|
.product_name = "Fastlane",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2010-10-23 00:20:48 +08:00
|
|
|
.type = QUIRK_MIDI_RAW_BYTES
|
2005-04-17 06:20:36 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/* Emagic devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x086a, 0x0001),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Emagic",
|
2019-06-10 17:51:46 +08:00
|
|
|
.product_name = "Unitor8",
|
2005-04-17 06:20:36 +08:00
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_EMAGIC,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x80ff,
|
|
|
|
.in_cables = 0x80ff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x086a, 0x0002),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Emagic",
|
|
|
|
/* .product_name = "AMT8", */
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_EMAGIC,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x80ff,
|
|
|
|
.in_cables = 0x80ff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x086a, 0x0003),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Emagic",
|
|
|
|
/* .product_name = "MT4", */
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_MIDI_EMAGIC,
|
2005-11-17 22:08:02 +08:00
|
|
|
.data = & (const struct snd_usb_midi_endpoint_info) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.out_cables = 0x800f,
|
|
|
|
.in_cables = 0x8003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-05-18 17:28:42 +08:00
|
|
|
/* KORG devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "KORG, Inc.",
|
|
|
|
/* .product_name = "PANDORA PX5D", */
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE,
|
2011-12-06 03:27:46 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "KORG, Inc.",
|
|
|
|
/* .product_name = "ToneLab ST", */
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE,
|
2011-05-18 17:28:42 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2021-04-07 22:45:49 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0944, 0x0204),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "KORG, Inc.",
|
|
|
|
/* .product_name = "ToneLab EX", */
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2010-05-21 03:31:10 +08:00
|
|
|
/* AKAI devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x09e8, 0x0062),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "AKAI",
|
|
|
|
.product_name = "MPD16",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_AKAI,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2015-01-08 13:34:16 +08:00
|
|
|
{
|
|
|
|
/* Akai MPC Element */
|
|
|
|
USB_DEVICE(0x09e8, 0x0021),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2015-06-30 23:41:33 +08:00
|
|
|
/* Steinberg devices */
|
|
|
|
{
|
|
|
|
/* Steinberg MI2 */
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x2040),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Steinberg MI4 */
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x4040),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = & (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2005-09-26 14:55:01 +08:00
|
|
|
/* TerraTec devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-09-26 14:55:01 +08:00
|
|
|
.vendor_name = "TerraTec",
|
|
|
|
.product_name = "PHASE 26",
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2006-04-13 16:16:08 +08:00
|
|
|
.vendor_name = "TerraTec",
|
|
|
|
.product_name = "PHASE 26",
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-09-26 14:55:01 +08:00
|
|
|
.vendor_name = "TerraTec",
|
2005-04-17 06:20:36 +08:00
|
|
|
.product_name = "PHASE 26",
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
2006-02-08 19:38:23 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x0ccd, 0x0035),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Miditech",
|
|
|
|
.product_name = "Play'n Roll",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_CME
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/* Novation EMS devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Novation",
|
|
|
|
.product_name = "ReMOTE Audio/XStation",
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_MIDI_NOVATION
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Novation",
|
|
|
|
.product_name = "Speedio",
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_NOVATION
|
|
|
|
}
|
|
|
|
},
|
2015-10-16 19:38:33 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x1235, 0x000a),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Novation", */
|
|
|
|
/* .product_name = "Nocturn", */
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_RAW_BYTES
|
|
|
|
}
|
|
|
|
},
|
2010-10-23 00:20:48 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x1235, 0x000e),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
/* .vendor_name = "Novation", */
|
|
|
|
/* .product_name = "Launchpad", */
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_RAW_BYTES
|
|
|
|
}
|
|
|
|
},
|
2013-03-17 19:07:53 +08:00
|
|
|
{
|
2014-01-14 21:37:56 +08:00
|
|
|
USB_DEVICE(0x1235, 0x0010),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Focusrite",
|
|
|
|
.product_name = "Saffire 6 USB",
|
2013-03-17 19:07:53 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
2020-08-15 08:21:03 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
2013-03-17 19:07:53 +08:00
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
2014-01-14 21:37:56 +08:00
|
|
|
.data = &(const struct audioformat) {
|
2013-03-17 19:07:53 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
2020-08-15 08:21:03 +08:00
|
|
|
.datainterval = 1,
|
|
|
|
.maxpacksize = 0x024c,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 2,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.datainterval = 1,
|
|
|
|
.maxpacksize = 0x0126,
|
2013-03-17 19:07:53 +08:00
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 2,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_MIDI_RAW_BYTES
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2014-01-14 21:37:56 +08:00
|
|
|
USB_DEVICE(0x1235, 0x0018),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.vendor_name = "Novation",
|
2014-01-14 21:37:56 +08:00
|
|
|
.product_name = "Twitch",
|
2013-12-20 16:06:58 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
2014-01-14 21:37:56 +08:00
|
|
|
.data = & (const struct audioformat) {
|
2013-12-20 16:06:58 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 2,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_MIDI_RAW_BYTES
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2014-01-14 21:37:56 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Novation",
|
|
|
|
.product_name = "ReMOTE25",
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_MIDI_NOVATION
|
|
|
|
}
|
|
|
|
},
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2010-02-16 15:55:08 +08:00
|
|
|
/* Access Music devices */
|
|
|
|
{
|
|
|
|
/* VirusTI Desktop */
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_cables = 0x0003,
|
|
|
|
.in_cables = 0x0003
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-02-11 19:08:06 +08:00
|
|
|
/* Native Instruments MK2 series */
|
2011-04-11 23:56:32 +08:00
|
|
|
{
|
2011-05-18 17:28:41 +08:00
|
|
|
/* Komplete Audio 6 */
|
2011-04-11 23:56:32 +08:00
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
|
|
|
|
.idVendor = 0x17cc,
|
|
|
|
.idProduct = 0x1000,
|
|
|
|
},
|
2011-02-11 19:08:06 +08:00
|
|
|
{
|
|
|
|
/* Traktor Audio 6 */
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
|
|
|
|
.idVendor = 0x17cc,
|
|
|
|
.idProduct = 0x1010,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Traktor Audio 10 */
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
|
|
|
|
.idVendor = 0x17cc,
|
|
|
|
.idProduct = 0x1020,
|
|
|
|
},
|
|
|
|
|
2015-11-16 05:38:29 +08:00
|
|
|
/* QinHeng devices */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x1a86, 0x752d),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "QinHeng",
|
|
|
|
.product_name = "CH345",
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_MIDI_CH345
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2011-08-05 03:25:56 +08:00
|
|
|
/* KeithMcMillen Stringport */
|
2020-08-23 19:32:51 +08:00
|
|
|
{ USB_DEVICE(0x1f38, 0x0001) }, /* FIXME: should be more restrictive matching */
|
2011-08-05 03:25:56 +08:00
|
|
|
|
2006-02-08 00:11:06 +08:00
|
|
|
/* Miditech devices */
|
2005-07-25 22:17:29 +08:00
|
|
|
{
|
|
|
|
USB_DEVICE(0x4752, 0x0011),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-07-25 22:17:29 +08:00
|
|
|
.vendor_name = "Miditech",
|
|
|
|
.product_name = "Midistart-2",
|
|
|
|
.ifnum = 0,
|
2006-02-08 00:11:06 +08:00
|
|
|
.type = QUIRK_MIDI_CME
|
2005-07-25 22:17:29 +08:00
|
|
|
}
|
|
|
|
},
|
2006-02-08 00:11:06 +08:00
|
|
|
|
|
|
|
/* Central Music devices */
|
2005-07-25 22:17:29 +08:00
|
|
|
{
|
2006-02-08 00:11:06 +08:00
|
|
|
/* this ID used by both Miditech MidiStudio-2 and CME UF-x */
|
2005-07-25 22:17:29 +08:00
|
|
|
USB_DEVICE(0x7104, 0x2202),
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-07-25 22:17:29 +08:00
|
|
|
.ifnum = 0,
|
2006-02-08 00:11:06 +08:00
|
|
|
.type = QUIRK_MIDI_CME
|
2005-07-25 22:17:29 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2010-02-18 02:12:52 +08:00
|
|
|
/* Digidesign Mbox */
|
|
|
|
{
|
|
|
|
/* Thanks to Clemens Ladisch <clemens@ladisch.de> */
|
|
|
|
USB_DEVICE(0x0dba, 0x1000),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Digidesign",
|
|
|
|
.product_name = "MBox",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]){
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
2014-11-11 22:09:55 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
2010-02-18 02:12:52 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
2010-03-05 02:46:16 +08:00
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
2010-02-18 02:12:52 +08:00
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
2014-11-11 22:09:55 +08:00
|
|
|
.attributes = 0x4,
|
2010-02-18 02:12:52 +08:00
|
|
|
.endpoint = 0x02,
|
2014-11-11 22:09:55 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_SYNC,
|
|
|
|
.maxpacksize = 0x130,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
2010-02-18 02:12:52 +08:00
|
|
|
.rate_max = 48000,
|
2014-11-11 22:09:55 +08:00
|
|
|
.nr_rates = 1,
|
2010-02-18 02:12:52 +08:00
|
|
|
.rate_table = (unsigned int[]) {
|
2014-11-11 22:09:55 +08:00
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0x4,
|
|
|
|
.endpoint = 0x81,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.maxpacksize = 0x130,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
2010-02-18 02:12:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2012-12-19 18:27:22 +08:00
|
|
|
|
|
|
|
/* DIGIDESIGN MBOX 2 */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x0dba, 0x3000),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Digidesign",
|
|
|
|
.product_name = "Mbox 2",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 2,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0x00,
|
|
|
|
.endpoint = 0x03,
|
|
|
|
.ep_attr = USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 4,
|
|
|
|
.altsetting = 2,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x85,
|
|
|
|
.ep_attr = USB_ENDPOINT_SYNC_SYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 5,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 6,
|
2013-01-04 16:51:44 +08:00
|
|
|
.type = QUIRK_MIDI_MIDIMAN,
|
2012-12-19 18:27:22 +08:00
|
|
|
.data = &(const struct snd_usb_midi_endpoint_info) {
|
|
|
|
.out_ep = 0x02,
|
|
|
|
.out_cables = 0x0001,
|
|
|
|
.in_ep = 0x81,
|
|
|
|
.in_interval = 0x01,
|
|
|
|
.in_cables = 0x0001
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2012-09-24 20:25:04 +08:00
|
|
|
{
|
|
|
|
/* Tascam US122 MKII - playback-only support */
|
2020-08-23 19:32:51 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x0644, 0x8021),
|
2012-09-24 20:25:04 +08:00
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "TASCAM",
|
|
|
|
.product_name = "US122 MKII",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x02,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000 |
|
|
|
|
SNDRV_PCM_RATE_88200 |
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 4,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 88200, 96000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2010-02-18 02:12:52 +08:00
|
|
|
|
2021-06-10 16:35:28 +08:00
|
|
|
/* Denon DN-X1600 */
|
|
|
|
{
|
|
|
|
USB_AUDIO_DEVICE(0x154e, 0x500e),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Denon",
|
|
|
|
.product_name = "DN-X1600",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]){
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0x0,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ADAPTIVE,
|
|
|
|
.maxpacksize = 0x138,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0x0,
|
|
|
|
.endpoint = 0x85,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ADAPTIVE,
|
|
|
|
.maxpacksize = 0x138,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2012-09-03 16:12:40 +08:00
|
|
|
/* Microsoft XboxLive Headset/Xbox Communicator */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x045e, 0x0283),
|
|
|
|
.bInterfaceClass = USB_CLASS_PER_INTERFACE,
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "Microsoft",
|
|
|
|
.product_name = "XboxLive Headset/Xbox Communicator",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
/* playback */
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 1,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 0,
|
|
|
|
.altset_idx = 0,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x04,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 22050,
|
|
|
|
.rate_max = 22050
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* capture */
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 1,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 0,
|
|
|
|
.altset_idx = 0,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x85,
|
|
|
|
.ep_attr = 0x05,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 16000,
|
|
|
|
.rate_max = 16000
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2012-10-22 00:29:12 +08:00
|
|
|
/* Reloop Play */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x200c, 0x100b),
|
|
|
|
.bInterfaceClass = USB_CLASS_PER_INTERFACE,
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 1,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100 |
|
|
|
|
SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 2,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2014-12-01 00:45:40 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* ZOOM R16/24 in audio interface mode.
|
ALSA: USB-audio: Add quirk for Zoom R16/24 playback
The Zoom R16/24 have a nonstandard playback format where each isochronous
packet contains a length descriptor in the first four bytes. (Curiously,
capture data does not contain this and requires no quirk.)
The quirk involves adding the extra length descriptor whenever outgoing
isochronous packets are generated, both in pcm.c (outgoing audio) and
endpoint.c (silent data).
In order to make the quirk as unintrusive as possible, for
pcm.c:prepare_playback_urb(), the isochronous packet descriptors are
initially set up in the same way no matter if the quirk is enabled or not.
Once it is time to actually copy the data into the outgoing packet buffer
(together with the added length descriptors) the isochronous descriptors
are adjusted in order take the increased payload length into account.
For endpoint.c:prepare_silent_urb() it makes more sense to modify the
actual function, partly because the function is less complex to start with
and partly because it is not as time-critical as prepare_playback_urb()
(whose bulk is run with interrupts disabled), so the (minute) additional
time spent in the non-quirk case is motivated by the simplicity of having
a single function for all cases.
The quirk is controlled by the new tx_length_quirk member in struct
snd_usb_substream and struct snd_usb_audio, which is conveyed to pcm.c
and endpoint.c from quirks.c in a similar manner to the txfr_quirk member
in the same structs.
In contrast to txfr_quirk however, the quirk is enabled directly in
quirks.c:create_standard_audio_quirk() by checking the USB ID in that
function. Another option would be to introduce a new
QUIRK_AUDIO_ZOOM_INTERFACE or somesuch, which would have made the quirk
very plain to see in the quirk table, but it was felt that the additional
code needed to implement it this way would just make the implementation
more complex with no real gain.
Tested with a Zoom R16, both by doing capture and playback separately
using arecord and aplay (8 channel capture and 2 channel playback,
respectively), as well as capture and playback together using Ardour, as
well as Audacity and Qtractor together with jackd.
The R24 is reportedly compatible with the R16 when used as an audio
interface. Both devices share the same USB ID and have the same number of
inputs (8) and outputs (2). Therefore "R16/24" is mentioned throughout the
patch.
Regression tested using an Edirol UA-5 in both class compliant (16-bit)
and "advanced" (24 bit, forces the use of quirks) modes.
Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Tested-by: Panu Matilainen <pmatilai@laiskiainen.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-10-19 14:52:53 +08:00
|
|
|
* Playback requires an extra four byte LE length indicator
|
|
|
|
* at the start of each isochronous packet. This quirk is
|
|
|
|
* enabled in create_standard_audio_quirk().
|
2014-12-01 00:45:40 +08:00
|
|
|
*/
|
|
|
|
USB_DEVICE(0x1686, 0x00dd),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
/* Playback */
|
|
|
|
.ifnum = 1,
|
ALSA: USB-audio: Add quirk for Zoom R16/24 playback
The Zoom R16/24 have a nonstandard playback format where each isochronous
packet contains a length descriptor in the first four bytes. (Curiously,
capture data does not contain this and requires no quirk.)
The quirk involves adding the extra length descriptor whenever outgoing
isochronous packets are generated, both in pcm.c (outgoing audio) and
endpoint.c (silent data).
In order to make the quirk as unintrusive as possible, for
pcm.c:prepare_playback_urb(), the isochronous packet descriptors are
initially set up in the same way no matter if the quirk is enabled or not.
Once it is time to actually copy the data into the outgoing packet buffer
(together with the added length descriptors) the isochronous descriptors
are adjusted in order take the increased payload length into account.
For endpoint.c:prepare_silent_urb() it makes more sense to modify the
actual function, partly because the function is less complex to start with
and partly because it is not as time-critical as prepare_playback_urb()
(whose bulk is run with interrupts disabled), so the (minute) additional
time spent in the non-quirk case is motivated by the simplicity of having
a single function for all cases.
The quirk is controlled by the new tx_length_quirk member in struct
snd_usb_substream and struct snd_usb_audio, which is conveyed to pcm.c
and endpoint.c from quirks.c in a similar manner to the txfr_quirk member
in the same structs.
In contrast to txfr_quirk however, the quirk is enabled directly in
quirks.c:create_standard_audio_quirk() by checking the USB ID in that
function. Another option would be to introduce a new
QUIRK_AUDIO_ZOOM_INTERFACE or somesuch, which would have made the quirk
very plain to see in the quirk table, but it was felt that the additional
code needed to implement it this way would just make the implementation
more complex with no real gain.
Tested with a Zoom R16, both by doing capture and playback separately
using arecord and aplay (8 channel capture and 2 channel playback,
respectively), as well as capture and playback together using Ardour, as
well as Audacity and Qtractor together with jackd.
The R24 is reportedly compatible with the R16 when used as an audio
interface. Both devices share the same USB ID and have the same number of
inputs (8) and outputs (2). Therefore "R16/24" is mentioned throughout the
patch.
Regression tested using an Edirol UA-5 in both class compliant (16-bit)
and "advanced" (24 bit, forces the use of quirks) modes.
Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Tested-by: Panu Matilainen <pmatilai@laiskiainen.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-10-19 14:52:53 +08:00
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE,
|
2014-12-01 00:45:40 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Capture */
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Midi */
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Some USB MIDI devices don't have an audio control interface,
|
|
|
|
* so we have to grab MIDI streaming interfaces here.
|
|
|
|
*/
|
|
|
|
.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
|
|
|
|
USB_DEVICE_ID_MATCH_INT_SUBCLASS,
|
|
|
|
.bInterfaceClass = USB_CLASS_AUDIO,
|
2010-02-23 06:49:13 +08:00
|
|
|
.bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
|
2005-11-17 22:08:02 +08:00
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
2005-04-17 06:20:36 +08:00
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_MIDI_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-05-16 18:31:12 +08:00
|
|
|
/* Rane SL-1 */
|
|
|
|
{
|
|
|
|
USB_DEVICE(0x13e5, 0x0001),
|
|
|
|
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-06-12 04:34:11 +08:00
|
|
|
/* disabled due to regression for other devices;
|
|
|
|
* see https://bugzilla.kernel.org/show_bug.cgi?id=199905
|
|
|
|
*/
|
|
|
|
#if 0
|
2018-01-15 00:05:53 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Nura's first gen headphones use Cambridge Silicon Radio's vendor
|
|
|
|
* ID, but it looks like the product ID actually is only for Nura.
|
|
|
|
* The capture interface does not work at all (even on Windows),
|
|
|
|
* and only the 48 kHz sample rate works for the playback interface.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x0a12, 0x1243),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
/* Capture */
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_IGNORE_INTERFACE,
|
|
|
|
},
|
|
|
|
/* Playback */
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 2,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_FILL_MAX |
|
|
|
|
UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x03,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-12-26 07:11:52 +08:00
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
},
|
2018-01-15 00:05:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-06-12 04:34:11 +08:00
|
|
|
#endif /* disabled */
|
2018-01-15 00:05:53 +08:00
|
|
|
|
2018-02-23 20:06:52 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Bower's & Wilkins PX headphones only support the 48 kHz sample rate
|
|
|
|
* even though it advertises more. The capture interface doesn't work
|
|
|
|
* even on windows.
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x19b5, 0x0021),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
/* Playback */
|
|
|
|
{
|
2018-10-04 22:42:05 +08:00
|
|
|
.ifnum = 1,
|
2018-02-23 20:06:52 +08:00
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 2,
|
2018-10-04 22:42:05 +08:00
|
|
|
.iface = 1,
|
2018-02-23 20:06:52 +08:00
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = UAC_EP_CS_ATTR_FILL_MAX |
|
|
|
|
UAC_EP_CS_ATTR_SAMPLE_RATE,
|
|
|
|
.endpoint = 0x03,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-12-26 07:11:52 +08:00
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
},
|
2018-02-23 20:06:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-03-01 03:34:04 +08:00
|
|
|
/* MOTU Microbook II */
|
|
|
|
{
|
2020-02-29 23:18:15 +08:00
|
|
|
USB_DEVICE_VENDOR_SPEC(0x07fd, 0x0004),
|
2019-03-01 03:34:04 +08:00
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "MOTU",
|
|
|
|
.product_name = "MicroBookII",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
|
|
|
.channels = 6,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x84,
|
|
|
|
.rates = SNDRV_PCM_RATE_96000,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rate_min = 96000,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.maxpacksize = 0x00d8,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
96000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3BE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x03,
|
|
|
|
.rates = SNDRV_PCM_RATE_96000,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rate_min = 96000,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.maxpacksize = 0x0120,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
96000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-08-02 19:52:15 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* PIONEER DJ DDJ-SX3
|
|
|
|
* PCM is 12 channels out, 10 channels in @ 44.1 fixed
|
|
|
|
* interface 0, vendor class alt setting 1 for endpoints 5 and 0x86
|
|
|
|
* The feedback for the output is the input.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0023),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 12,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x05,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S32_LE,
|
|
|
|
.channels = 10,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x86,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2019-08-02 19:52:15 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-04-01 17:59:07 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-250MK2
|
2020-08-25 23:31:13 +08:00
|
|
|
* PCM is 8 channels out @ 48 fixed (endpoint 0x01)
|
|
|
|
* and 8 channels in @ 48 fixed (endpoint 0x82).
|
2020-04-01 17:59:07 +08:00
|
|
|
*
|
2020-08-25 23:31:13 +08:00
|
|
|
* Both playback and recording is working, even simultaneously.
|
|
|
|
*
|
|
|
|
* Playback channels could be mapped to:
|
|
|
|
* - CH1
|
|
|
|
* - CH2
|
|
|
|
* - AUX
|
|
|
|
*
|
|
|
|
* Recording channels could be mapped to:
|
|
|
|
* - Post CH1 Fader
|
|
|
|
* - Post CH2 Fader
|
|
|
|
* - Cross Fader A
|
|
|
|
* - Cross Fader B
|
|
|
|
* - MIC
|
|
|
|
* - AUX
|
|
|
|
* - REC OUT
|
|
|
|
*
|
|
|
|
* There is remaining problem with recording directly from PHONO/LINE.
|
|
|
|
* If we map a channel to:
|
|
|
|
* - CH1 Control Tone PHONO
|
|
|
|
* - CH1 Control Tone LINE
|
|
|
|
* - CH2 Control Tone PHONO
|
|
|
|
* - CH2 Control Tone LINE
|
|
|
|
* it is silent.
|
|
|
|
* There is no signal even on other operating systems with official drivers.
|
|
|
|
* The signal appears only when a supported application is started.
|
|
|
|
* This needs to be investigated yet...
|
|
|
|
* (there is quite a lot communication on the USB in both directions)
|
|
|
|
*
|
|
|
|
* In current version this mixer could be used for playback
|
|
|
|
* and for recording from vinyls (through Post CH* Fader)
|
|
|
|
* but not for DVS (Digital Vinyl Systems) like in Mixxx.
|
2020-04-01 17:59:07 +08:00
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0017),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8, // outputs
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 }
|
2020-08-25 23:31:13 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8, // inputs
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2020-08-25 23:31:13 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 }
|
2020-04-01 17:59:07 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-08-10 16:25:02 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* PIONEER DJ DDJ-RB
|
|
|
|
* PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
|
|
|
|
* The feedback for the output is the dummy input.
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2020-08-10 16:25:02 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
2020-11-28 16:40:35 +08:00
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* PIONEER DJ DDJ-RR
|
|
|
|
* PCM is 6 channels out & 4 channels in @ 44.1 fixed
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000d),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 6, //Master, Headphones & Booth
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4, //2x RCA inputs (CH1 & CH2)
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2020-11-28 16:40:35 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
2020-11-30 16:37:14 +08:00
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* PIONEER DJ DDJ-SR2
|
|
|
|
* PCM is 4 channels out, 6 channels in @ 44.1 fixed
|
|
|
|
* The Feedback for the output is the input
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x001e),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 4,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 6,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2020-11-30 16:37:14 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 44100,
|
2020-08-10 16:25:02 +08:00
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 44100 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2018-02-23 20:06:52 +08:00
|
|
|
|
2020-06-01 18:22:24 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-900NXS2
|
|
|
|
* 10 channels playback & 12 channels capture @ 44.1/48/96kHz S24LE
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000a),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 10,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 96000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 12,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
2021-01-08 15:52:18 +08:00
|
|
|
.ep_idx = 1,
|
2020-06-01 18:22:24 +08:00
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
44100, 48000, 96000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
ALSA: usb-audio: Quirks for Gigabyte TRX40 Aorus Master onboard audio
Gigabyte TRX40 Aorus Master is equipped with two USB-audio devices,
a Realtek ALC1220-VB codec (USB ID 0414:a001) and an ESS SABRE9218 DAC
(USB ID 0414:a000). The latter serves solely for the headphone output
on the front panel while the former serves for the rest I/Os (mostly
for the I/Os in the rear panel but also including the front mic).
Both chips do work more or less with the unmodified USB-audio driver,
but there are a few glitches. The ALC1220-VB returns an error for an
inquiry to some jacks, as already seen on other TRX40-based mobos.
However this machine has a slightly incompatible configuration, hence
the existing mapping cannot be used as is.
Meanwhile the ESS chip seems working without any quirk. But since
both audio devices don't provide any specific names, both cards appear
as "USB-Audio", and it's quite confusing for users.
This patch is an attempt to overcome those issues:
- The specific mapping table for ALC1220-VB is provided, reducing the
non-working nodes and renaming the badly chosen controls.
The connector map isn't needed here unlike other TRX40 quirks.
- For both USB IDs (0414:a000 and 0414:a001), provide specific card
name strings, so that user-space can identify more easily; and more
importantly, UCM profile can be applied to each.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200526082810.29506-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-05-26 16:28:10 +08:00
|
|
|
|
2020-07-02 15:14:33 +08:00
|
|
|
/*
|
|
|
|
* MacroSilicon MS2109 based HDMI capture cards
|
|
|
|
*
|
|
|
|
* These claim 96kHz 1ch in the descriptors, but are actually 48kHz 2ch.
|
2021-07-29 15:38:49 +08:00
|
|
|
* They also need QUIRK_FLAG_ALIGN_TRANSFER, which makes one wonder if
|
2020-07-02 15:14:33 +08:00
|
|
|
* they pretend to be 96kHz mono as a workaround for stereo being broken
|
|
|
|
* by that...
|
|
|
|
*
|
2020-08-16 16:44:31 +08:00
|
|
|
* They also have an issue with initial stream alignment that causes the
|
|
|
|
* channels to be swapped and out of phase, which is dealt with in quirks.c.
|
2020-07-02 15:14:33 +08:00
|
|
|
*/
|
|
|
|
{
|
2020-08-17 16:21:39 +08:00
|
|
|
USB_AUDIO_DEVICE(0x534d, 0x2109),
|
2020-07-02 15:14:33 +08:00
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.vendor_name = "MacroSilicon",
|
|
|
|
.product_name = "MS2109",
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 2,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_MIXER,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
.channels = 2,
|
|
|
|
.iface = 3,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.attributes = 0,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC |
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_CONTINUOUS,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-01-18 21:06:21 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-750
|
|
|
|
* 8 channels playback & 8 channels capture @ 44.1/48/96kHz S24LE
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x08e4, 0x017f),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x05,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) { 44100, 48000, 96000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x86,
|
|
|
|
.ep_idx = 1,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) { 44100, 48000, 96000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-10-10 22:58:41 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-750MK2
|
|
|
|
* 10 channels playback & 12 channels capture @ 48kHz S24LE
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x001b),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 10,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) {
|
|
|
|
48000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 12,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_idx = 1,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-03-01 23:27:26 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-850
|
|
|
|
* 8 channels playback and 8 channels capture @ 44.1/48/96kHz S24LE
|
|
|
|
* Playback on EP 0x05
|
|
|
|
* Capture on EP 0x86
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x08e4, 0x0163),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x05,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_DATA,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) { 44100, 48000, 96000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8,
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x86,
|
|
|
|
.ep_idx = 1,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_DATA,
|
|
|
|
.rates = SNDRV_PCM_RATE_44100|
|
|
|
|
SNDRV_PCM_RATE_48000|
|
|
|
|
SNDRV_PCM_RATE_96000,
|
|
|
|
.rate_min = 44100,
|
|
|
|
.rate_max = 96000,
|
|
|
|
.nr_rates = 3,
|
|
|
|
.rate_table = (unsigned int[]) { 44100, 48000, 96000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-02-02 21:42:28 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Pioneer DJ DJM-450
|
|
|
|
* PCM is 8 channels out @ 48 fixed (endpoint 0x01)
|
|
|
|
* and 8 channels in @ 48 fixed (endpoint 0x82).
|
|
|
|
*/
|
|
|
|
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0013),
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = (const struct snd_usb_audio_quirk[]) {
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8, // outputs
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x01,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = 0,
|
|
|
|
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
|
|
|
.data = &(const struct audioformat) {
|
|
|
|
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
|
|
|
.channels = 8, // inputs
|
|
|
|
.iface = 0,
|
|
|
|
.altsetting = 1,
|
|
|
|
.altset_idx = 1,
|
|
|
|
.endpoint = 0x82,
|
|
|
|
.ep_idx = 1,
|
|
|
|
.ep_attr = USB_ENDPOINT_XFER_ISOC|
|
|
|
|
USB_ENDPOINT_SYNC_ASYNC|
|
|
|
|
USB_ENDPOINT_USAGE_IMPLICIT_FB,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
.rate_min = 48000,
|
|
|
|
.rate_max = 48000,
|
|
|
|
.nr_rates = 1,
|
|
|
|
.rate_table = (unsigned int[]) { 48000 }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-10-15 10:53:35 +08:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Sennheiser GSP670
|
|
|
|
* Change order of interfaces loaded
|
|
|
|
*/
|
|
|
|
USB_DEVICE(0x1395, 0x0300),
|
|
|
|
.bInterfaceClass = USB_CLASS_PER_INTERFACE,
|
|
|
|
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
|
|
|
|
.ifnum = QUIRK_ANY_INTERFACE,
|
|
|
|
.type = QUIRK_COMPOSITE,
|
|
|
|
.data = &(const struct snd_usb_audio_quirk[]) {
|
|
|
|
// Communication
|
|
|
|
{
|
|
|
|
.ifnum = 3,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
// Recording
|
|
|
|
{
|
|
|
|
.ifnum = 4,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
// Main
|
|
|
|
{
|
|
|
|
.ifnum = 1,
|
|
|
|
.type = QUIRK_AUDIO_STANDARD_INTERFACE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.ifnum = -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-07-02 15:14:33 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#undef USB_DEVICE_VENDOR_SPEC
|
2020-08-17 16:21:39 +08:00
|
|
|
#undef USB_AUDIO_DEVICE
|