usbquirks.h 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  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 struct snd_usb_audio_quirk) { \
  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 struct snd_usb_audio_quirk) { \
  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 struct snd_usb_audio_quirk) {
  148. .vendor_name = "Roland",
  149. .product_name = "UA-100",
  150. .ifnum = QUIRK_ANY_INTERFACE,
  151. .type = QUIRK_COMPOSITE,
  152. .data = (const struct snd_usb_audio_quirk[]) {
  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 struct snd_usb_midi_endpoint_info) {
  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 struct snd_usb_audio_quirk) {
  204. .vendor_name = "EDIROL",
  205. .product_name = "UM-4",
  206. .ifnum = QUIRK_ANY_INTERFACE,
  207. .type = QUIRK_COMPOSITE,
  208. .data = (const struct snd_usb_audio_quirk[]) {
  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 struct snd_usb_midi_endpoint_info) {
  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 struct snd_usb_audio_quirk) {
  234. .vendor_name = "Roland",
  235. .product_name = "SC-8850",
  236. .ifnum = QUIRK_ANY_INTERFACE,
  237. .type = QUIRK_COMPOSITE,
  238. .data = (const struct snd_usb_audio_quirk[]) {
  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 struct snd_usb_midi_endpoint_info) {
  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 struct snd_usb_audio_quirk) {
  264. .vendor_name = "Roland",
  265. .product_name = "U-8",
  266. .ifnum = QUIRK_ANY_INTERFACE,
  267. .type = QUIRK_COMPOSITE,
  268. .data = (const struct snd_usb_audio_quirk[]) {
  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 struct snd_usb_midi_endpoint_info) {
  281. .out_cables = 0x0005,
  282. .in_cables = 0x0005
  283. }
  284. },
  285. {
  286. .ifnum = -1
  287. }
  288. }
  289. }
  290. },
  291. {
  292. /* a later revision uses ID 0x0099 */
  293. USB_DEVICE(0x0582, 0x0005),
  294. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  295. .vendor_name = "EDIROL",
  296. .product_name = "UM-2",
  297. .ifnum = QUIRK_ANY_INTERFACE,
  298. .type = QUIRK_COMPOSITE,
  299. .data = (const struct snd_usb_audio_quirk[]) {
  300. {
  301. .ifnum = 0,
  302. .type = QUIRK_IGNORE_INTERFACE
  303. },
  304. {
  305. .ifnum = 1,
  306. .type = QUIRK_IGNORE_INTERFACE
  307. },
  308. {
  309. .ifnum = 2,
  310. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  311. .data = & (const struct snd_usb_midi_endpoint_info) {
  312. .out_cables = 0x0003,
  313. .in_cables = 0x0003
  314. }
  315. },
  316. {
  317. .ifnum = -1
  318. }
  319. }
  320. }
  321. },
  322. {
  323. USB_DEVICE(0x0582, 0x0007),
  324. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  325. .vendor_name = "Roland",
  326. .product_name = "SC-8820",
  327. .ifnum = QUIRK_ANY_INTERFACE,
  328. .type = QUIRK_COMPOSITE,
  329. .data = (const struct snd_usb_audio_quirk[]) {
  330. {
  331. .ifnum = 0,
  332. .type = QUIRK_IGNORE_INTERFACE
  333. },
  334. {
  335. .ifnum = 1,
  336. .type = QUIRK_IGNORE_INTERFACE
  337. },
  338. {
  339. .ifnum = 2,
  340. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  341. .data = & (const struct snd_usb_midi_endpoint_info) {
  342. .out_cables = 0x0013,
  343. .in_cables = 0x0013
  344. }
  345. },
  346. {
  347. .ifnum = -1
  348. }
  349. }
  350. }
  351. },
  352. {
  353. USB_DEVICE(0x0582, 0x0008),
  354. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  355. .vendor_name = "Roland",
  356. .product_name = "PC-300",
  357. .ifnum = QUIRK_ANY_INTERFACE,
  358. .type = QUIRK_COMPOSITE,
  359. .data = (const struct snd_usb_audio_quirk[]) {
  360. {
  361. .ifnum = 0,
  362. .type = QUIRK_IGNORE_INTERFACE
  363. },
  364. {
  365. .ifnum = 1,
  366. .type = QUIRK_IGNORE_INTERFACE
  367. },
  368. {
  369. .ifnum = 2,
  370. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  371. .data = & (const struct snd_usb_midi_endpoint_info) {
  372. .out_cables = 0x0001,
  373. .in_cables = 0x0001
  374. }
  375. },
  376. {
  377. .ifnum = -1
  378. }
  379. }
  380. }
  381. },
  382. {
  383. /* a later revision uses ID 0x009d */
  384. USB_DEVICE(0x0582, 0x0009),
  385. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  386. .vendor_name = "EDIROL",
  387. .product_name = "UM-1",
  388. .ifnum = QUIRK_ANY_INTERFACE,
  389. .type = QUIRK_COMPOSITE,
  390. .data = (const struct snd_usb_audio_quirk[]) {
  391. {
  392. .ifnum = 0,
  393. .type = QUIRK_IGNORE_INTERFACE
  394. },
  395. {
  396. .ifnum = 1,
  397. .type = QUIRK_IGNORE_INTERFACE
  398. },
  399. {
  400. .ifnum = 2,
  401. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  402. .data = & (const struct snd_usb_midi_endpoint_info) {
  403. .out_cables = 0x0001,
  404. .in_cables = 0x0001
  405. }
  406. },
  407. {
  408. .ifnum = -1
  409. }
  410. }
  411. }
  412. },
  413. {
  414. USB_DEVICE(0x0582, 0x000b),
  415. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  416. .vendor_name = "Roland",
  417. .product_name = "SK-500",
  418. .ifnum = QUIRK_ANY_INTERFACE,
  419. .type = QUIRK_COMPOSITE,
  420. .data = (const struct snd_usb_audio_quirk[]) {
  421. {
  422. .ifnum = 0,
  423. .type = QUIRK_IGNORE_INTERFACE
  424. },
  425. {
  426. .ifnum = 1,
  427. .type = QUIRK_IGNORE_INTERFACE
  428. },
  429. {
  430. .ifnum = 2,
  431. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  432. .data = & (const struct snd_usb_midi_endpoint_info) {
  433. .out_cables = 0x0013,
  434. .in_cables = 0x0013
  435. }
  436. },
  437. {
  438. .ifnum = -1
  439. }
  440. }
  441. }
  442. },
  443. {
  444. /* thanks to Emiliano Grilli <emillo@libero.it>
  445. * for helping researching this data */
  446. USB_DEVICE(0x0582, 0x000c),
  447. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  448. .vendor_name = "Roland",
  449. .product_name = "SC-D70",
  450. .ifnum = QUIRK_ANY_INTERFACE,
  451. .type = QUIRK_COMPOSITE,
  452. .data = (const struct snd_usb_audio_quirk[]) {
  453. {
  454. .ifnum = 0,
  455. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  456. .data = & (const struct audioformat) {
  457. .format = SNDRV_PCM_FORMAT_S24_3LE,
  458. .channels = 2,
  459. .iface = 0,
  460. .altsetting = 1,
  461. .altset_idx = 1,
  462. .attributes = 0,
  463. .endpoint = 0x01,
  464. .ep_attr = 0x01,
  465. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  466. .rate_min = 44100,
  467. .rate_max = 44100,
  468. }
  469. },
  470. {
  471. .ifnum = 1,
  472. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  473. .data = & (const struct audioformat) {
  474. .format = SNDRV_PCM_FORMAT_S24_3LE,
  475. .channels = 2,
  476. .iface = 1,
  477. .altsetting = 1,
  478. .altset_idx = 1,
  479. .attributes = 0,
  480. .endpoint = 0x81,
  481. .ep_attr = 0x01,
  482. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  483. .rate_min = 44100,
  484. .rate_max = 44100,
  485. }
  486. },
  487. {
  488. .ifnum = 2,
  489. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  490. .data = & (const struct snd_usb_midi_endpoint_info) {
  491. .out_cables = 0x0007,
  492. .in_cables = 0x0007
  493. }
  494. },
  495. {
  496. .ifnum = -1
  497. }
  498. }
  499. }
  500. },
  501. { /*
  502. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  503. * If the advanced mode switch at the back of the unit is off, the
  504. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  505. * but offers only 16-bit PCM.
  506. * In advanced mode, the UA-5 will output S24_3LE samples (two
  507. * channels) at the rate indicated on the front switch, including
  508. * the 96kHz sample rate.
  509. */
  510. USB_DEVICE(0x0582, 0x0010),
  511. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  512. .vendor_name = "EDIROL",
  513. .product_name = "UA-5",
  514. .ifnum = QUIRK_ANY_INTERFACE,
  515. .type = QUIRK_COMPOSITE,
  516. .data = (const struct snd_usb_audio_quirk[]) {
  517. {
  518. .ifnum = 1,
  519. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  520. },
  521. {
  522. .ifnum = 2,
  523. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  524. },
  525. {
  526. .ifnum = -1
  527. }
  528. }
  529. }
  530. },
  531. {
  532. /* has ID 0x0013 when not in "Advanced Driver" mode */
  533. USB_DEVICE(0x0582, 0x0012),
  534. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  535. .vendor_name = "Roland",
  536. .product_name = "XV-5050",
  537. .ifnum = 0,
  538. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  539. .data = & (const struct snd_usb_midi_endpoint_info) {
  540. .out_cables = 0x0001,
  541. .in_cables = 0x0001
  542. }
  543. }
  544. },
  545. {
  546. /* has ID 0x0015 when not in "Advanced Driver" mode */
  547. USB_DEVICE(0x0582, 0x0014),
  548. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  549. .vendor_name = "EDIROL",
  550. .product_name = "UM-880",
  551. .ifnum = 0,
  552. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  553. .data = & (const struct snd_usb_midi_endpoint_info) {
  554. .out_cables = 0x01ff,
  555. .in_cables = 0x01ff
  556. }
  557. }
  558. },
  559. {
  560. /* has ID 0x0017 when not in "Advanced Driver" mode */
  561. USB_DEVICE(0x0582, 0x0016),
  562. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  563. .vendor_name = "EDIROL",
  564. .product_name = "SD-90",
  565. .ifnum = QUIRK_ANY_INTERFACE,
  566. .type = QUIRK_COMPOSITE,
  567. .data = (const struct snd_usb_audio_quirk[]) {
  568. {
  569. .ifnum = 0,
  570. .type = QUIRK_IGNORE_INTERFACE
  571. },
  572. {
  573. .ifnum = 1,
  574. .type = QUIRK_IGNORE_INTERFACE
  575. },
  576. {
  577. .ifnum = 2,
  578. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  579. .data = & (const struct snd_usb_midi_endpoint_info) {
  580. .out_cables = 0x000f,
  581. .in_cables = 0x000f
  582. }
  583. },
  584. {
  585. .ifnum = -1
  586. }
  587. }
  588. }
  589. },
  590. {
  591. /* has ID 0x001c when not in "Advanced Driver" mode */
  592. USB_DEVICE(0x0582, 0x001b),
  593. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  594. .vendor_name = "Roland",
  595. .product_name = "MMP-2",
  596. .ifnum = QUIRK_ANY_INTERFACE,
  597. .type = QUIRK_COMPOSITE,
  598. .data = (const struct snd_usb_audio_quirk[]) {
  599. {
  600. .ifnum = 0,
  601. .type = QUIRK_IGNORE_INTERFACE
  602. },
  603. {
  604. .ifnum = 1,
  605. .type = QUIRK_IGNORE_INTERFACE
  606. },
  607. {
  608. .ifnum = 2,
  609. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  610. .data = & (const struct snd_usb_midi_endpoint_info) {
  611. .out_cables = 0x0001,
  612. .in_cables = 0x0001
  613. }
  614. },
  615. {
  616. .ifnum = -1
  617. }
  618. }
  619. }
  620. },
  621. {
  622. /* has ID 0x001e when not in "Advanced Driver" mode */
  623. USB_DEVICE(0x0582, 0x001d),
  624. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  625. .vendor_name = "Roland",
  626. .product_name = "V-SYNTH",
  627. .ifnum = 0,
  628. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  629. .data = & (const struct snd_usb_midi_endpoint_info) {
  630. .out_cables = 0x0001,
  631. .in_cables = 0x0001
  632. }
  633. }
  634. },
  635. {
  636. /* has ID 0x0024 when not in "Advanced Driver" mode */
  637. USB_DEVICE(0x0582, 0x0023),
  638. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  639. .vendor_name = "EDIROL",
  640. .product_name = "UM-550",
  641. .ifnum = 0,
  642. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  643. .data = & (const struct snd_usb_midi_endpoint_info) {
  644. .out_cables = 0x003f,
  645. .in_cables = 0x003f
  646. }
  647. }
  648. },
  649. {
  650. /*
  651. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  652. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  653. * and no MIDI.
  654. */
  655. USB_DEVICE(0x0582, 0x0025),
  656. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  657. .vendor_name = "EDIROL",
  658. .product_name = "UA-20",
  659. .ifnum = QUIRK_ANY_INTERFACE,
  660. .type = QUIRK_COMPOSITE,
  661. .data = (const struct snd_usb_audio_quirk[]) {
  662. {
  663. .ifnum = 0,
  664. .type = QUIRK_IGNORE_INTERFACE
  665. },
  666. {
  667. .ifnum = 1,
  668. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  669. .data = & (const struct audioformat) {
  670. .format = SNDRV_PCM_FORMAT_S24_3LE,
  671. .channels = 2,
  672. .iface = 1,
  673. .altsetting = 1,
  674. .altset_idx = 1,
  675. .attributes = 0,
  676. .endpoint = 0x01,
  677. .ep_attr = 0x01,
  678. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  679. .rate_min = 44100,
  680. .rate_max = 44100,
  681. }
  682. },
  683. {
  684. .ifnum = 2,
  685. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  686. .data = & (const struct audioformat) {
  687. .format = SNDRV_PCM_FORMAT_S24_3LE,
  688. .channels = 2,
  689. .iface = 2,
  690. .altsetting = 1,
  691. .altset_idx = 1,
  692. .attributes = 0,
  693. .endpoint = 0x82,
  694. .ep_attr = 0x01,
  695. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  696. .rate_min = 44100,
  697. .rate_max = 44100,
  698. }
  699. },
  700. {
  701. .ifnum = 3,
  702. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  703. .data = & (const struct snd_usb_midi_endpoint_info) {
  704. .out_cables = 0x0001,
  705. .in_cables = 0x0001
  706. }
  707. },
  708. {
  709. .ifnum = -1
  710. }
  711. }
  712. }
  713. },
  714. {
  715. /* has ID 0x0028 when not in "Advanced Driver" mode */
  716. USB_DEVICE(0x0582, 0x0027),
  717. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  718. .vendor_name = "EDIROL",
  719. .product_name = "SD-20",
  720. .ifnum = 0,
  721. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  722. .data = & (const struct snd_usb_midi_endpoint_info) {
  723. .out_cables = 0x0003,
  724. .in_cables = 0x0007
  725. }
  726. }
  727. },
  728. {
  729. /* has ID 0x002a when not in "Advanced Driver" mode */
  730. USB_DEVICE(0x0582, 0x0029),
  731. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  732. .vendor_name = "EDIROL",
  733. .product_name = "SD-80",
  734. .ifnum = 0,
  735. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  736. .data = & (const struct snd_usb_midi_endpoint_info) {
  737. .out_cables = 0x000f,
  738. .in_cables = 0x000f
  739. }
  740. }
  741. },
  742. { /*
  743. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  744. * If the sample format switch is not in an advanced setting, the
  745. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  746. * but offers only 16-bit PCM and no MIDI.
  747. */
  748. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  749. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  750. .vendor_name = "EDIROL",
  751. .product_name = "UA-700",
  752. .ifnum = QUIRK_ANY_INTERFACE,
  753. .type = QUIRK_COMPOSITE,
  754. .data = (const struct snd_usb_audio_quirk[]) {
  755. {
  756. .ifnum = 1,
  757. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  758. },
  759. {
  760. .ifnum = 2,
  761. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  762. },
  763. {
  764. .ifnum = 3,
  765. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  766. },
  767. {
  768. .ifnum = -1
  769. }
  770. }
  771. }
  772. },
  773. {
  774. /* has ID 0x002e when not in "Advanced Driver" mode */
  775. USB_DEVICE(0x0582, 0x002d),
  776. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  777. .vendor_name = "Roland",
  778. .product_name = "XV-2020",
  779. .ifnum = 0,
  780. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  781. .data = & (const struct snd_usb_midi_endpoint_info) {
  782. .out_cables = 0x0001,
  783. .in_cables = 0x0001
  784. }
  785. }
  786. },
  787. {
  788. /* has ID 0x0030 when not in "Advanced Driver" mode */
  789. USB_DEVICE(0x0582, 0x002f),
  790. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  791. .vendor_name = "Roland",
  792. .product_name = "VariOS",
  793. .ifnum = 0,
  794. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  795. .data = & (const struct snd_usb_midi_endpoint_info) {
  796. .out_cables = 0x0007,
  797. .in_cables = 0x0007
  798. }
  799. }
  800. },
  801. {
  802. /* has ID 0x0034 when not in "Advanced Driver" mode */
  803. USB_DEVICE(0x0582, 0x0033),
  804. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  805. .vendor_name = "EDIROL",
  806. .product_name = "PCR",
  807. .ifnum = 0,
  808. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  809. .data = & (const struct snd_usb_midi_endpoint_info) {
  810. .out_cables = 0x0003,
  811. .in_cables = 0x0007
  812. }
  813. }
  814. },
  815. /* TODO: add Roland M-1000 support */
  816. {
  817. /*
  818. * Has ID 0x0038 when not in "Advanced Driver" mode;
  819. * later revisions use IDs 0x0054 and 0x00a2.
  820. */
  821. USB_DEVICE(0x0582, 0x0037),
  822. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  823. .vendor_name = "Roland",
  824. .product_name = "Digital Piano",
  825. .ifnum = 0,
  826. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  827. .data = & (const struct snd_usb_midi_endpoint_info) {
  828. .out_cables = 0x0001,
  829. .in_cables = 0x0001
  830. }
  831. }
  832. },
  833. {
  834. /*
  835. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  836. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  837. * and no MIDI.
  838. */
  839. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  840. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  841. .vendor_name = "BOSS",
  842. .product_name = "GS-10",
  843. .ifnum = QUIRK_ANY_INTERFACE,
  844. .type = QUIRK_COMPOSITE,
  845. .data = & (const struct snd_usb_audio_quirk[]) {
  846. {
  847. .ifnum = 1,
  848. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  849. },
  850. {
  851. .ifnum = 2,
  852. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  853. },
  854. {
  855. .ifnum = 3,
  856. .type = QUIRK_MIDI_STANDARD_INTERFACE
  857. },
  858. {
  859. .ifnum = -1
  860. }
  861. }
  862. }
  863. },
  864. {
  865. /* has ID 0x0041 when not in "Advanced Driver" mode */
  866. USB_DEVICE(0x0582, 0x0040),
  867. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  868. .vendor_name = "Roland",
  869. .product_name = "GI-20",
  870. .ifnum = 0,
  871. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  872. .data = & (const struct snd_usb_midi_endpoint_info) {
  873. .out_cables = 0x0001,
  874. .in_cables = 0x0001
  875. }
  876. }
  877. },
  878. {
  879. /* has ID 0x0043 when not in "Advanced Driver" mode */
  880. USB_DEVICE(0x0582, 0x0042),
  881. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  882. .vendor_name = "Roland",
  883. .product_name = "RS-70",
  884. .ifnum = 0,
  885. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  886. .data = & (const struct snd_usb_midi_endpoint_info) {
  887. .out_cables = 0x0001,
  888. .in_cables = 0x0001
  889. }
  890. }
  891. },
  892. {
  893. USB_DEVICE(0x0582, 0x0044),
  894. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  895. .vendor_name = "Roland",
  896. .product_name = "UA-1000",
  897. .ifnum = QUIRK_ANY_INTERFACE,
  898. .type = QUIRK_COMPOSITE,
  899. .data = (const struct snd_usb_audio_quirk[]) {
  900. {
  901. .ifnum = 1,
  902. .type = QUIRK_AUDIO_EDIROL_UA1000
  903. },
  904. {
  905. .ifnum = 2,
  906. .type = QUIRK_AUDIO_EDIROL_UA1000
  907. },
  908. {
  909. .ifnum = 3,
  910. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  911. .data = & (const struct snd_usb_midi_endpoint_info) {
  912. .out_cables = 0x0003,
  913. .in_cables = 0x0003
  914. }
  915. },
  916. {
  917. .ifnum = -1
  918. }
  919. }
  920. }
  921. },
  922. {
  923. /* has ID 0x004a when not in "Advanced Driver" mode */
  924. USB_DEVICE(0x0582, 0x0048),
  925. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  926. .vendor_name = "EDIROL",
  927. .product_name = "UR-80",
  928. .ifnum = 0,
  929. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  930. .data = & (const struct snd_usb_midi_endpoint_info) {
  931. .out_cables = 0x0003,
  932. .in_cables = 0x0007
  933. }
  934. }
  935. },
  936. /* TODO: add Edirol M-100FX support */
  937. {
  938. /* has ID 0x004f when not in "Advanced Driver" mode */
  939. USB_DEVICE(0x0582, 0x004d),
  940. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  941. .vendor_name = "EDIROL",
  942. .product_name = "PCR-A",
  943. .ifnum = 0,
  944. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  945. .data = & (const struct snd_usb_midi_endpoint_info) {
  946. .out_cables = 0x0003,
  947. .in_cables = 0x0007
  948. }
  949. }
  950. },
  951. {
  952. /*
  953. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  954. * is standard compliant, but has only 16-bit PCM.
  955. */
  956. USB_DEVICE(0x0582, 0x0050),
  957. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  958. .vendor_name = "EDIROL",
  959. .product_name = "UA-3FX",
  960. .ifnum = QUIRK_ANY_INTERFACE,
  961. .type = QUIRK_COMPOSITE,
  962. .data = (const struct snd_usb_audio_quirk[]) {
  963. {
  964. .ifnum = 1,
  965. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  966. },
  967. {
  968. .ifnum = 2,
  969. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  970. },
  971. {
  972. .ifnum = -1
  973. }
  974. }
  975. }
  976. },
  977. {
  978. USB_DEVICE(0x0582, 0x0052),
  979. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  980. .vendor_name = "EDIROL",
  981. .product_name = "UM-1SX",
  982. .ifnum = 0,
  983. .type = QUIRK_MIDI_STANDARD_INTERFACE
  984. }
  985. },
  986. /* TODO: add Roland EXR support */
  987. {
  988. /* has ID 0x0067 when not in "Advanced Driver" mode */
  989. USB_DEVICE(0x0582, 0x0065),
  990. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  991. .vendor_name = "EDIROL",
  992. .product_name = "PCR-1",
  993. .ifnum = 0,
  994. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  995. .data = & (const struct snd_usb_midi_endpoint_info) {
  996. .out_cables = 0x0001,
  997. .in_cables = 0x0003
  998. }
  999. }
  1000. },
  1001. {
  1002. /* has ID 0x006b when not in "Advanced Driver" mode */
  1003. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  1004. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1005. .vendor_name = "Roland",
  1006. .product_name = "SP-606",
  1007. .ifnum = 3,
  1008. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1009. .data = & (const struct snd_usb_midi_endpoint_info) {
  1010. .out_cables = 0x0001,
  1011. .in_cables = 0x0001
  1012. }
  1013. }
  1014. },
  1015. {
  1016. /* has ID 0x006e when not in "Advanced Driver" mode */
  1017. USB_DEVICE(0x0582, 0x006d),
  1018. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1019. .vendor_name = "Roland",
  1020. .product_name = "FANTOM-X",
  1021. .ifnum = 0,
  1022. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1023. .data = & (const struct snd_usb_midi_endpoint_info) {
  1024. .out_cables = 0x0001,
  1025. .in_cables = 0x0001
  1026. }
  1027. }
  1028. },
  1029. { /*
  1030. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1031. * If the switch is not in an advanced setting, the UA-25 has
  1032. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1033. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1034. */
  1035. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1036. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1037. .vendor_name = "EDIROL",
  1038. .product_name = "UA-25",
  1039. .ifnum = QUIRK_ANY_INTERFACE,
  1040. .type = QUIRK_COMPOSITE,
  1041. .data = (const struct snd_usb_audio_quirk[]) {
  1042. {
  1043. .ifnum = 0,
  1044. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1045. },
  1046. {
  1047. .ifnum = 1,
  1048. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1049. },
  1050. {
  1051. .ifnum = 2,
  1052. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1053. },
  1054. {
  1055. .ifnum = -1
  1056. }
  1057. }
  1058. }
  1059. },
  1060. {
  1061. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1062. USB_DEVICE(0x0582, 0x0075),
  1063. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1064. .vendor_name = "BOSS",
  1065. .product_name = "DR-880",
  1066. .ifnum = 0,
  1067. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1068. .data = & (const struct snd_usb_midi_endpoint_info) {
  1069. .out_cables = 0x0001,
  1070. .in_cables = 0x0001
  1071. }
  1072. }
  1073. },
  1074. {
  1075. /* has ID 0x007b when not in "Advanced Driver" mode */
  1076. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1077. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1078. .vendor_name = "Roland",
  1079. /* "RD" or "RD-700SX"? */
  1080. .ifnum = 0,
  1081. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1082. .data = & (const struct snd_usb_midi_endpoint_info) {
  1083. .out_cables = 0x0003,
  1084. .in_cables = 0x0003
  1085. }
  1086. }
  1087. },
  1088. /* Guillemot devices */
  1089. {
  1090. /*
  1091. * This is for the "Windows Edition" where the external MIDI ports are
  1092. * the only MIDI ports; the control data is reported through HID
  1093. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1094. * compliant USB MIDI ports for external MIDI and controls.
  1095. */
  1096. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1097. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1098. .vendor_name = "Hercules",
  1099. .product_name = "DJ Console (WE)",
  1100. .ifnum = 4,
  1101. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1102. .data = & (const struct snd_usb_midi_endpoint_info) {
  1103. .out_cables = 0x0001,
  1104. .in_cables = 0x0001
  1105. }
  1106. }
  1107. },
  1108. /* TODO: add Edirol UA-101 support */
  1109. /* TODO: add Roland G-70 support */
  1110. /* TODO: add Roland V-SYNTH XT support */
  1111. /* TODO: add BOSS GT-PRO support */
  1112. /* TODO: add Edirol PC-50 support */
  1113. /* TODO: add Edirol PC-80 support */
  1114. /* TODO: add Edirol UA-1EX support */
  1115. /* TODO: add Edirol UM-3 support */
  1116. /* TODO: add Edirol MD-P1 support */
  1117. /* Midiman/M-Audio devices */
  1118. {
  1119. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1120. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1121. .vendor_name = "M-Audio",
  1122. .product_name = "MidiSport 2x2",
  1123. .ifnum = QUIRK_ANY_INTERFACE,
  1124. .type = QUIRK_MIDI_MIDIMAN,
  1125. .data = & (const struct snd_usb_midi_endpoint_info) {
  1126. .out_cables = 0x0003,
  1127. .in_cables = 0x0003
  1128. }
  1129. }
  1130. },
  1131. {
  1132. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1133. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1134. .vendor_name = "M-Audio",
  1135. .product_name = "MidiSport 1x1",
  1136. .ifnum = QUIRK_ANY_INTERFACE,
  1137. .type = QUIRK_MIDI_MIDIMAN,
  1138. .data = & (const struct snd_usb_midi_endpoint_info) {
  1139. .out_cables = 0x0001,
  1140. .in_cables = 0x0001
  1141. }
  1142. }
  1143. },
  1144. {
  1145. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1146. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1147. .vendor_name = "M-Audio",
  1148. .product_name = "Keystation",
  1149. .ifnum = QUIRK_ANY_INTERFACE,
  1150. .type = QUIRK_MIDI_MIDIMAN,
  1151. .data = & (const struct snd_usb_midi_endpoint_info) {
  1152. .out_cables = 0x0001,
  1153. .in_cables = 0x0001
  1154. }
  1155. }
  1156. },
  1157. {
  1158. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1159. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1160. .vendor_name = "M-Audio",
  1161. .product_name = "MidiSport 4x4",
  1162. .ifnum = QUIRK_ANY_INTERFACE,
  1163. .type = QUIRK_MIDI_MIDIMAN,
  1164. .data = & (const struct snd_usb_midi_endpoint_info) {
  1165. .out_cables = 0x000f,
  1166. .in_cables = 0x000f
  1167. }
  1168. }
  1169. },
  1170. {
  1171. /*
  1172. * For hardware revision 1.05; in the later revisions (1.10 and
  1173. * 1.21), 0x1031 is the ID for the device without firmware.
  1174. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1175. */
  1176. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1177. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1178. .vendor_name = "M-Audio",
  1179. .product_name = "MidiSport 8x8",
  1180. .ifnum = QUIRK_ANY_INTERFACE,
  1181. .type = QUIRK_MIDI_MIDIMAN,
  1182. .data = & (const struct snd_usb_midi_endpoint_info) {
  1183. .out_cables = 0x01ff,
  1184. .in_cables = 0x01ff
  1185. }
  1186. }
  1187. },
  1188. {
  1189. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1190. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1191. .vendor_name = "M-Audio",
  1192. .product_name = "MidiSport 8x8",
  1193. .ifnum = QUIRK_ANY_INTERFACE,
  1194. .type = QUIRK_MIDI_MIDIMAN,
  1195. .data = & (const struct snd_usb_midi_endpoint_info) {
  1196. .out_cables = 0x01ff,
  1197. .in_cables = 0x01ff
  1198. }
  1199. }
  1200. },
  1201. {
  1202. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1203. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1204. .vendor_name = "M-Audio",
  1205. .product_name = "MidiSport 2x4",
  1206. .ifnum = QUIRK_ANY_INTERFACE,
  1207. .type = QUIRK_MIDI_MIDIMAN,
  1208. .data = & (const struct snd_usb_midi_endpoint_info) {
  1209. .out_cables = 0x000f,
  1210. .in_cables = 0x0003
  1211. }
  1212. }
  1213. },
  1214. {
  1215. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1216. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1217. .vendor_name = "M-Audio",
  1218. .product_name = "Quattro",
  1219. .ifnum = QUIRK_ANY_INTERFACE,
  1220. .type = QUIRK_COMPOSITE,
  1221. .data = & (const struct snd_usb_audio_quirk[]) {
  1222. /*
  1223. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1224. * and share endpoints with the other interfaces.
  1225. * Ignore them. The other interfaces can do 24 bits,
  1226. * but captured samples are big-endian (see usbaudio.c).
  1227. */
  1228. {
  1229. .ifnum = 0,
  1230. .type = QUIRK_IGNORE_INTERFACE
  1231. },
  1232. {
  1233. .ifnum = 1,
  1234. .type = QUIRK_IGNORE_INTERFACE
  1235. },
  1236. {
  1237. .ifnum = 2,
  1238. .type = QUIRK_IGNORE_INTERFACE
  1239. },
  1240. {
  1241. .ifnum = 3,
  1242. .type = QUIRK_IGNORE_INTERFACE
  1243. },
  1244. {
  1245. .ifnum = 4,
  1246. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1247. },
  1248. {
  1249. .ifnum = 5,
  1250. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1251. },
  1252. {
  1253. .ifnum = 6,
  1254. .type = QUIRK_IGNORE_INTERFACE
  1255. },
  1256. {
  1257. .ifnum = 7,
  1258. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1259. },
  1260. {
  1261. .ifnum = 8,
  1262. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1263. },
  1264. {
  1265. .ifnum = 9,
  1266. .type = QUIRK_MIDI_MIDIMAN,
  1267. .data = & (const struct snd_usb_midi_endpoint_info) {
  1268. .out_cables = 0x0001,
  1269. .in_cables = 0x0001
  1270. }
  1271. },
  1272. {
  1273. .ifnum = -1
  1274. }
  1275. }
  1276. }
  1277. },
  1278. {
  1279. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1280. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1281. .vendor_name = "M-Audio",
  1282. .product_name = "AudioPhile",
  1283. .ifnum = 6,
  1284. .type = QUIRK_MIDI_MIDIMAN,
  1285. .data = & (const struct snd_usb_midi_endpoint_info) {
  1286. .out_cables = 0x0001,
  1287. .in_cables = 0x0001
  1288. }
  1289. }
  1290. },
  1291. {
  1292. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1293. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1294. .vendor_name = "M-Audio",
  1295. .product_name = "Ozone",
  1296. .ifnum = 3,
  1297. .type = QUIRK_MIDI_MIDIMAN,
  1298. .data = & (const struct snd_usb_midi_endpoint_info) {
  1299. .out_cables = 0x0001,
  1300. .in_cables = 0x0001
  1301. }
  1302. }
  1303. },
  1304. {
  1305. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1306. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1307. .vendor_name = "M-Audio",
  1308. .product_name = "OmniStudio",
  1309. .ifnum = QUIRK_ANY_INTERFACE,
  1310. .type = QUIRK_COMPOSITE,
  1311. .data = & (const struct snd_usb_audio_quirk[]) {
  1312. {
  1313. .ifnum = 0,
  1314. .type = QUIRK_IGNORE_INTERFACE
  1315. },
  1316. {
  1317. .ifnum = 1,
  1318. .type = QUIRK_IGNORE_INTERFACE
  1319. },
  1320. {
  1321. .ifnum = 2,
  1322. .type = QUIRK_IGNORE_INTERFACE
  1323. },
  1324. {
  1325. .ifnum = 3,
  1326. .type = QUIRK_IGNORE_INTERFACE
  1327. },
  1328. {
  1329. .ifnum = 4,
  1330. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1331. },
  1332. {
  1333. .ifnum = 5,
  1334. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1335. },
  1336. {
  1337. .ifnum = 6,
  1338. .type = QUIRK_IGNORE_INTERFACE
  1339. },
  1340. {
  1341. .ifnum = 7,
  1342. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1343. },
  1344. {
  1345. .ifnum = 8,
  1346. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1347. },
  1348. {
  1349. .ifnum = 9,
  1350. .type = QUIRK_MIDI_MIDIMAN,
  1351. .data = & (const struct snd_usb_midi_endpoint_info) {
  1352. .out_cables = 0x0001,
  1353. .in_cables = 0x0001
  1354. }
  1355. },
  1356. {
  1357. .ifnum = -1
  1358. }
  1359. }
  1360. }
  1361. },
  1362. /* Mark of the Unicorn devices */
  1363. {
  1364. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1365. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1366. USB_DEVICE_ID_MATCH_PRODUCT |
  1367. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1368. .idVendor = 0x07fd,
  1369. .idProduct = 0x0001,
  1370. .bDeviceSubClass = 2,
  1371. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1372. .vendor_name = "MOTU",
  1373. .product_name = "Fastlane",
  1374. .ifnum = QUIRK_ANY_INTERFACE,
  1375. .type = QUIRK_COMPOSITE,
  1376. .data = & (const struct snd_usb_audio_quirk[]) {
  1377. {
  1378. .ifnum = 0,
  1379. .type = QUIRK_MIDI_RAW
  1380. },
  1381. {
  1382. .ifnum = 1,
  1383. .type = QUIRK_IGNORE_INTERFACE
  1384. },
  1385. {
  1386. .ifnum = -1
  1387. }
  1388. }
  1389. }
  1390. },
  1391. {
  1392. /* Creative Sound Blaster MP3+ */
  1393. USB_DEVICE(0x041e, 0x3010),
  1394. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1395. .vendor_name = "Creative Labs",
  1396. .product_name = "Sound Blaster MP3+",
  1397. .ifnum = QUIRK_NO_INTERFACE
  1398. }
  1399. },
  1400. /* Emagic devices */
  1401. {
  1402. USB_DEVICE(0x086a, 0x0001),
  1403. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1404. .vendor_name = "Emagic",
  1405. /* .product_name = "Unitor8", */
  1406. .ifnum = 2,
  1407. .type = QUIRK_MIDI_EMAGIC,
  1408. .data = & (const struct snd_usb_midi_endpoint_info) {
  1409. .out_cables = 0x80ff,
  1410. .in_cables = 0x80ff
  1411. }
  1412. }
  1413. },
  1414. {
  1415. USB_DEVICE(0x086a, 0x0002),
  1416. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1417. .vendor_name = "Emagic",
  1418. /* .product_name = "AMT8", */
  1419. .ifnum = 2,
  1420. .type = QUIRK_MIDI_EMAGIC,
  1421. .data = & (const struct snd_usb_midi_endpoint_info) {
  1422. .out_cables = 0x80ff,
  1423. .in_cables = 0x80ff
  1424. }
  1425. }
  1426. },
  1427. {
  1428. USB_DEVICE(0x086a, 0x0003),
  1429. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1430. .vendor_name = "Emagic",
  1431. /* .product_name = "MT4", */
  1432. .ifnum = 2,
  1433. .type = QUIRK_MIDI_EMAGIC,
  1434. .data = & (const struct snd_usb_midi_endpoint_info) {
  1435. .out_cables = 0x800f,
  1436. .in_cables = 0x8003
  1437. }
  1438. }
  1439. },
  1440. /* TerraTec devices */
  1441. {
  1442. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  1443. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1444. .vendor_name = "TerraTec",
  1445. .product_name = "PHASE 26",
  1446. .ifnum = 3,
  1447. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1448. }
  1449. },
  1450. {
  1451. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1452. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1453. .vendor_name = "TerraTec",
  1454. .product_name = "PHASE 26",
  1455. .ifnum = 3,
  1456. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1457. }
  1458. },
  1459. /* Novation EMS devices */
  1460. {
  1461. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1462. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1463. .vendor_name = "Novation",
  1464. .product_name = "ReMOTE Audio/XStation",
  1465. .ifnum = 4,
  1466. .type = QUIRK_MIDI_NOVATION
  1467. }
  1468. },
  1469. {
  1470. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1471. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1472. .vendor_name = "Novation",
  1473. .product_name = "Speedio",
  1474. .ifnum = 3,
  1475. .type = QUIRK_MIDI_NOVATION
  1476. }
  1477. },
  1478. {
  1479. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1480. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1481. .vendor_name = "Novation",
  1482. .product_name = "ReMOTE25",
  1483. .ifnum = 0,
  1484. .type = QUIRK_MIDI_NOVATION
  1485. }
  1486. },
  1487. {
  1488. USB_DEVICE(0x4752, 0x0011),
  1489. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1490. .vendor_name = "Miditech",
  1491. .product_name = "Midistart-2",
  1492. .ifnum = 0,
  1493. .type = QUIRK_MIDI_MIDITECH
  1494. }
  1495. },
  1496. {
  1497. USB_DEVICE(0x7104, 0x2202),
  1498. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1499. .vendor_name = "Miditech",
  1500. .product_name = "MidiStudio-2",
  1501. .ifnum = 0,
  1502. .type = QUIRK_MIDI_MIDITECH
  1503. }
  1504. },
  1505. {
  1506. /*
  1507. * Some USB MIDI devices don't have an audio control interface,
  1508. * so we have to grab MIDI streaming interfaces here.
  1509. */
  1510. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1511. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1512. .bInterfaceClass = USB_CLASS_AUDIO,
  1513. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1514. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1515. .ifnum = QUIRK_ANY_INTERFACE,
  1516. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1517. }
  1518. },
  1519. #undef USB_DEVICE_VENDOR_SPEC