quirks-table.h 81 KB

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