quirks-table.h 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430
  1. /*
  2. * ALSA USB Audio Driver
  3. *
  4. * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
  5. * Clemens Ladisch <clemens@ladisch.de>
  6. *
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. /*
  23. * The contents of this file are part of the driver's id_table.
  24. *
  25. * In a perfect world, this file would be empty.
  26. */
  27. /*
  28. * Use this for devices where other interfaces are standard compliant,
  29. * to prevent the quirk being applied to those interfaces. (To work with
  30. * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
  31. */
  32. #define USB_DEVICE_VENDOR_SPEC(vend, prod) \
  33. .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
  34. USB_DEVICE_ID_MATCH_PRODUCT | \
  35. USB_DEVICE_ID_MATCH_INT_CLASS, \
  36. .idVendor = vend, \
  37. .idProduct = prod, \
  38. .bInterfaceClass = USB_CLASS_VENDOR_SPEC
  39. /* Creative/Toshiba Multimedia Center SB-0500 */
  40. {
  41. USB_DEVICE(0x041e, 0x3048),
  42. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  43. .vendor_name = "Toshiba",
  44. .product_name = "SB-0500",
  45. .ifnum = QUIRK_NO_INTERFACE
  46. }
  47. },
  48. /* Creative/E-Mu devices */
  49. {
  50. USB_DEVICE(0x041e, 0x3010),
  51. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  52. .vendor_name = "Creative Labs",
  53. .product_name = "Sound Blaster MP3+",
  54. .ifnum = QUIRK_NO_INTERFACE
  55. }
  56. },
  57. {
  58. /* E-Mu 0202 USB */
  59. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  60. .idVendor = 0x041e,
  61. .idProduct = 0x3f02,
  62. .bInterfaceClass = USB_CLASS_AUDIO,
  63. },
  64. {
  65. /* E-Mu 0404 USB */
  66. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  67. .idVendor = 0x041e,
  68. .idProduct = 0x3f04,
  69. .bInterfaceClass = USB_CLASS_AUDIO,
  70. },
  71. {
  72. /* E-Mu Tracker Pre */
  73. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  74. .idVendor = 0x041e,
  75. .idProduct = 0x3f0a,
  76. .bInterfaceClass = USB_CLASS_AUDIO,
  77. },
  78. /*
  79. * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  80. * class matches do not take effect without an explicit ID match.
  81. */
  82. {
  83. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  84. USB_DEVICE_ID_MATCH_INT_CLASS |
  85. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  86. .idVendor = 0x046d,
  87. .idProduct = 0x0850,
  88. .bInterfaceClass = USB_CLASS_AUDIO,
  89. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  90. },
  91. {
  92. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  93. USB_DEVICE_ID_MATCH_INT_CLASS |
  94. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  95. .idVendor = 0x046d,
  96. .idProduct = 0x08ae,
  97. .bInterfaceClass = USB_CLASS_AUDIO,
  98. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  99. },
  100. {
  101. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  102. USB_DEVICE_ID_MATCH_INT_CLASS |
  103. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  104. .idVendor = 0x046d,
  105. .idProduct = 0x08c6,
  106. .bInterfaceClass = USB_CLASS_AUDIO,
  107. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  108. },
  109. {
  110. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  111. USB_DEVICE_ID_MATCH_INT_CLASS |
  112. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  113. .idVendor = 0x046d,
  114. .idProduct = 0x08f0,
  115. .bInterfaceClass = USB_CLASS_AUDIO,
  116. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  117. },
  118. {
  119. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  120. USB_DEVICE_ID_MATCH_INT_CLASS |
  121. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  122. .idVendor = 0x046d,
  123. .idProduct = 0x08f5,
  124. .bInterfaceClass = USB_CLASS_AUDIO,
  125. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  126. },
  127. {
  128. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  129. USB_DEVICE_ID_MATCH_INT_CLASS |
  130. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  131. .idVendor = 0x046d,
  132. .idProduct = 0x08f6,
  133. .bInterfaceClass = USB_CLASS_AUDIO,
  134. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  135. },
  136. {
  137. USB_DEVICE(0x046d, 0x0990),
  138. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  139. .vendor_name = "Logitech, Inc.",
  140. .product_name = "QuickCam Pro 9000",
  141. .ifnum = QUIRK_NO_INTERFACE
  142. }
  143. },
  144. /*
  145. * Yamaha devices
  146. */
  147. #define YAMAHA_DEVICE(id, name) { \
  148. USB_DEVICE(0x0499, id), \
  149. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  150. .vendor_name = "Yamaha", \
  151. .product_name = name, \
  152. .ifnum = QUIRK_ANY_INTERFACE, \
  153. .type = QUIRK_MIDI_YAMAHA \
  154. } \
  155. }
  156. #define YAMAHA_INTERFACE(id, intf, name) { \
  157. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  158. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  159. .vendor_name = "Yamaha", \
  160. .product_name = name, \
  161. .ifnum = intf, \
  162. .type = QUIRK_MIDI_YAMAHA \
  163. } \
  164. }
  165. YAMAHA_DEVICE(0x1000, "UX256"),
  166. YAMAHA_DEVICE(0x1001, "MU1000"),
  167. YAMAHA_DEVICE(0x1002, "MU2000"),
  168. YAMAHA_DEVICE(0x1003, "MU500"),
  169. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  170. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  171. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  172. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  173. YAMAHA_DEVICE(0x1008, "UX96"),
  174. YAMAHA_DEVICE(0x1009, "UX16"),
  175. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  176. YAMAHA_DEVICE(0x100c, "UC-MX"),
  177. YAMAHA_DEVICE(0x100d, "UC-KX"),
  178. YAMAHA_DEVICE(0x100e, "S08"),
  179. YAMAHA_DEVICE(0x100f, "CLP-150"),
  180. YAMAHA_DEVICE(0x1010, "CLP-170"),
  181. YAMAHA_DEVICE(0x1011, "P-250"),
  182. YAMAHA_DEVICE(0x1012, "TYROS"),
  183. YAMAHA_DEVICE(0x1013, "PF-500"),
  184. YAMAHA_DEVICE(0x1014, "S90"),
  185. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  186. YAMAHA_DEVICE(0x1016, "MDP-5"),
  187. YAMAHA_DEVICE(0x1017, "CVP-204"),
  188. YAMAHA_DEVICE(0x1018, "CVP-206"),
  189. YAMAHA_DEVICE(0x1019, "CVP-208"),
  190. YAMAHA_DEVICE(0x101a, "CVP-210"),
  191. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  192. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  193. YAMAHA_DEVICE(0x101d, "CLP-175"),
  194. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  195. YAMAHA_DEVICE(0x101f, "EZ-J24"),
  196. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  197. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  198. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  199. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  200. YAMAHA_DEVICE(0x1024, "CVP-301"),
  201. YAMAHA_DEVICE(0x1025, "CVP-303"),
  202. YAMAHA_DEVICE(0x1026, "CVP-305"),
  203. YAMAHA_DEVICE(0x1027, "CVP-307"),
  204. YAMAHA_DEVICE(0x1028, "CVP-309"),
  205. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  206. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  207. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  208. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  209. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  210. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  211. YAMAHA_DEVICE(0x1032, "DGX-305"),
  212. YAMAHA_DEVICE(0x1033, "DGX-505"),
  213. YAMAHA_DEVICE(0x1034, NULL),
  214. YAMAHA_DEVICE(0x1035, NULL),
  215. YAMAHA_DEVICE(0x1036, NULL),
  216. YAMAHA_DEVICE(0x1037, NULL),
  217. YAMAHA_DEVICE(0x1038, NULL),
  218. YAMAHA_DEVICE(0x1039, NULL),
  219. YAMAHA_DEVICE(0x103a, NULL),
  220. YAMAHA_DEVICE(0x103b, NULL),
  221. YAMAHA_DEVICE(0x103c, NULL),
  222. YAMAHA_DEVICE(0x103d, NULL),
  223. YAMAHA_DEVICE(0x103e, NULL),
  224. YAMAHA_DEVICE(0x103f, NULL),
  225. YAMAHA_DEVICE(0x1040, NULL),
  226. YAMAHA_DEVICE(0x1041, NULL),
  227. YAMAHA_DEVICE(0x1042, NULL),
  228. YAMAHA_DEVICE(0x1043, NULL),
  229. YAMAHA_DEVICE(0x1044, NULL),
  230. YAMAHA_DEVICE(0x1045, NULL),
  231. YAMAHA_INTERFACE(0x104e, 0, NULL),
  232. YAMAHA_DEVICE(0x104f, NULL),
  233. YAMAHA_DEVICE(0x1050, NULL),
  234. YAMAHA_DEVICE(0x1051, NULL),
  235. YAMAHA_DEVICE(0x1052, NULL),
  236. YAMAHA_DEVICE(0x2000, "DGP-7"),
  237. YAMAHA_DEVICE(0x2001, "DGP-5"),
  238. YAMAHA_DEVICE(0x2002, NULL),
  239. YAMAHA_DEVICE(0x5000, "CS1D"),
  240. YAMAHA_DEVICE(0x5001, "DSP1D"),
  241. YAMAHA_DEVICE(0x5002, "DME32"),
  242. YAMAHA_DEVICE(0x5003, "DM2000"),
  243. YAMAHA_DEVICE(0x5004, "02R96"),
  244. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  245. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  246. YAMAHA_DEVICE(0x5007, "DM1000"),
  247. YAMAHA_DEVICE(0x5008, "01V96"),
  248. YAMAHA_DEVICE(0x5009, "SPX2000"),
  249. YAMAHA_DEVICE(0x500a, "PM5D"),
  250. YAMAHA_DEVICE(0x500b, "DME64N"),
  251. YAMAHA_DEVICE(0x500c, "DME24N"),
  252. YAMAHA_DEVICE(0x500d, NULL),
  253. YAMAHA_DEVICE(0x500e, NULL),
  254. YAMAHA_DEVICE(0x500f, NULL),
  255. YAMAHA_DEVICE(0x7000, "DTX"),
  256. YAMAHA_DEVICE(0x7010, "UB99"),
  257. #undef YAMAHA_DEVICE
  258. #undef YAMAHA_INTERFACE
  259. /*
  260. * Roland/RolandED/Edirol/BOSS devices
  261. */
  262. {
  263. USB_DEVICE(0x0582, 0x0000),
  264. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  265. .vendor_name = "Roland",
  266. .product_name = "UA-100",
  267. .ifnum = QUIRK_ANY_INTERFACE,
  268. .type = QUIRK_COMPOSITE,
  269. .data = (const struct snd_usb_audio_quirk[]) {
  270. {
  271. .ifnum = 0,
  272. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  273. .data = & (const struct audioformat) {
  274. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  275. .channels = 4,
  276. .iface = 0,
  277. .altsetting = 1,
  278. .altset_idx = 1,
  279. .attributes = 0,
  280. .endpoint = 0x01,
  281. .ep_attr = 0x09,
  282. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  283. .rate_min = 44100,
  284. .rate_max = 44100,
  285. }
  286. },
  287. {
  288. .ifnum = 1,
  289. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  290. .data = & (const struct audioformat) {
  291. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  292. .channels = 2,
  293. .iface = 1,
  294. .altsetting = 1,
  295. .altset_idx = 1,
  296. .attributes = UAC_EP_CS_ATTR_FILL_MAX,
  297. .endpoint = 0x81,
  298. .ep_attr = 0x05,
  299. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  300. .rate_min = 44100,
  301. .rate_max = 44100,
  302. }
  303. },
  304. {
  305. .ifnum = 2,
  306. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  307. .data = & (const struct snd_usb_midi_endpoint_info) {
  308. .out_cables = 0x0007,
  309. .in_cables = 0x0007
  310. }
  311. },
  312. {
  313. .ifnum = -1
  314. }
  315. }
  316. }
  317. },
  318. {
  319. USB_DEVICE(0x0582, 0x0002),
  320. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  321. .vendor_name = "EDIROL",
  322. .product_name = "UM-4",
  323. .ifnum = QUIRK_ANY_INTERFACE,
  324. .type = QUIRK_COMPOSITE,
  325. .data = (const struct snd_usb_audio_quirk[]) {
  326. {
  327. .ifnum = 0,
  328. .type = QUIRK_IGNORE_INTERFACE
  329. },
  330. {
  331. .ifnum = 1,
  332. .type = QUIRK_IGNORE_INTERFACE
  333. },
  334. {
  335. .ifnum = 2,
  336. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  337. .data = & (const struct snd_usb_midi_endpoint_info) {
  338. .out_cables = 0x000f,
  339. .in_cables = 0x000f
  340. }
  341. },
  342. {
  343. .ifnum = -1
  344. }
  345. }
  346. }
  347. },
  348. {
  349. USB_DEVICE(0x0582, 0x0003),
  350. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  351. .vendor_name = "Roland",
  352. .product_name = "SC-8850",
  353. .ifnum = QUIRK_ANY_INTERFACE,
  354. .type = QUIRK_COMPOSITE,
  355. .data = (const struct snd_usb_audio_quirk[]) {
  356. {
  357. .ifnum = 0,
  358. .type = QUIRK_IGNORE_INTERFACE
  359. },
  360. {
  361. .ifnum = 1,
  362. .type = QUIRK_IGNORE_INTERFACE
  363. },
  364. {
  365. .ifnum = 2,
  366. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  367. .data = & (const struct snd_usb_midi_endpoint_info) {
  368. .out_cables = 0x003f,
  369. .in_cables = 0x003f
  370. }
  371. },
  372. {
  373. .ifnum = -1
  374. }
  375. }
  376. }
  377. },
  378. {
  379. USB_DEVICE(0x0582, 0x0004),
  380. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  381. .vendor_name = "Roland",
  382. .product_name = "U-8",
  383. .ifnum = QUIRK_ANY_INTERFACE,
  384. .type = QUIRK_COMPOSITE,
  385. .data = (const struct snd_usb_audio_quirk[]) {
  386. {
  387. .ifnum = 0,
  388. .type = QUIRK_IGNORE_INTERFACE
  389. },
  390. {
  391. .ifnum = 1,
  392. .type = QUIRK_IGNORE_INTERFACE
  393. },
  394. {
  395. .ifnum = 2,
  396. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  397. .data = & (const struct snd_usb_midi_endpoint_info) {
  398. .out_cables = 0x0005,
  399. .in_cables = 0x0005
  400. }
  401. },
  402. {
  403. .ifnum = -1
  404. }
  405. }
  406. }
  407. },
  408. {
  409. /* Has ID 0x0099 when not in "Advanced Driver" mode.
  410. * The UM-2EX has only one input, but we cannot detect this. */
  411. USB_DEVICE(0x0582, 0x0005),
  412. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  413. .vendor_name = "EDIROL",
  414. .product_name = "UM-2",
  415. .ifnum = QUIRK_ANY_INTERFACE,
  416. .type = QUIRK_COMPOSITE,
  417. .data = (const struct snd_usb_audio_quirk[]) {
  418. {
  419. .ifnum = 0,
  420. .type = QUIRK_IGNORE_INTERFACE
  421. },
  422. {
  423. .ifnum = 1,
  424. .type = QUIRK_IGNORE_INTERFACE
  425. },
  426. {
  427. .ifnum = 2,
  428. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  429. .data = & (const struct snd_usb_midi_endpoint_info) {
  430. .out_cables = 0x0003,
  431. .in_cables = 0x0003
  432. }
  433. },
  434. {
  435. .ifnum = -1
  436. }
  437. }
  438. }
  439. },
  440. {
  441. USB_DEVICE(0x0582, 0x0007),
  442. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  443. .vendor_name = "Roland",
  444. .product_name = "SC-8820",
  445. .ifnum = QUIRK_ANY_INTERFACE,
  446. .type = QUIRK_COMPOSITE,
  447. .data = (const struct snd_usb_audio_quirk[]) {
  448. {
  449. .ifnum = 0,
  450. .type = QUIRK_IGNORE_INTERFACE
  451. },
  452. {
  453. .ifnum = 1,
  454. .type = QUIRK_IGNORE_INTERFACE
  455. },
  456. {
  457. .ifnum = 2,
  458. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  459. .data = & (const struct snd_usb_midi_endpoint_info) {
  460. .out_cables = 0x0013,
  461. .in_cables = 0x0013
  462. }
  463. },
  464. {
  465. .ifnum = -1
  466. }
  467. }
  468. }
  469. },
  470. {
  471. USB_DEVICE(0x0582, 0x0008),
  472. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  473. .vendor_name = "Roland",
  474. .product_name = "PC-300",
  475. .ifnum = QUIRK_ANY_INTERFACE,
  476. .type = QUIRK_COMPOSITE,
  477. .data = (const struct snd_usb_audio_quirk[]) {
  478. {
  479. .ifnum = 0,
  480. .type = QUIRK_IGNORE_INTERFACE
  481. },
  482. {
  483. .ifnum = 1,
  484. .type = QUIRK_IGNORE_INTERFACE
  485. },
  486. {
  487. .ifnum = 2,
  488. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  489. .data = & (const struct snd_usb_midi_endpoint_info) {
  490. .out_cables = 0x0001,
  491. .in_cables = 0x0001
  492. }
  493. },
  494. {
  495. .ifnum = -1
  496. }
  497. }
  498. }
  499. },
  500. {
  501. /* has ID 0x009d when not in "Advanced Driver" mode */
  502. USB_DEVICE(0x0582, 0x0009),
  503. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  504. .vendor_name = "EDIROL",
  505. .product_name = "UM-1",
  506. .ifnum = QUIRK_ANY_INTERFACE,
  507. .type = QUIRK_COMPOSITE,
  508. .data = (const struct snd_usb_audio_quirk[]) {
  509. {
  510. .ifnum = 0,
  511. .type = QUIRK_IGNORE_INTERFACE
  512. },
  513. {
  514. .ifnum = 1,
  515. .type = QUIRK_IGNORE_INTERFACE
  516. },
  517. {
  518. .ifnum = 2,
  519. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  520. .data = & (const struct snd_usb_midi_endpoint_info) {
  521. .out_cables = 0x0001,
  522. .in_cables = 0x0001
  523. }
  524. },
  525. {
  526. .ifnum = -1
  527. }
  528. }
  529. }
  530. },
  531. {
  532. USB_DEVICE(0x0582, 0x000b),
  533. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  534. .vendor_name = "Roland",
  535. .product_name = "SK-500",
  536. .ifnum = QUIRK_ANY_INTERFACE,
  537. .type = QUIRK_COMPOSITE,
  538. .data = (const struct snd_usb_audio_quirk[]) {
  539. {
  540. .ifnum = 0,
  541. .type = QUIRK_IGNORE_INTERFACE
  542. },
  543. {
  544. .ifnum = 1,
  545. .type = QUIRK_IGNORE_INTERFACE
  546. },
  547. {
  548. .ifnum = 2,
  549. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  550. .data = & (const struct snd_usb_midi_endpoint_info) {
  551. .out_cables = 0x0013,
  552. .in_cables = 0x0013
  553. }
  554. },
  555. {
  556. .ifnum = -1
  557. }
  558. }
  559. }
  560. },
  561. {
  562. /* thanks to Emiliano Grilli <emillo@libero.it>
  563. * for helping researching this data */
  564. USB_DEVICE(0x0582, 0x000c),
  565. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  566. .vendor_name = "Roland",
  567. .product_name = "SC-D70",
  568. .ifnum = QUIRK_ANY_INTERFACE,
  569. .type = QUIRK_COMPOSITE,
  570. .data = (const struct snd_usb_audio_quirk[]) {
  571. {
  572. .ifnum = 0,
  573. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  574. .data = & (const struct audioformat) {
  575. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  576. .channels = 2,
  577. .iface = 0,
  578. .altsetting = 1,
  579. .altset_idx = 1,
  580. .attributes = 0,
  581. .endpoint = 0x01,
  582. .ep_attr = 0x01,
  583. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  584. .rate_min = 44100,
  585. .rate_max = 44100,
  586. }
  587. },
  588. {
  589. .ifnum = 1,
  590. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  591. .data = & (const struct audioformat) {
  592. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  593. .channels = 2,
  594. .iface = 1,
  595. .altsetting = 1,
  596. .altset_idx = 1,
  597. .attributes = 0,
  598. .endpoint = 0x81,
  599. .ep_attr = 0x01,
  600. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  601. .rate_min = 44100,
  602. .rate_max = 44100,
  603. }
  604. },
  605. {
  606. .ifnum = 2,
  607. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  608. .data = & (const struct snd_usb_midi_endpoint_info) {
  609. .out_cables = 0x0007,
  610. .in_cables = 0x0007
  611. }
  612. },
  613. {
  614. .ifnum = -1
  615. }
  616. }
  617. }
  618. },
  619. { /*
  620. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  621. * If the advanced mode switch at the back of the unit is off, the
  622. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  623. * but offers only 16-bit PCM.
  624. * In advanced mode, the UA-5 will output S24_3LE samples (two
  625. * channels) at the rate indicated on the front switch, including
  626. * the 96kHz sample rate.
  627. */
  628. USB_DEVICE(0x0582, 0x0010),
  629. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  630. .vendor_name = "EDIROL",
  631. .product_name = "UA-5",
  632. .ifnum = QUIRK_ANY_INTERFACE,
  633. .type = QUIRK_COMPOSITE,
  634. .data = (const struct snd_usb_audio_quirk[]) {
  635. {
  636. .ifnum = 1,
  637. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  638. },
  639. {
  640. .ifnum = 2,
  641. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  642. },
  643. {
  644. .ifnum = -1
  645. }
  646. }
  647. }
  648. },
  649. {
  650. /* has ID 0x0013 when not in "Advanced Driver" mode */
  651. USB_DEVICE(0x0582, 0x0012),
  652. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  653. .vendor_name = "Roland",
  654. .product_name = "XV-5050",
  655. .ifnum = 0,
  656. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  657. .data = & (const struct snd_usb_midi_endpoint_info) {
  658. .out_cables = 0x0001,
  659. .in_cables = 0x0001
  660. }
  661. }
  662. },
  663. {
  664. /* has ID 0x0015 when not in "Advanced Driver" mode */
  665. USB_DEVICE(0x0582, 0x0014),
  666. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  667. .vendor_name = "EDIROL",
  668. .product_name = "UM-880",
  669. .ifnum = 0,
  670. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  671. .data = & (const struct snd_usb_midi_endpoint_info) {
  672. .out_cables = 0x01ff,
  673. .in_cables = 0x01ff
  674. }
  675. }
  676. },
  677. {
  678. /* has ID 0x0017 when not in "Advanced Driver" mode */
  679. USB_DEVICE(0x0582, 0x0016),
  680. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  681. .vendor_name = "EDIROL",
  682. .product_name = "SD-90",
  683. .ifnum = QUIRK_ANY_INTERFACE,
  684. .type = QUIRK_COMPOSITE,
  685. .data = (const struct snd_usb_audio_quirk[]) {
  686. {
  687. .ifnum = 0,
  688. .type = QUIRK_IGNORE_INTERFACE
  689. },
  690. {
  691. .ifnum = 1,
  692. .type = QUIRK_IGNORE_INTERFACE
  693. },
  694. {
  695. .ifnum = 2,
  696. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  697. .data = & (const struct snd_usb_midi_endpoint_info) {
  698. .out_cables = 0x000f,
  699. .in_cables = 0x000f
  700. }
  701. },
  702. {
  703. .ifnum = -1
  704. }
  705. }
  706. }
  707. },
  708. {
  709. /* has ID 0x001c when not in "Advanced Driver" mode */
  710. USB_DEVICE(0x0582, 0x001b),
  711. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  712. .vendor_name = "Roland",
  713. .product_name = "MMP-2",
  714. .ifnum = QUIRK_ANY_INTERFACE,
  715. .type = QUIRK_COMPOSITE,
  716. .data = (const struct snd_usb_audio_quirk[]) {
  717. {
  718. .ifnum = 0,
  719. .type = QUIRK_IGNORE_INTERFACE
  720. },
  721. {
  722. .ifnum = 1,
  723. .type = QUIRK_IGNORE_INTERFACE
  724. },
  725. {
  726. .ifnum = 2,
  727. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  728. .data = & (const struct snd_usb_midi_endpoint_info) {
  729. .out_cables = 0x0001,
  730. .in_cables = 0x0001
  731. }
  732. },
  733. {
  734. .ifnum = -1
  735. }
  736. }
  737. }
  738. },
  739. {
  740. /* has ID 0x001e when not in "Advanced Driver" mode */
  741. USB_DEVICE(0x0582, 0x001d),
  742. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  743. .vendor_name = "Roland",
  744. .product_name = "V-SYNTH",
  745. .ifnum = 0,
  746. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  747. .data = & (const struct snd_usb_midi_endpoint_info) {
  748. .out_cables = 0x0001,
  749. .in_cables = 0x0001
  750. }
  751. }
  752. },
  753. {
  754. /* has ID 0x0024 when not in "Advanced Driver" mode */
  755. USB_DEVICE(0x0582, 0x0023),
  756. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  757. .vendor_name = "EDIROL",
  758. .product_name = "UM-550",
  759. .ifnum = 0,
  760. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  761. .data = & (const struct snd_usb_midi_endpoint_info) {
  762. .out_cables = 0x003f,
  763. .in_cables = 0x003f
  764. }
  765. }
  766. },
  767. {
  768. /*
  769. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  770. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  771. * and no MIDI.
  772. */
  773. USB_DEVICE(0x0582, 0x0025),
  774. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  775. .vendor_name = "EDIROL",
  776. .product_name = "UA-20",
  777. .ifnum = QUIRK_ANY_INTERFACE,
  778. .type = QUIRK_COMPOSITE,
  779. .data = (const struct snd_usb_audio_quirk[]) {
  780. {
  781. .ifnum = 0,
  782. .type = QUIRK_IGNORE_INTERFACE
  783. },
  784. {
  785. .ifnum = 1,
  786. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  787. .data = & (const struct audioformat) {
  788. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  789. .channels = 2,
  790. .iface = 1,
  791. .altsetting = 1,
  792. .altset_idx = 1,
  793. .attributes = 0,
  794. .endpoint = 0x01,
  795. .ep_attr = 0x01,
  796. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  797. .rate_min = 44100,
  798. .rate_max = 44100,
  799. }
  800. },
  801. {
  802. .ifnum = 2,
  803. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  804. .data = & (const struct audioformat) {
  805. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  806. .channels = 2,
  807. .iface = 2,
  808. .altsetting = 1,
  809. .altset_idx = 1,
  810. .attributes = 0,
  811. .endpoint = 0x82,
  812. .ep_attr = 0x01,
  813. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  814. .rate_min = 44100,
  815. .rate_max = 44100,
  816. }
  817. },
  818. {
  819. .ifnum = 3,
  820. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  821. .data = & (const struct snd_usb_midi_endpoint_info) {
  822. .out_cables = 0x0001,
  823. .in_cables = 0x0001
  824. }
  825. },
  826. {
  827. .ifnum = -1
  828. }
  829. }
  830. }
  831. },
  832. {
  833. /* has ID 0x0028 when not in "Advanced Driver" mode */
  834. USB_DEVICE(0x0582, 0x0027),
  835. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  836. .vendor_name = "EDIROL",
  837. .product_name = "SD-20",
  838. .ifnum = 0,
  839. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  840. .data = & (const struct snd_usb_midi_endpoint_info) {
  841. .out_cables = 0x0003,
  842. .in_cables = 0x0007
  843. }
  844. }
  845. },
  846. {
  847. /* has ID 0x002a when not in "Advanced Driver" mode */
  848. USB_DEVICE(0x0582, 0x0029),
  849. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  850. .vendor_name = "EDIROL",
  851. .product_name = "SD-80",
  852. .ifnum = 0,
  853. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  854. .data = & (const struct snd_usb_midi_endpoint_info) {
  855. .out_cables = 0x000f,
  856. .in_cables = 0x000f
  857. }
  858. }
  859. },
  860. { /*
  861. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  862. * If the sample format switch is not in an advanced setting, the
  863. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  864. * but offers only 16-bit PCM and no MIDI.
  865. */
  866. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  867. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  868. .vendor_name = "EDIROL",
  869. .product_name = "UA-700",
  870. .ifnum = QUIRK_ANY_INTERFACE,
  871. .type = QUIRK_COMPOSITE,
  872. .data = (const struct snd_usb_audio_quirk[]) {
  873. {
  874. .ifnum = 1,
  875. .type = QUIRK_AUDIO_EDIROL_UAXX
  876. },
  877. {
  878. .ifnum = 2,
  879. .type = QUIRK_AUDIO_EDIROL_UAXX
  880. },
  881. {
  882. .ifnum = 3,
  883. .type = QUIRK_AUDIO_EDIROL_UAXX
  884. },
  885. {
  886. .ifnum = -1
  887. }
  888. }
  889. }
  890. },
  891. {
  892. /* has ID 0x002e when not in "Advanced Driver" mode */
  893. USB_DEVICE(0x0582, 0x002d),
  894. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  895. .vendor_name = "Roland",
  896. .product_name = "XV-2020",
  897. .ifnum = 0,
  898. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  899. .data = & (const struct snd_usb_midi_endpoint_info) {
  900. .out_cables = 0x0001,
  901. .in_cables = 0x0001
  902. }
  903. }
  904. },
  905. {
  906. /* has ID 0x0030 when not in "Advanced Driver" mode */
  907. USB_DEVICE(0x0582, 0x002f),
  908. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  909. .vendor_name = "Roland",
  910. .product_name = "VariOS",
  911. .ifnum = 0,
  912. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  913. .data = & (const struct snd_usb_midi_endpoint_info) {
  914. .out_cables = 0x0007,
  915. .in_cables = 0x0007
  916. }
  917. }
  918. },
  919. {
  920. /* has ID 0x0034 when not in "Advanced Driver" mode */
  921. USB_DEVICE(0x0582, 0x0033),
  922. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  923. .vendor_name = "EDIROL",
  924. .product_name = "PCR",
  925. .ifnum = 0,
  926. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  927. .data = & (const struct snd_usb_midi_endpoint_info) {
  928. .out_cables = 0x0003,
  929. .in_cables = 0x0007
  930. }
  931. }
  932. },
  933. /* TODO: add Roland M-1000 support */
  934. {
  935. /*
  936. * Has ID 0x0038 when not in "Advanced Driver" mode;
  937. * later revisions use IDs 0x0054 and 0x00a2.
  938. */
  939. USB_DEVICE(0x0582, 0x0037),
  940. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  941. .vendor_name = "Roland",
  942. .product_name = "Digital Piano",
  943. .ifnum = 0,
  944. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  945. .data = & (const struct snd_usb_midi_endpoint_info) {
  946. .out_cables = 0x0001,
  947. .in_cables = 0x0001
  948. }
  949. }
  950. },
  951. {
  952. /*
  953. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  954. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  955. * and no MIDI.
  956. */
  957. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  958. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  959. .vendor_name = "BOSS",
  960. .product_name = "GS-10",
  961. .ifnum = QUIRK_ANY_INTERFACE,
  962. .type = QUIRK_COMPOSITE,
  963. .data = & (const struct snd_usb_audio_quirk[]) {
  964. {
  965. .ifnum = 1,
  966. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  967. },
  968. {
  969. .ifnum = 2,
  970. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  971. },
  972. {
  973. .ifnum = 3,
  974. .type = QUIRK_MIDI_STANDARD_INTERFACE
  975. },
  976. {
  977. .ifnum = -1
  978. }
  979. }
  980. }
  981. },
  982. {
  983. /* has ID 0x0041 when not in "Advanced Driver" mode */
  984. USB_DEVICE(0x0582, 0x0040),
  985. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  986. .vendor_name = "Roland",
  987. .product_name = "GI-20",
  988. .ifnum = 0,
  989. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  990. .data = & (const struct snd_usb_midi_endpoint_info) {
  991. .out_cables = 0x0001,
  992. .in_cables = 0x0001
  993. }
  994. }
  995. },
  996. {
  997. /* has ID 0x0043 when not in "Advanced Driver" mode */
  998. USB_DEVICE(0x0582, 0x0042),
  999. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1000. .vendor_name = "Roland",
  1001. .product_name = "RS-70",
  1002. .ifnum = 0,
  1003. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1004. .data = & (const struct snd_usb_midi_endpoint_info) {
  1005. .out_cables = 0x0001,
  1006. .in_cables = 0x0001
  1007. }
  1008. }
  1009. },
  1010. {
  1011. /* has ID 0x0049 when not in "Advanced Driver" mode */
  1012. USB_DEVICE(0x0582, 0x0047),
  1013. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1014. /* .vendor_name = "EDIROL", */
  1015. /* .product_name = "UR-80", */
  1016. .ifnum = QUIRK_ANY_INTERFACE,
  1017. .type = QUIRK_COMPOSITE,
  1018. .data = (const struct snd_usb_audio_quirk[]) {
  1019. /* in the 96 kHz modes, only interface 1 is there */
  1020. {
  1021. .ifnum = 1,
  1022. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1023. },
  1024. {
  1025. .ifnum = 2,
  1026. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1027. },
  1028. {
  1029. .ifnum = -1
  1030. }
  1031. }
  1032. }
  1033. },
  1034. {
  1035. /* has ID 0x004a when not in "Advanced Driver" mode */
  1036. USB_DEVICE(0x0582, 0x0048),
  1037. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1038. /* .vendor_name = "EDIROL", */
  1039. /* .product_name = "UR-80", */
  1040. .ifnum = 0,
  1041. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1042. .data = & (const struct snd_usb_midi_endpoint_info) {
  1043. .out_cables = 0x0003,
  1044. .in_cables = 0x0007
  1045. }
  1046. }
  1047. },
  1048. /* TODO: add Edirol M-100FX support */
  1049. {
  1050. /* has ID 0x004e when not in "Advanced Driver" mode */
  1051. USB_DEVICE(0x0582, 0x004c),
  1052. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1053. .vendor_name = "EDIROL",
  1054. .product_name = "PCR-A",
  1055. .ifnum = QUIRK_ANY_INTERFACE,
  1056. .type = QUIRK_COMPOSITE,
  1057. .data = (const struct snd_usb_audio_quirk[]) {
  1058. {
  1059. .ifnum = 1,
  1060. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1061. },
  1062. {
  1063. .ifnum = 2,
  1064. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1065. },
  1066. {
  1067. .ifnum = -1
  1068. }
  1069. }
  1070. }
  1071. },
  1072. {
  1073. /* has ID 0x004f when not in "Advanced Driver" mode */
  1074. USB_DEVICE(0x0582, 0x004d),
  1075. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1076. .vendor_name = "EDIROL",
  1077. .product_name = "PCR-A",
  1078. .ifnum = 0,
  1079. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1080. .data = & (const struct snd_usb_midi_endpoint_info) {
  1081. .out_cables = 0x0003,
  1082. .in_cables = 0x0007
  1083. }
  1084. }
  1085. },
  1086. {
  1087. /*
  1088. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1089. * is standard compliant, but has only 16-bit PCM.
  1090. */
  1091. USB_DEVICE(0x0582, 0x0050),
  1092. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1093. .vendor_name = "EDIROL",
  1094. .product_name = "UA-3FX",
  1095. .ifnum = QUIRK_ANY_INTERFACE,
  1096. .type = QUIRK_COMPOSITE,
  1097. .data = (const struct snd_usb_audio_quirk[]) {
  1098. {
  1099. .ifnum = 1,
  1100. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1101. },
  1102. {
  1103. .ifnum = 2,
  1104. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1105. },
  1106. {
  1107. .ifnum = -1
  1108. }
  1109. }
  1110. }
  1111. },
  1112. {
  1113. USB_DEVICE(0x0582, 0x0052),
  1114. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1115. .vendor_name = "EDIROL",
  1116. .product_name = "UM-1SX",
  1117. .ifnum = 0,
  1118. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1119. }
  1120. },
  1121. {
  1122. USB_DEVICE(0x0582, 0x0060),
  1123. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1124. .vendor_name = "Roland",
  1125. .product_name = "EXR Series",
  1126. .ifnum = 0,
  1127. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1128. }
  1129. },
  1130. {
  1131. /* has ID 0x0066 when not in "Advanced Driver" mode */
  1132. USB_DEVICE(0x0582, 0x0064),
  1133. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1134. /* .vendor_name = "EDIROL", */
  1135. /* .product_name = "PCR-1", */
  1136. .ifnum = QUIRK_ANY_INTERFACE,
  1137. .type = QUIRK_COMPOSITE,
  1138. .data = (const struct snd_usb_audio_quirk[]) {
  1139. {
  1140. .ifnum = 1,
  1141. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1142. },
  1143. {
  1144. .ifnum = 2,
  1145. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1146. },
  1147. {
  1148. .ifnum = -1
  1149. }
  1150. }
  1151. }
  1152. },
  1153. {
  1154. /* has ID 0x0067 when not in "Advanced Driver" mode */
  1155. USB_DEVICE(0x0582, 0x0065),
  1156. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1157. /* .vendor_name = "EDIROL", */
  1158. /* .product_name = "PCR-1", */
  1159. .ifnum = 0,
  1160. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1161. .data = & (const struct snd_usb_midi_endpoint_info) {
  1162. .out_cables = 0x0001,
  1163. .in_cables = 0x0003
  1164. }
  1165. }
  1166. },
  1167. {
  1168. /* has ID 0x006b when not in "Advanced Driver" mode */
  1169. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  1170. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1171. .vendor_name = "Roland",
  1172. .product_name = "SP-606",
  1173. .ifnum = 3,
  1174. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1175. .data = & (const struct snd_usb_midi_endpoint_info) {
  1176. .out_cables = 0x0001,
  1177. .in_cables = 0x0001
  1178. }
  1179. }
  1180. },
  1181. {
  1182. /* has ID 0x006e when not in "Advanced Driver" mode */
  1183. USB_DEVICE(0x0582, 0x006d),
  1184. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1185. .vendor_name = "Roland",
  1186. .product_name = "FANTOM-X",
  1187. .ifnum = 0,
  1188. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1189. .data = & (const struct snd_usb_midi_endpoint_info) {
  1190. .out_cables = 0x0001,
  1191. .in_cables = 0x0001
  1192. }
  1193. }
  1194. },
  1195. { /*
  1196. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1197. * If the switch is not in an advanced setting, the UA-25 has
  1198. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1199. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1200. */
  1201. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1202. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1203. .vendor_name = "EDIROL",
  1204. .product_name = "UA-25",
  1205. .ifnum = QUIRK_ANY_INTERFACE,
  1206. .type = QUIRK_COMPOSITE,
  1207. .data = (const struct snd_usb_audio_quirk[]) {
  1208. {
  1209. .ifnum = 0,
  1210. .type = QUIRK_AUDIO_EDIROL_UAXX
  1211. },
  1212. {
  1213. .ifnum = 1,
  1214. .type = QUIRK_AUDIO_EDIROL_UAXX
  1215. },
  1216. {
  1217. .ifnum = 2,
  1218. .type = QUIRK_AUDIO_EDIROL_UAXX
  1219. },
  1220. {
  1221. .ifnum = -1
  1222. }
  1223. }
  1224. }
  1225. },
  1226. {
  1227. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1228. USB_DEVICE(0x0582, 0x0075),
  1229. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1230. .vendor_name = "BOSS",
  1231. .product_name = "DR-880",
  1232. .ifnum = 0,
  1233. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1234. .data = & (const struct snd_usb_midi_endpoint_info) {
  1235. .out_cables = 0x0001,
  1236. .in_cables = 0x0001
  1237. }
  1238. }
  1239. },
  1240. {
  1241. /* has ID 0x007b when not in "Advanced Driver" mode */
  1242. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1243. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1244. .vendor_name = "Roland",
  1245. /* "RD" or "RD-700SX"? */
  1246. .ifnum = 0,
  1247. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1248. .data = & (const struct snd_usb_midi_endpoint_info) {
  1249. .out_cables = 0x0003,
  1250. .in_cables = 0x0003
  1251. }
  1252. }
  1253. },
  1254. {
  1255. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1256. USB_DEVICE(0x0582, 0x0080),
  1257. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1258. .vendor_name = "Roland",
  1259. .product_name = "G-70",
  1260. .ifnum = 0,
  1261. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1262. .data = & (const struct snd_usb_midi_endpoint_info) {
  1263. .out_cables = 0x0001,
  1264. .in_cables = 0x0001
  1265. }
  1266. }
  1267. },
  1268. /* TODO: add Roland V-SYNTH XT support */
  1269. /* TODO: add BOSS GT-PRO support */
  1270. {
  1271. /* has ID 0x008c when not in "Advanced Driver" mode */
  1272. USB_DEVICE(0x0582, 0x008b),
  1273. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1274. .vendor_name = "EDIROL",
  1275. .product_name = "PC-50",
  1276. .ifnum = 0,
  1277. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1278. .data = & (const struct snd_usb_midi_endpoint_info) {
  1279. .out_cables = 0x0001,
  1280. .in_cables = 0x0001
  1281. }
  1282. }
  1283. },
  1284. /* TODO: add Edirol PC-80 support */
  1285. {
  1286. USB_DEVICE(0x0582, 0x0096),
  1287. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1288. .vendor_name = "EDIROL",
  1289. .product_name = "UA-1EX",
  1290. .ifnum = QUIRK_ANY_INTERFACE,
  1291. .type = QUIRK_COMPOSITE,
  1292. .data = (const struct snd_usb_audio_quirk[]) {
  1293. {
  1294. .ifnum = 0,
  1295. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1296. },
  1297. {
  1298. .ifnum = 1,
  1299. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1300. },
  1301. {
  1302. .ifnum = -1
  1303. }
  1304. }
  1305. }
  1306. },
  1307. {
  1308. USB_DEVICE(0x0582, 0x009a),
  1309. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1310. .vendor_name = "EDIROL",
  1311. .product_name = "UM-3EX",
  1312. .ifnum = 0,
  1313. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1314. .data = & (const struct snd_usb_midi_endpoint_info) {
  1315. .out_cables = 0x000f,
  1316. .in_cables = 0x000f
  1317. }
  1318. }
  1319. },
  1320. {
  1321. /*
  1322. * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
  1323. * is standard compliant, but has only 16-bit PCM and no MIDI.
  1324. */
  1325. USB_DEVICE(0x0582, 0x00a3),
  1326. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1327. .vendor_name = "EDIROL",
  1328. .product_name = "UA-4FX",
  1329. .ifnum = QUIRK_ANY_INTERFACE,
  1330. .type = QUIRK_COMPOSITE,
  1331. .data = (const struct snd_usb_audio_quirk[]) {
  1332. {
  1333. .ifnum = 0,
  1334. .type = QUIRK_AUDIO_EDIROL_UAXX
  1335. },
  1336. {
  1337. .ifnum = 1,
  1338. .type = QUIRK_AUDIO_EDIROL_UAXX
  1339. },
  1340. {
  1341. .ifnum = 2,
  1342. .type = QUIRK_AUDIO_EDIROL_UAXX
  1343. },
  1344. {
  1345. .ifnum = -1
  1346. }
  1347. }
  1348. }
  1349. },
  1350. /* TODO: add Edirol MD-P1 support */
  1351. {
  1352. USB_DEVICE(0x582, 0x00a6),
  1353. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1354. .vendor_name = "Roland",
  1355. .product_name = "Juno-G",
  1356. .ifnum = 0,
  1357. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1358. .data = & (const struct snd_usb_midi_endpoint_info) {
  1359. .out_cables = 0x0001,
  1360. .in_cables = 0x0001
  1361. }
  1362. }
  1363. },
  1364. {
  1365. /* Roland SH-201 */
  1366. USB_DEVICE(0x0582, 0x00ad),
  1367. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1368. .vendor_name = "Roland",
  1369. .product_name = "SH-201",
  1370. .ifnum = QUIRK_ANY_INTERFACE,
  1371. .type = QUIRK_COMPOSITE,
  1372. .data = (const struct snd_usb_audio_quirk[]) {
  1373. {
  1374. .ifnum = 0,
  1375. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1376. },
  1377. {
  1378. .ifnum = 1,
  1379. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1380. },
  1381. {
  1382. .ifnum = 2,
  1383. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1384. .data = & (const struct snd_usb_midi_endpoint_info) {
  1385. .out_cables = 0x0001,
  1386. .in_cables = 0x0001
  1387. }
  1388. },
  1389. {
  1390. .ifnum = -1
  1391. }
  1392. }
  1393. }
  1394. },
  1395. {
  1396. /* Roland SonicCell */
  1397. USB_DEVICE(0x0582, 0x00c2),
  1398. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1399. .vendor_name = "Roland",
  1400. .product_name = "SonicCell",
  1401. .ifnum = QUIRK_ANY_INTERFACE,
  1402. .type = QUIRK_COMPOSITE,
  1403. .data = (const struct snd_usb_audio_quirk[]) {
  1404. {
  1405. .ifnum = 0,
  1406. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1407. },
  1408. {
  1409. .ifnum = 1,
  1410. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1411. },
  1412. {
  1413. .ifnum = 2,
  1414. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1415. .data = & (const struct snd_usb_midi_endpoint_info) {
  1416. .out_cables = 0x0001,
  1417. .in_cables = 0x0001
  1418. }
  1419. },
  1420. {
  1421. .ifnum = -1
  1422. }
  1423. }
  1424. }
  1425. },
  1426. {
  1427. /* Edirol M-16DX */
  1428. /* FIXME: This quirk gives a good-working capture stream but the
  1429. * playback seems problematic because of lacking of sync
  1430. * with capture stream. It needs to sync with the capture
  1431. * clock. As now, you'll get frequent sound distortions
  1432. * via the playback.
  1433. */
  1434. USB_DEVICE(0x0582, 0x00c4),
  1435. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1436. .ifnum = QUIRK_ANY_INTERFACE,
  1437. .type = QUIRK_COMPOSITE,
  1438. .data = (const struct snd_usb_audio_quirk[]) {
  1439. {
  1440. .ifnum = 0,
  1441. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1442. },
  1443. {
  1444. .ifnum = 1,
  1445. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1446. },
  1447. {
  1448. .ifnum = 2,
  1449. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1450. .data = & (const struct snd_usb_midi_endpoint_info) {
  1451. .out_cables = 0x0001,
  1452. .in_cables = 0x0001
  1453. }
  1454. },
  1455. {
  1456. .ifnum = -1
  1457. }
  1458. }
  1459. }
  1460. },
  1461. {
  1462. /* BOSS GT-10 */
  1463. USB_DEVICE(0x0582, 0x00da),
  1464. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1465. .ifnum = QUIRK_ANY_INTERFACE,
  1466. .type = QUIRK_COMPOSITE,
  1467. .data = (const struct snd_usb_audio_quirk[]) {
  1468. {
  1469. .ifnum = 0,
  1470. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1471. },
  1472. {
  1473. .ifnum = 1,
  1474. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1475. },
  1476. {
  1477. .ifnum = 2,
  1478. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1479. .data = & (const struct snd_usb_midi_endpoint_info) {
  1480. .out_cables = 0x0001,
  1481. .in_cables = 0x0001
  1482. }
  1483. },
  1484. {
  1485. .ifnum = -1
  1486. }
  1487. }
  1488. }
  1489. },
  1490. {
  1491. /* Advanced modes of the Edirol UA-25EX.
  1492. * For the standard mode, UA-25EX has ID 0582:00e7, which
  1493. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1494. */
  1495. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
  1496. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1497. .vendor_name = "EDIROL",
  1498. .product_name = "UA-25EX",
  1499. .ifnum = QUIRK_ANY_INTERFACE,
  1500. .type = QUIRK_COMPOSITE,
  1501. .data = (const struct snd_usb_audio_quirk[]) {
  1502. {
  1503. .ifnum = 0,
  1504. .type = QUIRK_AUDIO_EDIROL_UAXX
  1505. },
  1506. {
  1507. .ifnum = 1,
  1508. .type = QUIRK_AUDIO_EDIROL_UAXX
  1509. },
  1510. {
  1511. .ifnum = 2,
  1512. .type = QUIRK_AUDIO_EDIROL_UAXX
  1513. },
  1514. {
  1515. .ifnum = -1
  1516. }
  1517. }
  1518. }
  1519. },
  1520. {
  1521. /* has ID 0x00ea when not in Advanced Driver mode */
  1522. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
  1523. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1524. /* .vendor_name = "Roland", */
  1525. /* .product_name = "UA-1G", */
  1526. .ifnum = QUIRK_ANY_INTERFACE,
  1527. .type = QUIRK_COMPOSITE,
  1528. .data = (const struct snd_usb_audio_quirk[]) {
  1529. {
  1530. .ifnum = 0,
  1531. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1532. },
  1533. {
  1534. .ifnum = 1,
  1535. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1536. },
  1537. {
  1538. .ifnum = -1
  1539. }
  1540. }
  1541. }
  1542. },
  1543. /* Guillemot devices */
  1544. {
  1545. /*
  1546. * This is for the "Windows Edition" where the external MIDI ports are
  1547. * the only MIDI ports; the control data is reported through HID
  1548. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1549. * compliant USB MIDI ports for external MIDI and controls.
  1550. */
  1551. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1552. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1553. .vendor_name = "Hercules",
  1554. .product_name = "DJ Console (WE)",
  1555. .ifnum = 4,
  1556. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1557. .data = & (const struct snd_usb_midi_endpoint_info) {
  1558. .out_cables = 0x0001,
  1559. .in_cables = 0x0001
  1560. }
  1561. }
  1562. },
  1563. /* Midiman/M-Audio devices */
  1564. {
  1565. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1566. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1567. .vendor_name = "M-Audio",
  1568. .product_name = "MidiSport 2x2",
  1569. .ifnum = QUIRK_ANY_INTERFACE,
  1570. .type = QUIRK_MIDI_MIDIMAN,
  1571. .data = & (const struct snd_usb_midi_endpoint_info) {
  1572. .out_cables = 0x0003,
  1573. .in_cables = 0x0003
  1574. }
  1575. }
  1576. },
  1577. {
  1578. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1579. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1580. .vendor_name = "M-Audio",
  1581. .product_name = "MidiSport 1x1",
  1582. .ifnum = QUIRK_ANY_INTERFACE,
  1583. .type = QUIRK_MIDI_MIDIMAN,
  1584. .data = & (const struct snd_usb_midi_endpoint_info) {
  1585. .out_cables = 0x0001,
  1586. .in_cables = 0x0001
  1587. }
  1588. }
  1589. },
  1590. {
  1591. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1592. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1593. .vendor_name = "M-Audio",
  1594. .product_name = "Keystation",
  1595. .ifnum = QUIRK_ANY_INTERFACE,
  1596. .type = QUIRK_MIDI_MIDIMAN,
  1597. .data = & (const struct snd_usb_midi_endpoint_info) {
  1598. .out_cables = 0x0001,
  1599. .in_cables = 0x0001
  1600. }
  1601. }
  1602. },
  1603. {
  1604. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1605. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1606. .vendor_name = "M-Audio",
  1607. .product_name = "MidiSport 4x4",
  1608. .ifnum = QUIRK_ANY_INTERFACE,
  1609. .type = QUIRK_MIDI_MIDIMAN,
  1610. .data = & (const struct snd_usb_midi_endpoint_info) {
  1611. .out_cables = 0x000f,
  1612. .in_cables = 0x000f
  1613. }
  1614. }
  1615. },
  1616. {
  1617. /*
  1618. * For hardware revision 1.05; in the later revisions (1.10 and
  1619. * 1.21), 0x1031 is the ID for the device without firmware.
  1620. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1621. */
  1622. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1623. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1624. .vendor_name = "M-Audio",
  1625. .product_name = "MidiSport 8x8",
  1626. .ifnum = QUIRK_ANY_INTERFACE,
  1627. .type = QUIRK_MIDI_MIDIMAN,
  1628. .data = & (const struct snd_usb_midi_endpoint_info) {
  1629. .out_cables = 0x01ff,
  1630. .in_cables = 0x01ff
  1631. }
  1632. }
  1633. },
  1634. {
  1635. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1636. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1637. .vendor_name = "M-Audio",
  1638. .product_name = "MidiSport 8x8",
  1639. .ifnum = QUIRK_ANY_INTERFACE,
  1640. .type = QUIRK_MIDI_MIDIMAN,
  1641. .data = & (const struct snd_usb_midi_endpoint_info) {
  1642. .out_cables = 0x01ff,
  1643. .in_cables = 0x01ff
  1644. }
  1645. }
  1646. },
  1647. {
  1648. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1649. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1650. .vendor_name = "M-Audio",
  1651. .product_name = "MidiSport 2x4",
  1652. .ifnum = QUIRK_ANY_INTERFACE,
  1653. .type = QUIRK_MIDI_MIDIMAN,
  1654. .data = & (const struct snd_usb_midi_endpoint_info) {
  1655. .out_cables = 0x000f,
  1656. .in_cables = 0x0003
  1657. }
  1658. }
  1659. },
  1660. {
  1661. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1662. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1663. .vendor_name = "M-Audio",
  1664. .product_name = "Quattro",
  1665. .ifnum = QUIRK_ANY_INTERFACE,
  1666. .type = QUIRK_COMPOSITE,
  1667. .data = & (const struct snd_usb_audio_quirk[]) {
  1668. /*
  1669. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1670. * and share endpoints with the other interfaces.
  1671. * Ignore them. The other interfaces can do 24 bits,
  1672. * but captured samples are big-endian (see usbaudio.c).
  1673. */
  1674. {
  1675. .ifnum = 0,
  1676. .type = QUIRK_IGNORE_INTERFACE
  1677. },
  1678. {
  1679. .ifnum = 1,
  1680. .type = QUIRK_IGNORE_INTERFACE
  1681. },
  1682. {
  1683. .ifnum = 2,
  1684. .type = QUIRK_IGNORE_INTERFACE
  1685. },
  1686. {
  1687. .ifnum = 3,
  1688. .type = QUIRK_IGNORE_INTERFACE
  1689. },
  1690. {
  1691. .ifnum = 4,
  1692. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1693. },
  1694. {
  1695. .ifnum = 5,
  1696. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1697. },
  1698. {
  1699. .ifnum = 6,
  1700. .type = QUIRK_IGNORE_INTERFACE
  1701. },
  1702. {
  1703. .ifnum = 7,
  1704. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1705. },
  1706. {
  1707. .ifnum = 8,
  1708. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1709. },
  1710. {
  1711. .ifnum = 9,
  1712. .type = QUIRK_MIDI_MIDIMAN,
  1713. .data = & (const struct snd_usb_midi_endpoint_info) {
  1714. .out_cables = 0x0001,
  1715. .in_cables = 0x0001
  1716. }
  1717. },
  1718. {
  1719. .ifnum = -1
  1720. }
  1721. }
  1722. }
  1723. },
  1724. {
  1725. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1726. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1727. .vendor_name = "M-Audio",
  1728. .product_name = "AudioPhile",
  1729. .ifnum = 6,
  1730. .type = QUIRK_MIDI_MIDIMAN,
  1731. .data = & (const struct snd_usb_midi_endpoint_info) {
  1732. .out_cables = 0x0001,
  1733. .in_cables = 0x0001
  1734. }
  1735. }
  1736. },
  1737. {
  1738. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1739. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1740. .vendor_name = "M-Audio",
  1741. .product_name = "Ozone",
  1742. .ifnum = 3,
  1743. .type = QUIRK_MIDI_MIDIMAN,
  1744. .data = & (const struct snd_usb_midi_endpoint_info) {
  1745. .out_cables = 0x0001,
  1746. .in_cables = 0x0001
  1747. }
  1748. }
  1749. },
  1750. {
  1751. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1752. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1753. .vendor_name = "M-Audio",
  1754. .product_name = "OmniStudio",
  1755. .ifnum = QUIRK_ANY_INTERFACE,
  1756. .type = QUIRK_COMPOSITE,
  1757. .data = & (const struct snd_usb_audio_quirk[]) {
  1758. {
  1759. .ifnum = 0,
  1760. .type = QUIRK_IGNORE_INTERFACE
  1761. },
  1762. {
  1763. .ifnum = 1,
  1764. .type = QUIRK_IGNORE_INTERFACE
  1765. },
  1766. {
  1767. .ifnum = 2,
  1768. .type = QUIRK_IGNORE_INTERFACE
  1769. },
  1770. {
  1771. .ifnum = 3,
  1772. .type = QUIRK_IGNORE_INTERFACE
  1773. },
  1774. {
  1775. .ifnum = 4,
  1776. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1777. },
  1778. {
  1779. .ifnum = 5,
  1780. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1781. },
  1782. {
  1783. .ifnum = 6,
  1784. .type = QUIRK_IGNORE_INTERFACE
  1785. },
  1786. {
  1787. .ifnum = 7,
  1788. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1789. },
  1790. {
  1791. .ifnum = 8,
  1792. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1793. },
  1794. {
  1795. .ifnum = 9,
  1796. .type = QUIRK_MIDI_MIDIMAN,
  1797. .data = & (const struct snd_usb_midi_endpoint_info) {
  1798. .out_cables = 0x0001,
  1799. .in_cables = 0x0001
  1800. }
  1801. },
  1802. {
  1803. .ifnum = -1
  1804. }
  1805. }
  1806. }
  1807. },
  1808. {
  1809. USB_DEVICE(0x0763, 0x2019),
  1810. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1811. /* .vendor_name = "M-Audio", */
  1812. /* .product_name = "Ozone Academic", */
  1813. .ifnum = QUIRK_ANY_INTERFACE,
  1814. .type = QUIRK_COMPOSITE,
  1815. .data = & (const struct snd_usb_audio_quirk[]) {
  1816. {
  1817. .ifnum = 0,
  1818. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1819. },
  1820. {
  1821. .ifnum = 1,
  1822. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1823. },
  1824. {
  1825. .ifnum = 2,
  1826. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1827. },
  1828. {
  1829. .ifnum = 3,
  1830. .type = QUIRK_MIDI_MIDIMAN,
  1831. .data = & (const struct snd_usb_midi_endpoint_info) {
  1832. .out_cables = 0x0001,
  1833. .in_cables = 0x0001
  1834. }
  1835. },
  1836. {
  1837. .ifnum = -1
  1838. }
  1839. }
  1840. }
  1841. },
  1842. {
  1843. USB_DEVICE(0x0763, 0x2080),
  1844. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1845. /* .vendor_name = "M-Audio", */
  1846. /* .product_name = "Fast Track Ultra", */
  1847. .ifnum = QUIRK_ANY_INTERFACE,
  1848. .type = QUIRK_COMPOSITE,
  1849. .data = & (const struct snd_usb_audio_quirk[]) {
  1850. {
  1851. .ifnum = 0,
  1852. .type = QUIRK_IGNORE_INTERFACE
  1853. },
  1854. {
  1855. .ifnum = 1,
  1856. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1857. .data = & (const struct audioformat) {
  1858. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1859. .channels = 8,
  1860. .iface = 1,
  1861. .altsetting = 1,
  1862. .altset_idx = 1,
  1863. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1864. .endpoint = 0x01,
  1865. .ep_attr = 0x09,
  1866. .rates = SNDRV_PCM_RATE_44100 |
  1867. SNDRV_PCM_RATE_48000 |
  1868. SNDRV_PCM_RATE_88200 |
  1869. SNDRV_PCM_RATE_96000,
  1870. .rate_min = 44100,
  1871. .rate_max = 96000,
  1872. .nr_rates = 4,
  1873. .rate_table = (unsigned int[]) {
  1874. 44100, 48000, 88200, 96000
  1875. }
  1876. }
  1877. },
  1878. {
  1879. .ifnum = 2,
  1880. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1881. .data = & (const struct audioformat) {
  1882. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1883. .channels = 8,
  1884. .iface = 2,
  1885. .altsetting = 1,
  1886. .altset_idx = 1,
  1887. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1888. .endpoint = 0x81,
  1889. .ep_attr = 0x05,
  1890. .rates = SNDRV_PCM_RATE_44100 |
  1891. SNDRV_PCM_RATE_48000 |
  1892. SNDRV_PCM_RATE_88200 |
  1893. SNDRV_PCM_RATE_96000,
  1894. .rate_min = 44100,
  1895. .rate_max = 96000,
  1896. .nr_rates = 4,
  1897. .rate_table = (unsigned int[]) {
  1898. 44100, 48000, 88200, 96000
  1899. }
  1900. }
  1901. },
  1902. /* interface 3 (MIDI) is standard compliant */
  1903. {
  1904. .ifnum = -1
  1905. }
  1906. }
  1907. }
  1908. },
  1909. {
  1910. USB_DEVICE(0x0763, 0x2081),
  1911. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1912. /* .vendor_name = "M-Audio", */
  1913. /* .product_name = "Fast Track Ultra 8R", */
  1914. .ifnum = QUIRK_ANY_INTERFACE,
  1915. .type = QUIRK_COMPOSITE,
  1916. .data = & (const struct snd_usb_audio_quirk[]) {
  1917. {
  1918. .ifnum = 0,
  1919. .type = QUIRK_IGNORE_INTERFACE
  1920. },
  1921. {
  1922. .ifnum = 1,
  1923. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1924. .data = & (const struct audioformat) {
  1925. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1926. .channels = 8,
  1927. .iface = 1,
  1928. .altsetting = 1,
  1929. .altset_idx = 1,
  1930. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1931. .endpoint = 0x01,
  1932. .ep_attr = 0x09,
  1933. .rates = SNDRV_PCM_RATE_44100 |
  1934. SNDRV_PCM_RATE_48000 |
  1935. SNDRV_PCM_RATE_88200 |
  1936. SNDRV_PCM_RATE_96000,
  1937. .rate_min = 44100,
  1938. .rate_max = 96000,
  1939. .nr_rates = 4,
  1940. .rate_table = (unsigned int[]) {
  1941. 44100, 48000, 88200, 96000
  1942. }
  1943. }
  1944. },
  1945. {
  1946. .ifnum = 2,
  1947. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1948. .data = & (const struct audioformat) {
  1949. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1950. .channels = 8,
  1951. .iface = 2,
  1952. .altsetting = 1,
  1953. .altset_idx = 1,
  1954. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1955. .endpoint = 0x81,
  1956. .ep_attr = 0x05,
  1957. .rates = SNDRV_PCM_RATE_44100 |
  1958. SNDRV_PCM_RATE_48000 |
  1959. SNDRV_PCM_RATE_88200 |
  1960. SNDRV_PCM_RATE_96000,
  1961. .rate_min = 44100,
  1962. .rate_max = 96000,
  1963. .nr_rates = 4,
  1964. .rate_table = (unsigned int[]) {
  1965. 44100, 48000, 88200, 96000
  1966. }
  1967. }
  1968. },
  1969. /* interface 3 (MIDI) is standard compliant */
  1970. {
  1971. .ifnum = -1
  1972. }
  1973. }
  1974. }
  1975. },
  1976. /* Casio devices */
  1977. {
  1978. USB_DEVICE(0x07cf, 0x6801),
  1979. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1980. .vendor_name = "Casio",
  1981. .product_name = "PL-40R",
  1982. .ifnum = 0,
  1983. .type = QUIRK_MIDI_YAMAHA
  1984. }
  1985. },
  1986. {
  1987. /* this ID is used by several devices without a product ID */
  1988. USB_DEVICE(0x07cf, 0x6802),
  1989. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1990. .vendor_name = "Casio",
  1991. .product_name = "Keyboard",
  1992. .ifnum = 0,
  1993. .type = QUIRK_MIDI_YAMAHA
  1994. }
  1995. },
  1996. /* Mark of the Unicorn devices */
  1997. {
  1998. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1999. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2000. USB_DEVICE_ID_MATCH_PRODUCT |
  2001. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2002. .idVendor = 0x07fd,
  2003. .idProduct = 0x0001,
  2004. .bDeviceSubClass = 2,
  2005. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2006. .vendor_name = "MOTU",
  2007. .product_name = "Fastlane",
  2008. .ifnum = QUIRK_ANY_INTERFACE,
  2009. .type = QUIRK_COMPOSITE,
  2010. .data = & (const struct snd_usb_audio_quirk[]) {
  2011. {
  2012. .ifnum = 0,
  2013. .type = QUIRK_MIDI_FASTLANE
  2014. },
  2015. {
  2016. .ifnum = 1,
  2017. .type = QUIRK_IGNORE_INTERFACE
  2018. },
  2019. {
  2020. .ifnum = -1
  2021. }
  2022. }
  2023. }
  2024. },
  2025. /* Emagic devices */
  2026. {
  2027. USB_DEVICE(0x086a, 0x0001),
  2028. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2029. .vendor_name = "Emagic",
  2030. /* .product_name = "Unitor8", */
  2031. .ifnum = 2,
  2032. .type = QUIRK_MIDI_EMAGIC,
  2033. .data = & (const struct snd_usb_midi_endpoint_info) {
  2034. .out_cables = 0x80ff,
  2035. .in_cables = 0x80ff
  2036. }
  2037. }
  2038. },
  2039. {
  2040. USB_DEVICE(0x086a, 0x0002),
  2041. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2042. .vendor_name = "Emagic",
  2043. /* .product_name = "AMT8", */
  2044. .ifnum = 2,
  2045. .type = QUIRK_MIDI_EMAGIC,
  2046. .data = & (const struct snd_usb_midi_endpoint_info) {
  2047. .out_cables = 0x80ff,
  2048. .in_cables = 0x80ff
  2049. }
  2050. }
  2051. },
  2052. {
  2053. USB_DEVICE(0x086a, 0x0003),
  2054. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2055. .vendor_name = "Emagic",
  2056. /* .product_name = "MT4", */
  2057. .ifnum = 2,
  2058. .type = QUIRK_MIDI_EMAGIC,
  2059. .data = & (const struct snd_usb_midi_endpoint_info) {
  2060. .out_cables = 0x800f,
  2061. .in_cables = 0x8003
  2062. }
  2063. }
  2064. },
  2065. /* AKAI devices */
  2066. {
  2067. USB_DEVICE(0x09e8, 0x0062),
  2068. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2069. .vendor_name = "AKAI",
  2070. .product_name = "MPD16",
  2071. .ifnum = 0,
  2072. .type = QUIRK_MIDI_AKAI,
  2073. }
  2074. },
  2075. /* TerraTec devices */
  2076. {
  2077. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2078. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2079. .vendor_name = "TerraTec",
  2080. .product_name = "PHASE 26",
  2081. .ifnum = 3,
  2082. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2083. }
  2084. },
  2085. {
  2086. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2087. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2088. .vendor_name = "TerraTec",
  2089. .product_name = "PHASE 26",
  2090. .ifnum = 3,
  2091. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2092. }
  2093. },
  2094. {
  2095. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2096. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2097. .vendor_name = "TerraTec",
  2098. .product_name = "PHASE 26",
  2099. .ifnum = 3,
  2100. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2101. }
  2102. },
  2103. {
  2104. USB_DEVICE(0x0ccd, 0x0028),
  2105. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2106. .vendor_name = "TerraTec",
  2107. .product_name = "Aureon5.1MkII",
  2108. .ifnum = QUIRK_NO_INTERFACE
  2109. }
  2110. },
  2111. {
  2112. USB_DEVICE(0x0ccd, 0x0035),
  2113. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2114. .vendor_name = "Miditech",
  2115. .product_name = "Play'n Roll",
  2116. .ifnum = 0,
  2117. .type = QUIRK_MIDI_CME
  2118. }
  2119. },
  2120. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2121. {
  2122. USB_DEVICE(0x103d, 0x0100),
  2123. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2124. .vendor_name = "Stanton",
  2125. .product_name = "ScratchAmp",
  2126. .ifnum = QUIRK_NO_INTERFACE
  2127. }
  2128. },
  2129. {
  2130. USB_DEVICE(0x103d, 0x0101),
  2131. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2132. .vendor_name = "Stanton",
  2133. .product_name = "ScratchAmp",
  2134. .ifnum = QUIRK_NO_INTERFACE
  2135. }
  2136. },
  2137. /* Novation EMS devices */
  2138. {
  2139. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2140. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2141. .vendor_name = "Novation",
  2142. .product_name = "ReMOTE Audio/XStation",
  2143. .ifnum = 4,
  2144. .type = QUIRK_MIDI_NOVATION
  2145. }
  2146. },
  2147. {
  2148. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2149. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2150. .vendor_name = "Novation",
  2151. .product_name = "Speedio",
  2152. .ifnum = 3,
  2153. .type = QUIRK_MIDI_NOVATION
  2154. }
  2155. },
  2156. {
  2157. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2158. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2159. .vendor_name = "Novation",
  2160. .product_name = "ReMOTE25",
  2161. .ifnum = 0,
  2162. .type = QUIRK_MIDI_NOVATION
  2163. }
  2164. },
  2165. /* Access Music devices */
  2166. {
  2167. /* VirusTI Desktop */
  2168. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2169. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2170. .ifnum = QUIRK_ANY_INTERFACE,
  2171. .type = QUIRK_COMPOSITE,
  2172. .data = &(const struct snd_usb_audio_quirk[]) {
  2173. {
  2174. .ifnum = 3,
  2175. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2176. .data = &(const struct snd_usb_midi_endpoint_info) {
  2177. .out_cables = 0x0003,
  2178. .in_cables = 0x0003
  2179. }
  2180. },
  2181. {
  2182. .ifnum = 4,
  2183. .type = QUIRK_IGNORE_INTERFACE
  2184. },
  2185. {
  2186. .ifnum = -1
  2187. }
  2188. }
  2189. }
  2190. },
  2191. /* */
  2192. {
  2193. /* aka. Serato Scratch Live DJ Box */
  2194. USB_DEVICE(0x13e5, 0x0001),
  2195. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2196. .vendor_name = "Rane",
  2197. .product_name = "SL-1",
  2198. .ifnum = QUIRK_NO_INTERFACE
  2199. }
  2200. },
  2201. /* Miditech devices */
  2202. {
  2203. USB_DEVICE(0x4752, 0x0011),
  2204. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2205. .vendor_name = "Miditech",
  2206. .product_name = "Midistart-2",
  2207. .ifnum = 0,
  2208. .type = QUIRK_MIDI_CME
  2209. }
  2210. },
  2211. /* Central Music devices */
  2212. {
  2213. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2214. USB_DEVICE(0x7104, 0x2202),
  2215. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2216. .ifnum = 0,
  2217. .type = QUIRK_MIDI_CME
  2218. }
  2219. },
  2220. /* Hauppauge HVR-950Q and HVR-850 */
  2221. {
  2222. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
  2223. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2224. USB_DEVICE_ID_MATCH_INT_CLASS |
  2225. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2226. .bInterfaceClass = USB_CLASS_AUDIO,
  2227. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2228. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2229. .vendor_name = "Hauppauge",
  2230. .product_name = "HVR-950Q",
  2231. .ifnum = QUIRK_ANY_INTERFACE,
  2232. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2233. }
  2234. },
  2235. {
  2236. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
  2237. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2238. USB_DEVICE_ID_MATCH_INT_CLASS |
  2239. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2240. .bInterfaceClass = USB_CLASS_AUDIO,
  2241. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2242. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2243. .vendor_name = "Hauppauge",
  2244. .product_name = "HVR-850",
  2245. .ifnum = QUIRK_ANY_INTERFACE,
  2246. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2247. }
  2248. },
  2249. {
  2250. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
  2251. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2252. USB_DEVICE_ID_MATCH_INT_CLASS |
  2253. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2254. .bInterfaceClass = USB_CLASS_AUDIO,
  2255. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2256. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2257. .vendor_name = "Hauppauge",
  2258. .product_name = "HVR-950Q",
  2259. .ifnum = QUIRK_ANY_INTERFACE,
  2260. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2261. }
  2262. },
  2263. {
  2264. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
  2265. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2266. USB_DEVICE_ID_MATCH_INT_CLASS |
  2267. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2268. .bInterfaceClass = USB_CLASS_AUDIO,
  2269. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2270. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2271. .vendor_name = "Hauppauge",
  2272. .product_name = "HVR-950Q",
  2273. .ifnum = QUIRK_ANY_INTERFACE,
  2274. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2275. }
  2276. },
  2277. {
  2278. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
  2279. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2280. USB_DEVICE_ID_MATCH_INT_CLASS |
  2281. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2282. .bInterfaceClass = USB_CLASS_AUDIO,
  2283. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2284. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2285. .vendor_name = "Hauppauge",
  2286. .product_name = "HVR-950Q",
  2287. .ifnum = QUIRK_ANY_INTERFACE,
  2288. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2289. }
  2290. },
  2291. {
  2292. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
  2293. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2294. USB_DEVICE_ID_MATCH_INT_CLASS |
  2295. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2296. .bInterfaceClass = USB_CLASS_AUDIO,
  2297. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2298. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2299. .vendor_name = "Hauppauge",
  2300. .product_name = "HVR-950Q",
  2301. .ifnum = QUIRK_ANY_INTERFACE,
  2302. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2303. }
  2304. },
  2305. {
  2306. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
  2307. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2308. USB_DEVICE_ID_MATCH_INT_CLASS |
  2309. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2310. .bInterfaceClass = USB_CLASS_AUDIO,
  2311. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2312. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2313. .vendor_name = "Hauppauge",
  2314. .product_name = "HVR-950Q",
  2315. .ifnum = QUIRK_ANY_INTERFACE,
  2316. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2317. }
  2318. },
  2319. {
  2320. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
  2321. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2322. USB_DEVICE_ID_MATCH_INT_CLASS |
  2323. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2324. .bInterfaceClass = USB_CLASS_AUDIO,
  2325. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2326. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2327. .vendor_name = "Hauppauge",
  2328. .product_name = "HVR-950Q",
  2329. .ifnum = QUIRK_ANY_INTERFACE,
  2330. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2331. }
  2332. },
  2333. {
  2334. USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
  2335. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2336. USB_DEVICE_ID_MATCH_INT_CLASS |
  2337. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2338. .bInterfaceClass = USB_CLASS_AUDIO,
  2339. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2340. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2341. .vendor_name = "Hauppauge",
  2342. .product_name = "HVR-950Q",
  2343. .ifnum = QUIRK_ANY_INTERFACE,
  2344. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2345. }
  2346. },
  2347. /* Digidesign Mbox */
  2348. {
  2349. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2350. USB_DEVICE(0x0dba, 0x1000),
  2351. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2352. .vendor_name = "Digidesign",
  2353. .product_name = "MBox",
  2354. .ifnum = QUIRK_ANY_INTERFACE,
  2355. .type = QUIRK_COMPOSITE,
  2356. .data = (const struct snd_usb_audio_quirk[]){
  2357. {
  2358. .ifnum = 0,
  2359. .type = QUIRK_IGNORE_INTERFACE,
  2360. },
  2361. {
  2362. .ifnum = 1,
  2363. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2364. .data = &(const struct audioformat) {
  2365. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2366. .channels = 2,
  2367. .iface = 1,
  2368. .altsetting = 1,
  2369. .altset_idx = 1,
  2370. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2371. .endpoint = 0x02,
  2372. .ep_attr = 0x01,
  2373. .maxpacksize = 0x130,
  2374. .rates = SNDRV_PCM_RATE_44100 |
  2375. SNDRV_PCM_RATE_48000,
  2376. .rate_min = 44100,
  2377. .rate_max = 48000,
  2378. .nr_rates = 2,
  2379. .rate_table = (unsigned int[]) {
  2380. 44100, 48000
  2381. }
  2382. }
  2383. },
  2384. {
  2385. .ifnum = -1
  2386. }
  2387. }
  2388. }
  2389. },
  2390. {
  2391. /*
  2392. * Some USB MIDI devices don't have an audio control interface,
  2393. * so we have to grab MIDI streaming interfaces here.
  2394. */
  2395. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  2396. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2397. .bInterfaceClass = USB_CLASS_AUDIO,
  2398. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  2399. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2400. .ifnum = QUIRK_ANY_INTERFACE,
  2401. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2402. }
  2403. },
  2404. #undef USB_DEVICE_VENDOR_SPEC