usbquirks.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463
  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. /*
  40. * Yamaha devices
  41. */
  42. #define YAMAHA_DEVICE(id, name) { \
  43. USB_DEVICE(0x0499, id), \
  44. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  45. .vendor_name = "Yamaha", \
  46. .product_name = name, \
  47. .ifnum = QUIRK_ANY_INTERFACE, \
  48. .type = QUIRK_MIDI_YAMAHA \
  49. } \
  50. }
  51. #define YAMAHA_INTERFACE(id, intf, name) { \
  52. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  53. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  54. .vendor_name = "Yamaha", \
  55. .product_name = name, \
  56. .ifnum = intf, \
  57. .type = QUIRK_MIDI_YAMAHA \
  58. } \
  59. }
  60. YAMAHA_DEVICE(0x1000, "UX256"),
  61. YAMAHA_DEVICE(0x1001, "MU1000"),
  62. YAMAHA_DEVICE(0x1002, "MU2000"),
  63. YAMAHA_DEVICE(0x1003, "MU500"),
  64. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  65. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  66. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  67. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  68. YAMAHA_DEVICE(0x1008, "UX96"),
  69. YAMAHA_DEVICE(0x1009, "UX16"),
  70. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  71. YAMAHA_DEVICE(0x100c, "UC-MX"),
  72. YAMAHA_DEVICE(0x100d, "UC-KX"),
  73. YAMAHA_DEVICE(0x100e, "S08"),
  74. YAMAHA_DEVICE(0x100f, "CLP-150"),
  75. YAMAHA_DEVICE(0x1010, "CLP-170"),
  76. YAMAHA_DEVICE(0x1011, "P-250"),
  77. YAMAHA_DEVICE(0x1012, "TYROS"),
  78. YAMAHA_DEVICE(0x1013, "PF-500"),
  79. YAMAHA_DEVICE(0x1014, "S90"),
  80. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  81. YAMAHA_DEVICE(0x1017, "CVP-204"),
  82. YAMAHA_DEVICE(0x1018, "CVP-206"),
  83. YAMAHA_DEVICE(0x1019, "CVP-208"),
  84. YAMAHA_DEVICE(0x101a, "CVP-210"),
  85. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  86. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  87. YAMAHA_DEVICE(0x101d, "CLP-175"),
  88. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  89. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  90. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  91. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  92. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  93. YAMAHA_DEVICE(0x1024, "CVP-301"),
  94. YAMAHA_DEVICE(0x1025, "CVP-303"),
  95. YAMAHA_DEVICE(0x1026, "CVP-305"),
  96. YAMAHA_DEVICE(0x1027, "CVP-307"),
  97. YAMAHA_DEVICE(0x1028, "CVP-309"),
  98. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  99. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  100. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  101. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  102. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  103. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  104. YAMAHA_DEVICE(0x1032, "DGX-305"),
  105. YAMAHA_DEVICE(0x1033, "DGX-505"),
  106. YAMAHA_DEVICE(0x1034, NULL),
  107. YAMAHA_DEVICE(0x1035, NULL),
  108. YAMAHA_DEVICE(0x1036, NULL),
  109. YAMAHA_DEVICE(0x1037, NULL),
  110. YAMAHA_DEVICE(0x1038, NULL),
  111. YAMAHA_DEVICE(0x1039, NULL),
  112. YAMAHA_DEVICE(0x103a, NULL),
  113. YAMAHA_DEVICE(0x103b, NULL),
  114. YAMAHA_DEVICE(0x103c, NULL),
  115. YAMAHA_DEVICE(0x103d, NULL),
  116. YAMAHA_DEVICE(0x103e, NULL),
  117. YAMAHA_DEVICE(0x103f, NULL),
  118. YAMAHA_DEVICE(0x1040, NULL),
  119. YAMAHA_DEVICE(0x1041, NULL),
  120. YAMAHA_DEVICE(0x2000, "DGP-7"),
  121. YAMAHA_DEVICE(0x2001, "DGP-5"),
  122. YAMAHA_DEVICE(0x2002, NULL),
  123. YAMAHA_DEVICE(0x5000, "CS1D"),
  124. YAMAHA_DEVICE(0x5001, "DSP1D"),
  125. YAMAHA_DEVICE(0x5002, "DME32"),
  126. YAMAHA_DEVICE(0x5003, "DM2000"),
  127. YAMAHA_DEVICE(0x5004, "02R96"),
  128. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  129. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  130. YAMAHA_DEVICE(0x5007, "DM1000"),
  131. YAMAHA_DEVICE(0x5008, "01V96"),
  132. YAMAHA_DEVICE(0x5009, "SPX2000"),
  133. YAMAHA_DEVICE(0x500a, "PM5D"),
  134. YAMAHA_DEVICE(0x500b, "DME64N"),
  135. YAMAHA_DEVICE(0x500c, "DME24N"),
  136. YAMAHA_DEVICE(0x500d, NULL),
  137. YAMAHA_DEVICE(0x500e, NULL),
  138. YAMAHA_DEVICE(0x7000, "DTX"),
  139. YAMAHA_DEVICE(0x7010, "UB99"),
  140. #undef YAMAHA_DEVICE
  141. #undef YAMAHA_INTERFACE
  142. /*
  143. * Roland/RolandED/Edirol/BOSS devices
  144. */
  145. {
  146. USB_DEVICE(0x0582, 0x0000),
  147. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  148. .vendor_name = "Roland",
  149. .product_name = "UA-100",
  150. .ifnum = QUIRK_ANY_INTERFACE,
  151. .type = QUIRK_COMPOSITE,
  152. .data = (const snd_usb_audio_quirk_t[]) {
  153. {
  154. .ifnum = 0,
  155. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  156. .data = & (const struct audioformat) {
  157. .format = SNDRV_PCM_FORMAT_S16_LE,
  158. .channels = 4,
  159. .iface = 0,
  160. .altsetting = 1,
  161. .altset_idx = 1,
  162. .attributes = 0,
  163. .endpoint = 0x01,
  164. .ep_attr = 0x09,
  165. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  166. .rate_min = 44100,
  167. .rate_max = 44100,
  168. }
  169. },
  170. {
  171. .ifnum = 1,
  172. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  173. .data = & (const struct audioformat) {
  174. .format = SNDRV_PCM_FORMAT_S16_LE,
  175. .channels = 2,
  176. .iface = 1,
  177. .altsetting = 1,
  178. .altset_idx = 1,
  179. .attributes = EP_CS_ATTR_FILL_MAX,
  180. .endpoint = 0x81,
  181. .ep_attr = 0x05,
  182. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  183. .rate_min = 44100,
  184. .rate_max = 44100,
  185. }
  186. },
  187. {
  188. .ifnum = 2,
  189. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  190. .data = & (const snd_usb_midi_endpoint_info_t) {
  191. .out_cables = 0x0007,
  192. .in_cables = 0x0007
  193. }
  194. },
  195. {
  196. .ifnum = -1
  197. }
  198. }
  199. }
  200. },
  201. {
  202. USB_DEVICE(0x0582, 0x0002),
  203. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  204. .vendor_name = "EDIROL",
  205. .product_name = "UM-4",
  206. .ifnum = QUIRK_ANY_INTERFACE,
  207. .type = QUIRK_COMPOSITE,
  208. .data = (const snd_usb_audio_quirk_t[]) {
  209. {
  210. .ifnum = 0,
  211. .type = QUIRK_IGNORE_INTERFACE
  212. },
  213. {
  214. .ifnum = 1,
  215. .type = QUIRK_IGNORE_INTERFACE
  216. },
  217. {
  218. .ifnum = 2,
  219. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  220. .data = & (const snd_usb_midi_endpoint_info_t) {
  221. .out_cables = 0x000f,
  222. .in_cables = 0x000f
  223. }
  224. },
  225. {
  226. .ifnum = -1
  227. }
  228. }
  229. }
  230. },
  231. {
  232. USB_DEVICE(0x0582, 0x0003),
  233. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  234. .vendor_name = "Roland",
  235. .product_name = "SC-8850",
  236. .ifnum = QUIRK_ANY_INTERFACE,
  237. .type = QUIRK_COMPOSITE,
  238. .data = (const snd_usb_audio_quirk_t[]) {
  239. {
  240. .ifnum = 0,
  241. .type = QUIRK_IGNORE_INTERFACE
  242. },
  243. {
  244. .ifnum = 1,
  245. .type = QUIRK_IGNORE_INTERFACE
  246. },
  247. {
  248. .ifnum = 2,
  249. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  250. .data = & (const snd_usb_midi_endpoint_info_t) {
  251. .out_cables = 0x003f,
  252. .in_cables = 0x003f
  253. }
  254. },
  255. {
  256. .ifnum = -1
  257. }
  258. }
  259. }
  260. },
  261. {
  262. USB_DEVICE(0x0582, 0x0004),
  263. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  264. .vendor_name = "Roland",
  265. .product_name = "U-8",
  266. .ifnum = QUIRK_ANY_INTERFACE,
  267. .type = QUIRK_COMPOSITE,
  268. .data = (const snd_usb_audio_quirk_t[]) {
  269. {
  270. .ifnum = 0,
  271. .type = QUIRK_IGNORE_INTERFACE
  272. },
  273. {
  274. .ifnum = 1,
  275. .type = QUIRK_IGNORE_INTERFACE
  276. },
  277. {
  278. .ifnum = 2,
  279. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  280. .data = & (const snd_usb_midi_endpoint_info_t) {
  281. .out_cables = 0x0005,
  282. .in_cables = 0x0005
  283. }
  284. },
  285. {
  286. .ifnum = -1
  287. }
  288. }
  289. }
  290. },
  291. {
  292. USB_DEVICE(0x0582, 0x0005),
  293. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  294. .vendor_name = "EDIROL",
  295. .product_name = "UM-2",
  296. .ifnum = QUIRK_ANY_INTERFACE,
  297. .type = QUIRK_COMPOSITE,
  298. .data = (const snd_usb_audio_quirk_t[]) {
  299. {
  300. .ifnum = 0,
  301. .type = QUIRK_IGNORE_INTERFACE
  302. },
  303. {
  304. .ifnum = 1,
  305. .type = QUIRK_IGNORE_INTERFACE
  306. },
  307. {
  308. .ifnum = 2,
  309. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  310. .data = & (const snd_usb_midi_endpoint_info_t) {
  311. .out_cables = 0x0003,
  312. .in_cables = 0x0003
  313. }
  314. },
  315. {
  316. .ifnum = -1
  317. }
  318. }
  319. }
  320. },
  321. {
  322. USB_DEVICE(0x0582, 0x0007),
  323. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  324. .vendor_name = "Roland",
  325. .product_name = "SC-8820",
  326. .ifnum = QUIRK_ANY_INTERFACE,
  327. .type = QUIRK_COMPOSITE,
  328. .data = (const snd_usb_audio_quirk_t[]) {
  329. {
  330. .ifnum = 0,
  331. .type = QUIRK_IGNORE_INTERFACE
  332. },
  333. {
  334. .ifnum = 1,
  335. .type = QUIRK_IGNORE_INTERFACE
  336. },
  337. {
  338. .ifnum = 2,
  339. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  340. .data = & (const snd_usb_midi_endpoint_info_t) {
  341. .out_cables = 0x0013,
  342. .in_cables = 0x0013
  343. }
  344. },
  345. {
  346. .ifnum = -1
  347. }
  348. }
  349. }
  350. },
  351. {
  352. USB_DEVICE(0x0582, 0x0008),
  353. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  354. .vendor_name = "Roland",
  355. .product_name = "PC-300",
  356. .ifnum = QUIRK_ANY_INTERFACE,
  357. .type = QUIRK_COMPOSITE,
  358. .data = (const snd_usb_audio_quirk_t[]) {
  359. {
  360. .ifnum = 0,
  361. .type = QUIRK_IGNORE_INTERFACE
  362. },
  363. {
  364. .ifnum = 1,
  365. .type = QUIRK_IGNORE_INTERFACE
  366. },
  367. {
  368. .ifnum = 2,
  369. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  370. .data = & (const snd_usb_midi_endpoint_info_t) {
  371. .out_cables = 0x0001,
  372. .in_cables = 0x0001
  373. }
  374. },
  375. {
  376. .ifnum = -1
  377. }
  378. }
  379. }
  380. },
  381. {
  382. USB_DEVICE(0x0582, 0x0009),
  383. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  384. .vendor_name = "EDIROL",
  385. .product_name = "UM-1",
  386. .ifnum = QUIRK_ANY_INTERFACE,
  387. .type = QUIRK_COMPOSITE,
  388. .data = (const snd_usb_audio_quirk_t[]) {
  389. {
  390. .ifnum = 0,
  391. .type = QUIRK_IGNORE_INTERFACE
  392. },
  393. {
  394. .ifnum = 1,
  395. .type = QUIRK_IGNORE_INTERFACE
  396. },
  397. {
  398. .ifnum = 2,
  399. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  400. .data = & (const snd_usb_midi_endpoint_info_t) {
  401. .out_cables = 0x0001,
  402. .in_cables = 0x0001
  403. }
  404. },
  405. {
  406. .ifnum = -1
  407. }
  408. }
  409. }
  410. },
  411. {
  412. USB_DEVICE(0x0582, 0x000b),
  413. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  414. .vendor_name = "Roland",
  415. .product_name = "SK-500",
  416. .ifnum = QUIRK_ANY_INTERFACE,
  417. .type = QUIRK_COMPOSITE,
  418. .data = (const snd_usb_audio_quirk_t[]) {
  419. {
  420. .ifnum = 0,
  421. .type = QUIRK_IGNORE_INTERFACE
  422. },
  423. {
  424. .ifnum = 1,
  425. .type = QUIRK_IGNORE_INTERFACE
  426. },
  427. {
  428. .ifnum = 2,
  429. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  430. .data = & (const snd_usb_midi_endpoint_info_t) {
  431. .out_cables = 0x0013,
  432. .in_cables = 0x0013
  433. }
  434. },
  435. {
  436. .ifnum = -1
  437. }
  438. }
  439. }
  440. },
  441. {
  442. /* thanks to Emiliano Grilli <emillo@libero.it>
  443. * for helping researching this data */
  444. USB_DEVICE(0x0582, 0x000c),
  445. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  446. .vendor_name = "Roland",
  447. .product_name = "SC-D70",
  448. .ifnum = QUIRK_ANY_INTERFACE,
  449. .type = QUIRK_COMPOSITE,
  450. .data = (const snd_usb_audio_quirk_t[]) {
  451. {
  452. .ifnum = 0,
  453. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  454. .data = & (const struct audioformat) {
  455. .format = SNDRV_PCM_FORMAT_S24_3LE,
  456. .channels = 2,
  457. .iface = 0,
  458. .altsetting = 1,
  459. .altset_idx = 1,
  460. .attributes = 0,
  461. .endpoint = 0x01,
  462. .ep_attr = 0x01,
  463. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  464. .rate_min = 44100,
  465. .rate_max = 44100,
  466. }
  467. },
  468. {
  469. .ifnum = 1,
  470. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  471. .data = & (const struct audioformat) {
  472. .format = SNDRV_PCM_FORMAT_S24_3LE,
  473. .channels = 2,
  474. .iface = 1,
  475. .altsetting = 1,
  476. .altset_idx = 1,
  477. .attributes = 0,
  478. .endpoint = 0x81,
  479. .ep_attr = 0x01,
  480. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  481. .rate_min = 44100,
  482. .rate_max = 44100,
  483. }
  484. },
  485. {
  486. .ifnum = 2,
  487. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  488. .data = & (const snd_usb_midi_endpoint_info_t) {
  489. .out_cables = 0x0007,
  490. .in_cables = 0x0007
  491. }
  492. },
  493. {
  494. .ifnum = -1
  495. }
  496. }
  497. }
  498. },
  499. { /*
  500. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  501. * If the advanced mode switch at the back of the unit is off, the
  502. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  503. * but offers only 16-bit PCM.
  504. * In advanced mode, the UA-5 will output S24_3LE samples (two
  505. * channels) at the rate indicated on the front switch, including
  506. * the 96kHz sample rate.
  507. */
  508. USB_DEVICE(0x0582, 0x0010),
  509. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  510. .vendor_name = "EDIROL",
  511. .product_name = "UA-5",
  512. .ifnum = QUIRK_ANY_INTERFACE,
  513. .type = QUIRK_COMPOSITE,
  514. .data = (const snd_usb_audio_quirk_t[]) {
  515. {
  516. .ifnum = 1,
  517. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  518. },
  519. {
  520. .ifnum = 2,
  521. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  522. },
  523. {
  524. .ifnum = -1
  525. }
  526. }
  527. }
  528. },
  529. {
  530. USB_DEVICE(0x0582, 0x0012),
  531. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  532. .vendor_name = "Roland",
  533. .product_name = "XV-5050",
  534. .ifnum = 0,
  535. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  536. .data = & (const snd_usb_midi_endpoint_info_t) {
  537. .out_cables = 0x0001,
  538. .in_cables = 0x0001
  539. }
  540. }
  541. },
  542. {
  543. USB_DEVICE(0x0582, 0x0014),
  544. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  545. .vendor_name = "EDIROL",
  546. .product_name = "UM-880",
  547. .ifnum = 0,
  548. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  549. .data = & (const snd_usb_midi_endpoint_info_t) {
  550. .out_cables = 0x01ff,
  551. .in_cables = 0x01ff
  552. }
  553. }
  554. },
  555. {
  556. USB_DEVICE(0x0582, 0x0016),
  557. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  558. .vendor_name = "EDIROL",
  559. .product_name = "SD-90",
  560. .ifnum = QUIRK_ANY_INTERFACE,
  561. .type = QUIRK_COMPOSITE,
  562. .data = (const snd_usb_audio_quirk_t[]) {
  563. {
  564. .ifnum = 0,
  565. .type = QUIRK_IGNORE_INTERFACE
  566. },
  567. {
  568. .ifnum = 1,
  569. .type = QUIRK_IGNORE_INTERFACE
  570. },
  571. {
  572. .ifnum = 2,
  573. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  574. .data = & (const snd_usb_midi_endpoint_info_t) {
  575. .out_cables = 0x000f,
  576. .in_cables = 0x000f
  577. }
  578. },
  579. {
  580. .ifnum = -1
  581. }
  582. }
  583. }
  584. },
  585. {
  586. USB_DEVICE(0x0582, 0x001b),
  587. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  588. .vendor_name = "Roland",
  589. .product_name = "MMP-2",
  590. .ifnum = QUIRK_ANY_INTERFACE,
  591. .type = QUIRK_COMPOSITE,
  592. .data = (const snd_usb_audio_quirk_t[]) {
  593. {
  594. .ifnum = 0,
  595. .type = QUIRK_IGNORE_INTERFACE
  596. },
  597. {
  598. .ifnum = 1,
  599. .type = QUIRK_IGNORE_INTERFACE
  600. },
  601. {
  602. .ifnum = 2,
  603. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  604. .data = & (const snd_usb_midi_endpoint_info_t) {
  605. .out_cables = 0x0001,
  606. .in_cables = 0x0001
  607. }
  608. },
  609. {
  610. .ifnum = -1
  611. }
  612. }
  613. }
  614. },
  615. {
  616. USB_DEVICE(0x0582, 0x001d),
  617. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  618. .vendor_name = "Roland",
  619. .product_name = "V-SYNTH",
  620. .ifnum = 0,
  621. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  622. .data = & (const snd_usb_midi_endpoint_info_t) {
  623. .out_cables = 0x0001,
  624. .in_cables = 0x0001
  625. }
  626. }
  627. },
  628. {
  629. USB_DEVICE(0x0582, 0x0023),
  630. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  631. .vendor_name = "EDIROL",
  632. .product_name = "UM-550",
  633. .ifnum = 0,
  634. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  635. .data = & (const snd_usb_midi_endpoint_info_t) {
  636. .out_cables = 0x003f,
  637. .in_cables = 0x003f
  638. }
  639. }
  640. },
  641. {
  642. /*
  643. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  644. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  645. * and no MIDI.
  646. */
  647. USB_DEVICE(0x0582, 0x0025),
  648. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  649. .vendor_name = "EDIROL",
  650. .product_name = "UA-20",
  651. .ifnum = QUIRK_ANY_INTERFACE,
  652. .type = QUIRK_COMPOSITE,
  653. .data = (const snd_usb_audio_quirk_t[]) {
  654. {
  655. .ifnum = 1,
  656. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  657. },
  658. {
  659. .ifnum = 2,
  660. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  661. },
  662. {
  663. .ifnum = 3,
  664. .type = QUIRK_MIDI_STANDARD_INTERFACE
  665. },
  666. {
  667. .ifnum = -1
  668. }
  669. }
  670. }
  671. },
  672. {
  673. USB_DEVICE(0x0582, 0x0027),
  674. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  675. .vendor_name = "EDIROL",
  676. .product_name = "SD-20",
  677. .ifnum = 0,
  678. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  679. .data = & (const snd_usb_midi_endpoint_info_t) {
  680. .out_cables = 0x0003,
  681. .in_cables = 0x0007
  682. }
  683. }
  684. },
  685. {
  686. USB_DEVICE(0x0582, 0x0029),
  687. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  688. .vendor_name = "EDIROL",
  689. .product_name = "SD-80",
  690. .ifnum = 0,
  691. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  692. .data = & (const snd_usb_midi_endpoint_info_t) {
  693. .out_cables = 0x000f,
  694. .in_cables = 0x000f
  695. }
  696. }
  697. },
  698. { /*
  699. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  700. * If the sample format switch is not in an advanced setting, the
  701. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  702. * but offers only 16-bit PCM and no MIDI.
  703. */
  704. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  705. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  706. .vendor_name = "EDIROL",
  707. .product_name = "UA-700",
  708. .ifnum = QUIRK_ANY_INTERFACE,
  709. .type = QUIRK_COMPOSITE,
  710. .data = (const snd_usb_audio_quirk_t[]) {
  711. {
  712. .ifnum = 1,
  713. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  714. },
  715. {
  716. .ifnum = 2,
  717. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  718. },
  719. {
  720. .ifnum = 3,
  721. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  722. },
  723. {
  724. .ifnum = -1
  725. }
  726. }
  727. }
  728. },
  729. {
  730. USB_DEVICE(0x0582, 0x002d),
  731. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  732. .vendor_name = "Roland",
  733. .product_name = "XV-2020",
  734. .ifnum = 0,
  735. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  736. .data = & (const snd_usb_midi_endpoint_info_t) {
  737. .out_cables = 0x0001,
  738. .in_cables = 0x0001
  739. }
  740. }
  741. },
  742. {
  743. USB_DEVICE(0x0582, 0x002f),
  744. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  745. .vendor_name = "Roland",
  746. .product_name = "VariOS",
  747. .ifnum = 0,
  748. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  749. .data = & (const snd_usb_midi_endpoint_info_t) {
  750. .out_cables = 0x0007,
  751. .in_cables = 0x0007
  752. }
  753. }
  754. },
  755. {
  756. USB_DEVICE(0x0582, 0x0033),
  757. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  758. .vendor_name = "EDIROL",
  759. .product_name = "PCR",
  760. .ifnum = 0,
  761. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  762. .data = & (const snd_usb_midi_endpoint_info_t) {
  763. .out_cables = 0x0003,
  764. .in_cables = 0x0007
  765. }
  766. }
  767. },
  768. {
  769. USB_DEVICE(0x0582, 0x0037),
  770. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  771. .vendor_name = "Roland",
  772. .product_name = "Digital Piano",
  773. .ifnum = 0,
  774. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  775. .data = & (const snd_usb_midi_endpoint_info_t) {
  776. .out_cables = 0x0001,
  777. .in_cables = 0x0001
  778. }
  779. }
  780. },
  781. {
  782. /*
  783. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  784. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  785. * and no MIDI.
  786. */
  787. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  788. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  789. .vendor_name = "BOSS",
  790. .product_name = "GS-10",
  791. .ifnum = QUIRK_ANY_INTERFACE,
  792. .type = QUIRK_COMPOSITE,
  793. .data = & (const snd_usb_audio_quirk_t[]) {
  794. {
  795. .ifnum = 1,
  796. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  797. },
  798. {
  799. .ifnum = 2,
  800. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  801. },
  802. {
  803. .ifnum = 3,
  804. .type = QUIRK_MIDI_STANDARD_INTERFACE
  805. },
  806. {
  807. .ifnum = -1
  808. }
  809. }
  810. }
  811. },
  812. {
  813. USB_DEVICE(0x0582, 0x0040),
  814. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  815. .vendor_name = "Roland",
  816. .product_name = "GI-20",
  817. .ifnum = 0,
  818. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  819. .data = & (const snd_usb_midi_endpoint_info_t) {
  820. .out_cables = 0x0001,
  821. .in_cables = 0x0001
  822. }
  823. }
  824. },
  825. {
  826. USB_DEVICE(0x0582, 0x0042),
  827. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  828. .vendor_name = "Roland",
  829. .product_name = "RS-70",
  830. .ifnum = 0,
  831. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  832. .data = & (const snd_usb_midi_endpoint_info_t) {
  833. .out_cables = 0x0001,
  834. .in_cables = 0x0001
  835. }
  836. }
  837. },
  838. {
  839. USB_DEVICE(0x0582, 0x0044),
  840. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  841. .vendor_name = "Roland",
  842. .product_name = "UA-1000",
  843. .ifnum = QUIRK_ANY_INTERFACE,
  844. .type = QUIRK_COMPOSITE,
  845. .data = (const snd_usb_audio_quirk_t[]) {
  846. {
  847. .ifnum = 1,
  848. .type = QUIRK_AUDIO_EDIROL_UA1000
  849. },
  850. {
  851. .ifnum = 2,
  852. .type = QUIRK_AUDIO_EDIROL_UA1000
  853. },
  854. {
  855. .ifnum = 3,
  856. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  857. .data = & (const snd_usb_midi_endpoint_info_t) {
  858. .out_cables = 0x0003,
  859. .in_cables = 0x0003
  860. }
  861. },
  862. {
  863. .ifnum = -1
  864. }
  865. }
  866. }
  867. },
  868. {
  869. USB_DEVICE(0x0582, 0x0048),
  870. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  871. .vendor_name = "EDIROL",
  872. .product_name = "UR-80",
  873. .ifnum = 0,
  874. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  875. .data = & (const snd_usb_midi_endpoint_info_t) {
  876. .out_cables = 0x0003,
  877. .in_cables = 0x0007
  878. }
  879. }
  880. },
  881. {
  882. USB_DEVICE(0x0582, 0x004d),
  883. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  884. .vendor_name = "EDIROL",
  885. .product_name = "PCR-A",
  886. .ifnum = 0,
  887. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  888. .data = & (const snd_usb_midi_endpoint_info_t) {
  889. .out_cables = 0x0003,
  890. .in_cables = 0x0007
  891. }
  892. }
  893. },
  894. {
  895. /*
  896. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  897. * is standard compliant, but has only 16-bit PCM.
  898. */
  899. USB_DEVICE(0x0582, 0x0050),
  900. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  901. .vendor_name = "EDIROL",
  902. .product_name = "UA-3FX",
  903. .ifnum = QUIRK_ANY_INTERFACE,
  904. .type = QUIRK_COMPOSITE,
  905. .data = (const snd_usb_audio_quirk_t[]) {
  906. {
  907. .ifnum = 1,
  908. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  909. },
  910. {
  911. .ifnum = 2,
  912. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  913. },
  914. {
  915. .ifnum = -1
  916. }
  917. }
  918. }
  919. },
  920. {
  921. USB_DEVICE(0x0582, 0x0052),
  922. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  923. .vendor_name = "EDIROL",
  924. .product_name = "UM-1SX",
  925. .ifnum = 0,
  926. .type = QUIRK_MIDI_STANDARD_INTERFACE
  927. }
  928. },
  929. {
  930. USB_DEVICE(0x0582, 0x0065),
  931. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  932. .vendor_name = "EDIROL",
  933. .product_name = "PCR-1",
  934. .ifnum = 0,
  935. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  936. .data = & (const snd_usb_midi_endpoint_info_t) {
  937. .out_cables = 0x0001,
  938. .in_cables = 0x0003
  939. }
  940. }
  941. },
  942. {
  943. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  944. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  945. .vendor_name = "Roland",
  946. .product_name = "SP-606",
  947. .ifnum = 3,
  948. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  949. .data = & (const snd_usb_midi_endpoint_info_t) {
  950. .out_cables = 0x0001,
  951. .in_cables = 0x0001
  952. }
  953. }
  954. },
  955. {
  956. USB_DEVICE(0x0582, 0x006d),
  957. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  958. .vendor_name = "Roland",
  959. .product_name = "FANTOM-X",
  960. .ifnum = 0,
  961. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  962. .data = & (const snd_usb_midi_endpoint_info_t) {
  963. .out_cables = 0x0001,
  964. .in_cables = 0x0001
  965. }
  966. }
  967. },
  968. { /*
  969. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  970. * If the switch is not in an advanced setting, the UA-25 has
  971. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  972. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  973. */
  974. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  975. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  976. .vendor_name = "EDIROL",
  977. .product_name = "UA-25",
  978. .ifnum = QUIRK_ANY_INTERFACE,
  979. .type = QUIRK_COMPOSITE,
  980. .data = (const snd_usb_audio_quirk_t[]) {
  981. {
  982. .ifnum = 0,
  983. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  984. },
  985. {
  986. .ifnum = 1,
  987. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  988. },
  989. {
  990. .ifnum = 2,
  991. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  992. },
  993. {
  994. .ifnum = -1
  995. }
  996. }
  997. }
  998. },
  999. {
  1000. USB_DEVICE(0x0582, 0x0075),
  1001. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1002. .vendor_name = "BOSS",
  1003. .product_name = "DR-880",
  1004. .ifnum = 0,
  1005. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1006. .data = & (const snd_usb_midi_endpoint_info_t) {
  1007. .out_cables = 0x0001,
  1008. .in_cables = 0x0001
  1009. }
  1010. }
  1011. },
  1012. {
  1013. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1014. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1015. .vendor_name = "Roland",
  1016. /* RD-700SX, RD-300SX */
  1017. .ifnum = 0,
  1018. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1019. .data = & (const snd_usb_midi_endpoint_info_t) {
  1020. .out_cables = 0x0003,
  1021. .in_cables = 0x0003
  1022. }
  1023. }
  1024. },
  1025. /* Guillemot devices */
  1026. {
  1027. /*
  1028. * This is for the "Windows Edition" where the external MIDI ports are
  1029. * the only MIDI ports; the control data is reported through HID
  1030. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1031. * compliant USB MIDI ports for external MIDI and controls.
  1032. */
  1033. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1034. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1035. .vendor_name = "Hercules",
  1036. .product_name = "DJ Console (WE)",
  1037. .ifnum = 4,
  1038. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1039. .data = & (const snd_usb_midi_endpoint_info_t) {
  1040. .out_cables = 0x0001,
  1041. .in_cables = 0x0001
  1042. }
  1043. }
  1044. },
  1045. /* Midiman/M-Audio devices */
  1046. {
  1047. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1048. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1049. .vendor_name = "M-Audio",
  1050. .product_name = "MidiSport 2x2",
  1051. .ifnum = QUIRK_ANY_INTERFACE,
  1052. .type = QUIRK_MIDI_MIDIMAN,
  1053. .data = & (const snd_usb_midi_endpoint_info_t) {
  1054. .out_cables = 0x0003,
  1055. .in_cables = 0x0003
  1056. }
  1057. }
  1058. },
  1059. {
  1060. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1061. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1062. .vendor_name = "M-Audio",
  1063. .product_name = "MidiSport 1x1",
  1064. .ifnum = QUIRK_ANY_INTERFACE,
  1065. .type = QUIRK_MIDI_MIDIMAN,
  1066. .data = & (const snd_usb_midi_endpoint_info_t) {
  1067. .out_cables = 0x0001,
  1068. .in_cables = 0x0001
  1069. }
  1070. }
  1071. },
  1072. {
  1073. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1074. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1075. .vendor_name = "M-Audio",
  1076. .product_name = "Keystation",
  1077. .ifnum = QUIRK_ANY_INTERFACE,
  1078. .type = QUIRK_MIDI_MIDIMAN,
  1079. .data = & (const snd_usb_midi_endpoint_info_t) {
  1080. .out_cables = 0x0001,
  1081. .in_cables = 0x0001
  1082. }
  1083. }
  1084. },
  1085. {
  1086. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1087. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1088. .vendor_name = "M-Audio",
  1089. .product_name = "MidiSport 4x4",
  1090. .ifnum = QUIRK_ANY_INTERFACE,
  1091. .type = QUIRK_MIDI_MIDIMAN,
  1092. .data = & (const snd_usb_midi_endpoint_info_t) {
  1093. .out_cables = 0x000f,
  1094. .in_cables = 0x000f
  1095. }
  1096. }
  1097. },
  1098. {
  1099. /*
  1100. * For hardware revision 1.05; in the later revisions (1.10 and
  1101. * 1.21), 0x1031 is the ID for the device without firmware.
  1102. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1103. */
  1104. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1105. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1106. .vendor_name = "M-Audio",
  1107. .product_name = "MidiSport 8x8",
  1108. .ifnum = QUIRK_ANY_INTERFACE,
  1109. .type = QUIRK_MIDI_MIDIMAN,
  1110. .data = & (const snd_usb_midi_endpoint_info_t) {
  1111. .out_cables = 0x01ff,
  1112. .in_cables = 0x01ff
  1113. }
  1114. }
  1115. },
  1116. {
  1117. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1118. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1119. .vendor_name = "M-Audio",
  1120. .product_name = "MidiSport 8x8",
  1121. .ifnum = QUIRK_ANY_INTERFACE,
  1122. .type = QUIRK_MIDI_MIDIMAN,
  1123. .data = & (const snd_usb_midi_endpoint_info_t) {
  1124. .out_cables = 0x01ff,
  1125. .in_cables = 0x01ff
  1126. }
  1127. }
  1128. },
  1129. {
  1130. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1131. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1132. .vendor_name = "M-Audio",
  1133. .product_name = "MidiSport 2x4",
  1134. .ifnum = QUIRK_ANY_INTERFACE,
  1135. .type = QUIRK_MIDI_MIDIMAN,
  1136. .data = & (const snd_usb_midi_endpoint_info_t) {
  1137. .out_cables = 0x000f,
  1138. .in_cables = 0x0003
  1139. }
  1140. }
  1141. },
  1142. {
  1143. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1144. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1145. .vendor_name = "M-Audio",
  1146. .product_name = "Quattro",
  1147. .ifnum = QUIRK_ANY_INTERFACE,
  1148. .type = QUIRK_COMPOSITE,
  1149. .data = & (const snd_usb_audio_quirk_t[]) {
  1150. /*
  1151. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1152. * and share endpoints with the other interfaces.
  1153. * Ignore them. The other interfaces can do 24 bits,
  1154. * but captured samples are big-endian (see usbaudio.c).
  1155. */
  1156. {
  1157. .ifnum = 0,
  1158. .type = QUIRK_IGNORE_INTERFACE
  1159. },
  1160. {
  1161. .ifnum = 1,
  1162. .type = QUIRK_IGNORE_INTERFACE
  1163. },
  1164. {
  1165. .ifnum = 2,
  1166. .type = QUIRK_IGNORE_INTERFACE
  1167. },
  1168. {
  1169. .ifnum = 3,
  1170. .type = QUIRK_IGNORE_INTERFACE
  1171. },
  1172. {
  1173. .ifnum = 4,
  1174. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1175. },
  1176. {
  1177. .ifnum = 5,
  1178. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1179. },
  1180. {
  1181. .ifnum = 6,
  1182. .type = QUIRK_IGNORE_INTERFACE
  1183. },
  1184. {
  1185. .ifnum = 7,
  1186. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1187. },
  1188. {
  1189. .ifnum = 8,
  1190. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1191. },
  1192. {
  1193. .ifnum = 9,
  1194. .type = QUIRK_MIDI_MIDIMAN,
  1195. .data = & (const snd_usb_midi_endpoint_info_t) {
  1196. .out_cables = 0x0001,
  1197. .in_cables = 0x0001
  1198. }
  1199. },
  1200. {
  1201. .ifnum = -1
  1202. }
  1203. }
  1204. }
  1205. },
  1206. {
  1207. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1208. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1209. .vendor_name = "M-Audio",
  1210. .product_name = "AudioPhile",
  1211. .ifnum = 6,
  1212. .type = QUIRK_MIDI_MIDIMAN,
  1213. .data = & (const snd_usb_midi_endpoint_info_t) {
  1214. .out_cables = 0x0001,
  1215. .in_cables = 0x0001
  1216. }
  1217. }
  1218. },
  1219. {
  1220. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1221. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1222. .vendor_name = "M-Audio",
  1223. .product_name = "Ozone",
  1224. .ifnum = 3,
  1225. .type = QUIRK_MIDI_MIDIMAN,
  1226. .data = & (const snd_usb_midi_endpoint_info_t) {
  1227. .out_cables = 0x0001,
  1228. .in_cables = 0x0001
  1229. }
  1230. }
  1231. },
  1232. {
  1233. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1234. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1235. .vendor_name = "M-Audio",
  1236. .product_name = "OmniStudio",
  1237. .ifnum = QUIRK_ANY_INTERFACE,
  1238. .type = QUIRK_COMPOSITE,
  1239. .data = & (const snd_usb_audio_quirk_t[]) {
  1240. {
  1241. .ifnum = 0,
  1242. .type = QUIRK_IGNORE_INTERFACE
  1243. },
  1244. {
  1245. .ifnum = 1,
  1246. .type = QUIRK_IGNORE_INTERFACE
  1247. },
  1248. {
  1249. .ifnum = 2,
  1250. .type = QUIRK_IGNORE_INTERFACE
  1251. },
  1252. {
  1253. .ifnum = 3,
  1254. .type = QUIRK_IGNORE_INTERFACE
  1255. },
  1256. {
  1257. .ifnum = 4,
  1258. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1259. },
  1260. {
  1261. .ifnum = 5,
  1262. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1263. },
  1264. {
  1265. .ifnum = 6,
  1266. .type = QUIRK_IGNORE_INTERFACE
  1267. },
  1268. {
  1269. .ifnum = 7,
  1270. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1271. },
  1272. {
  1273. .ifnum = 8,
  1274. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1275. },
  1276. {
  1277. .ifnum = 9,
  1278. .type = QUIRK_MIDI_MIDIMAN,
  1279. .data = & (const snd_usb_midi_endpoint_info_t) {
  1280. .out_cables = 0x0001,
  1281. .in_cables = 0x0001
  1282. }
  1283. },
  1284. {
  1285. .ifnum = -1
  1286. }
  1287. }
  1288. }
  1289. },
  1290. /* Mark of the Unicorn devices */
  1291. {
  1292. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1293. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1294. USB_DEVICE_ID_MATCH_PRODUCT |
  1295. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1296. .idVendor = 0x07fd,
  1297. .idProduct = 0x0001,
  1298. .bDeviceSubClass = 2,
  1299. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1300. .vendor_name = "MOTU",
  1301. .product_name = "Fastlane",
  1302. .ifnum = QUIRK_ANY_INTERFACE,
  1303. .type = QUIRK_COMPOSITE,
  1304. .data = & (const snd_usb_audio_quirk_t[]) {
  1305. {
  1306. .ifnum = 0,
  1307. .type = QUIRK_MIDI_RAW
  1308. },
  1309. {
  1310. .ifnum = 1,
  1311. .type = QUIRK_IGNORE_INTERFACE
  1312. },
  1313. {
  1314. .ifnum = -1
  1315. }
  1316. }
  1317. }
  1318. },
  1319. {
  1320. /* Creative Sound Blaster MP3+ */
  1321. USB_DEVICE(0x041e, 0x3010),
  1322. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1323. .vendor_name = "Creative Labs",
  1324. .product_name = "Sound Blaster MP3+",
  1325. .ifnum = QUIRK_NO_INTERFACE
  1326. }
  1327. },
  1328. /* Emagic devices */
  1329. {
  1330. USB_DEVICE(0x086a, 0x0001),
  1331. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1332. .vendor_name = "Emagic",
  1333. /* .product_name = "Unitor8", */
  1334. .ifnum = 2,
  1335. .type = QUIRK_MIDI_EMAGIC,
  1336. .data = & (const snd_usb_midi_endpoint_info_t) {
  1337. .out_cables = 0x80ff,
  1338. .in_cables = 0x80ff
  1339. }
  1340. }
  1341. },
  1342. {
  1343. USB_DEVICE(0x086a, 0x0002),
  1344. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1345. .vendor_name = "Emagic",
  1346. /* .product_name = "AMT8", */
  1347. .ifnum = 2,
  1348. .type = QUIRK_MIDI_EMAGIC,
  1349. .data = & (const snd_usb_midi_endpoint_info_t) {
  1350. .out_cables = 0x80ff,
  1351. .in_cables = 0x80ff
  1352. }
  1353. }
  1354. },
  1355. {
  1356. USB_DEVICE(0x086a, 0x0003),
  1357. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1358. .vendor_name = "Emagic",
  1359. /* .product_name = "MT4", */
  1360. .ifnum = 2,
  1361. .type = QUIRK_MIDI_EMAGIC,
  1362. .data = & (const snd_usb_midi_endpoint_info_t) {
  1363. .out_cables = 0x800f,
  1364. .in_cables = 0x8003
  1365. }
  1366. }
  1367. },
  1368. /* TerraTec devices */
  1369. {
  1370. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  1371. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1372. .vendor_name = "TerraTec",
  1373. .product_name = "PHASE 26",
  1374. .ifnum = 3,
  1375. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1376. }
  1377. },
  1378. {
  1379. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1380. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1381. .vendor_name = "TerraTec",
  1382. .product_name = "PHASE 26",
  1383. .ifnum = 3,
  1384. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1385. }
  1386. },
  1387. /* Novation EMS devices */
  1388. {
  1389. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1390. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1391. .vendor_name = "Novation",
  1392. .product_name = "ReMOTE Audio/XStation",
  1393. .ifnum = 4,
  1394. .type = QUIRK_MIDI_NOVATION
  1395. }
  1396. },
  1397. {
  1398. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1399. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1400. .vendor_name = "Novation",
  1401. .product_name = "Speedio",
  1402. .ifnum = 3,
  1403. .type = QUIRK_MIDI_NOVATION
  1404. }
  1405. },
  1406. {
  1407. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1408. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1409. .vendor_name = "Novation",
  1410. .product_name = "ReMOTE25",
  1411. .ifnum = 0,
  1412. .type = QUIRK_MIDI_NOVATION
  1413. }
  1414. },
  1415. {
  1416. USB_DEVICE(0x4752, 0x0011),
  1417. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1418. .vendor_name = "Miditech",
  1419. .product_name = "Midistart-2",
  1420. .ifnum = 0,
  1421. .type = QUIRK_MIDI_MIDITECH
  1422. }
  1423. },
  1424. {
  1425. USB_DEVICE(0x7104, 0x2202),
  1426. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1427. .vendor_name = "Miditech",
  1428. .product_name = "MidiStudio-2",
  1429. .ifnum = 0,
  1430. .type = QUIRK_MIDI_MIDITECH
  1431. }
  1432. },
  1433. {
  1434. /*
  1435. * Some USB MIDI devices don't have an audio control interface,
  1436. * so we have to grab MIDI streaming interfaces here.
  1437. */
  1438. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1439. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1440. .bInterfaceClass = USB_CLASS_AUDIO,
  1441. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1442. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1443. .ifnum = QUIRK_ANY_INTERFACE,
  1444. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1445. }
  1446. },
  1447. #undef USB_DEVICE_VENDOR_SPEC