usbquirks.h 48 KB

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