quirks-table.h 71 KB

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