usbquirks.h 42 KB

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