quirks-table.h 81 KB

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