usbquirks.h 50 KB

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