usbquirks.h 46 KB

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