usbquirks.h
来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 996 行 · 第 1/2 页
H
996 行
/* * ALSA USB Audio Driver * * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>, * Clemens Ladisch <clemens@ladisch.de> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* * 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/* * Yamaha devices */#define YAMAHA_DEVICE(id, name) { \ USB_DEVICE(0x0499, id), \ .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \ .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), \ .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \ .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(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"),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(0x101e, "PSR-K1"),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),YAMAHA_DEVICE(0x2000, "DGP-7"),YAMAHA_DEVICE(0x2001, "DGP-5"),YAMAHA_DEVICE(0x2002, NULL),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(0x500a, "PM5D"),YAMAHA_DEVICE(0x500b, "DME64N"),YAMAHA_DEVICE(0x500c, "DME24N"),YAMAHA_DEVICE(0x7000, "DTX"),YAMAHA_DEVICE(0x7010, "UB99"),#undef YAMAHA_DEVICE#undef YAMAHA_INTERFACE/* * Roland/RolandED/Edirol/BOSS devices */{ USB_DEVICE(0x0582, 0x0000), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "UA-100", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = (const snd_usb_audio_quirk_t[]) { { .ifnum = 0, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = & (const struct audioformat) { .format = SNDRV_PCM_FORMAT_S16_LE, .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) { .format = SNDRV_PCM_FORMAT_S16_LE, .channels = 2, .iface = 1, .altsetting = 1, .altset_idx = 1, .attributes = EP_CS_ATTR_FILL_MAX, .endpoint = 0x81, .ep_attr = 0x05, .rates = SNDRV_PCM_RATE_CONTINUOUS, .rate_min = 44100, .rate_max = 44100, } }, { .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0007, .in_cables = 0x0007 } }, { .ifnum = -1 } } }},{ USB_DEVICE(0x0582, 0x0002), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UM-4", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x000f, .in_cables = 0x000f } }},{ USB_DEVICE(0x0582, 0x0003), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "SC-8850", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x003f, .in_cables = 0x003f } }},{ USB_DEVICE(0x0582, 0x0004), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "U-8", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0005, .in_cables = 0x0005 } }},{ USB_DEVICE(0x0582, 0x0005), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UM-2", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0003, .in_cables = 0x0003 } }},{ USB_DEVICE(0x0582, 0x0007), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "SC-8820", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0013, .in_cables = 0x0013 } }},{ USB_DEVICE(0x0582, 0x0008), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "PC-300", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0001, .in_cables = 0x0001 } }},{ USB_DEVICE(0x0582, 0x0009), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UM-1", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0001, .in_cables = 0x0001 } }},{ USB_DEVICE(0x0582, 0x000b), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "SK-500", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0013, .in_cables = 0x0013 } }},{ /* thanks to Emiliano Grilli <emillo@libero.it> * for helping researching this data */ USB_DEVICE(0x0582, 0x000c), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "SC-D70", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = (const snd_usb_audio_quirk_t[]) { { .ifnum = 0, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = & (const struct audioformat) { .format = SNDRV_PCM_FORMAT_S24_3LE, .channels = 2, .iface = 0, .altsetting = 1, .altset_idx = 1, .attributes = 0, .endpoint = 0x01, .ep_attr = 0x01, .rates = SNDRV_PCM_RATE_CONTINUOUS, .rate_min = 44100, .rate_max = 44100, } }, { .ifnum = 1, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = & (const struct audioformat) { .format = SNDRV_PCM_FORMAT_S24_3LE, .channels = 2, .iface = 1, .altsetting = 1, .altset_idx = 1, .attributes = 0, .endpoint = 0x81, .ep_attr = 0x01, .rates = SNDRV_PCM_RATE_CONTINUOUS, .rate_min = 44100, .rate_max = 44100, } }, { .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .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), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UA-5", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = (const snd_usb_audio_quirk_t[]) { { .ifnum = 1, .type = QUIRK_AUDIO_STANDARD_INTERFACE }, { .ifnum = 2, .type = QUIRK_AUDIO_STANDARD_INTERFACE }, { .ifnum = -1 } } }},{ USB_DEVICE(0x0582, 0x0012), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "XV-5050", .ifnum = 0, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0001, .in_cables = 0x0001 } }},{ USB_DEVICE(0x0582, 0x0014), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UM-880", .ifnum = 0, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x01ff, .in_cables = 0x01ff } }},{ USB_DEVICE(0x0582, 0x0016), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "SD-90", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x000f, .in_cables = 0x000f } }},{ USB_DEVICE(0x0582, 0x001b), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "MMP-2", .ifnum = 2, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0001, .in_cables = 0x0001 } }},{ USB_DEVICE(0x0582, 0x001d), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "Roland", .product_name = "V-SYNTH", .ifnum = 0, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .out_cables = 0x0001, .in_cables = 0x0001 } }},{ USB_DEVICE(0x0582, 0x0023), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UM-550", .ifnum = 0, .type = QUIRK_MIDI_FIXED_ENDPOINT, .data = & (const snd_usb_midi_endpoint_info_t) { .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), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { .vendor_name = "EDIROL", .product_name = "UA-20", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = (const snd_usb_audio_quirk_t[]) { { .ifnum = 1, .type = QUIRK_AUDIO_STANDARD_INTERFACE }, { .ifnum = 2, .type = QUIRK_AUDIO_STANDARD_INTERFACE }, { .ifnum = 3, .type = QUIRK_MIDI_STANDARD_INTERFACE }, { .ifnum = -1 } } }},{ USB_DEVICE(0x0582, 0x0027), .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?