usbquirks.h 39 KB

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