quirks-table.h 75 KB

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