quirks-table.h 70 KB

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