quirks-table.h 61 KB

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