quirks-table.h 60 KB

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