usbquirks.h 45 KB

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