2019-05-27 06:55:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* Additional mixer mapping
|
|
|
|
*
|
|
|
|
* Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
|
|
|
|
*/
|
|
|
|
|
2010-02-11 16:50:44 +00:00
|
|
|
struct usbmix_dB_map {
|
|
|
|
u32 min;
|
|
|
|
u32 max;
|
|
|
|
};
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
struct usbmix_name_map {
|
|
|
|
int id;
|
|
|
|
const char *name;
|
|
|
|
int control;
|
2020-01-05 14:47:26 +00:00
|
|
|
const struct usbmix_dB_map *dB;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
2005-04-22 13:49:52 +00:00
|
|
|
struct usbmix_selector_map {
|
|
|
|
int id;
|
|
|
|
int count;
|
|
|
|
const char **names;
|
|
|
|
};
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
struct usbmix_ctl_map {
|
2005-05-02 06:51:26 +00:00
|
|
|
u32 id;
|
2005-04-16 22:20:36 +00:00
|
|
|
const struct usbmix_name_map *map;
|
2005-04-22 13:49:52 +00:00
|
|
|
const struct usbmix_selector_map *selector_map;
|
2005-04-16 22:20:36 +00:00
|
|
|
int ignore_ctl_error;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* USB control mappers for SB Exitigy
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Topology of SB Extigy (see on the wide screen :)
|
|
|
|
|
|
|
|
USB_IN[1] --->FU[2]------------------------------+->MU[16]-->PU[17]-+->FU[18]--+->EU[27]--+->EU[21]-->FU[22]--+->FU[23] > Dig_OUT[24]
|
|
|
|
^ | | | |
|
|
|
|
USB_IN[3] -+->SU[5]-->FU[6]--+->MU[14] ->PU[15]->+ | | | +->FU[25] > Dig_OUT[26]
|
|
|
|
^ ^ | | | |
|
|
|
|
Dig_IN[4] -+ | | | | +->FU[28]---------------------> Spk_OUT[19]
|
|
|
|
| | | |
|
|
|
|
Lin-IN[7] -+-->FU[8]---------+ | | +----------------------------------------> Hph_OUT[20]
|
|
|
|
| | |
|
|
|
|
Mic-IN[9] --+->FU[10]----------------------------+ |
|
|
|
|
|| |
|
|
|
|
|| +----------------------------------------------------+
|
|
|
|
VV V
|
|
|
|
++--+->SU[11]-->FU[12] --------------------------------------------------------------------------------------> USB_OUT[13]
|
|
|
|
*/
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map extigy_map[] = {
|
2005-04-16 22:20:36 +00:00
|
|
|
/* 1: IT pcm */
|
|
|
|
{ 2, "PCM Playback" }, /* FU */
|
|
|
|
/* 3: IT pcm */
|
|
|
|
/* 4: IT digital in */
|
|
|
|
{ 5, NULL }, /* DISABLED: this seems to be bogus on some firmware */
|
|
|
|
{ 6, "Digital In" }, /* FU */
|
|
|
|
/* 7: IT line */
|
|
|
|
{ 8, "Line Playback" }, /* FU */
|
|
|
|
/* 9: IT mic */
|
|
|
|
{ 10, "Mic Playback" }, /* FU */
|
2010-02-11 16:50:44 +00:00
|
|
|
{ 11, "Capture Source" }, /* SU */
|
2005-04-16 22:20:36 +00:00
|
|
|
{ 12, "Capture" }, /* FU */
|
|
|
|
/* 13: OT pcm capture */
|
|
|
|
/* 14: MU (w/o controls) */
|
|
|
|
/* 15: PU (3D enh) */
|
|
|
|
/* 16: MU (w/o controls) */
|
|
|
|
{ 17, NULL, 1 }, /* DISABLED: PU-switch (any effect?) */
|
|
|
|
{ 17, "Channel Routing", 2 }, /* PU: mode select */
|
2010-05-31 11:35:41 +00:00
|
|
|
{ 18, "Tone Control - Bass", UAC_FU_BASS }, /* FU */
|
|
|
|
{ 18, "Tone Control - Treble", UAC_FU_TREBLE }, /* FU */
|
2005-04-16 22:20:36 +00:00
|
|
|
{ 18, "Master Playback" }, /* FU; others */
|
|
|
|
/* 19: OT speaker */
|
|
|
|
/* 20: OT headphone */
|
|
|
|
{ 21, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
{ 22, "Digital Out Playback" }, /* FU */
|
|
|
|
{ 23, "Digital Out1 Playback" }, /* FU */ /* FIXME: corresponds to 24 */
|
|
|
|
/* 24: OT digital out */
|
|
|
|
{ 25, "IEC958 Optical Playback" }, /* FU */
|
|
|
|
{ 26, "IEC958 Optical Playback" }, /* OT */
|
|
|
|
{ 27, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
/* 28: FU speaker (mute) */
|
|
|
|
{ 29, NULL }, /* Digital Input Playback Source? */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2005-04-01 11:14:14 +00:00
|
|
|
/* Sound Blaster MP3+ controls mapping
|
|
|
|
* The default mixer channels have totally misleading names,
|
|
|
|
* e.g. no Master and fake PCM volume
|
|
|
|
* Pavel Mihaylov <bin@bash.info>
|
|
|
|
*/
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_dB_map mp3plus_dB_1 = {.min = -4781, .max = 0};
|
2016-06-17 14:42:15 +00:00
|
|
|
/* just guess */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_dB_map mp3plus_dB_2 = {.min = -1781, .max = 618};
|
2016-06-17 14:42:15 +00:00
|
|
|
/* just guess */
|
2010-02-11 16:50:44 +00:00
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map mp3plus_map[] = {
|
2005-04-01 11:14:14 +00:00
|
|
|
/* 1: IT pcm */
|
|
|
|
/* 2: IT mic */
|
|
|
|
/* 3: IT line */
|
|
|
|
/* 4: IT digital in */
|
|
|
|
/* 5: OT digital out */
|
|
|
|
/* 6: OT speaker */
|
|
|
|
/* 7: OT pcm capture */
|
2010-02-11 16:50:44 +00:00
|
|
|
{ 8, "Capture Source" }, /* FU, default PCM Capture Source */
|
2005-04-01 11:14:14 +00:00
|
|
|
/* (Mic, Input 1 = Line input, Input 2 = Optical input) */
|
|
|
|
{ 9, "Master Playback" }, /* FU, default Speaker 1 */
|
|
|
|
/* { 10, "Mic Capture", 1 }, */ /* FU, Mic Capture */
|
2010-02-11 16:50:44 +00:00
|
|
|
{ 10, /* "Mic Capture", */ NULL, 2, .dB = &mp3plus_dB_2 },
|
|
|
|
/* FU, Mic Capture */
|
2005-04-01 11:14:14 +00:00
|
|
|
{ 10, "Mic Boost", 7 }, /* FU, default Auto Gain Input */
|
2010-02-11 16:50:44 +00:00
|
|
|
{ 11, "Line Capture", .dB = &mp3plus_dB_2 },
|
|
|
|
/* FU, default PCM Capture */
|
2005-04-01 11:14:14 +00:00
|
|
|
{ 12, "Digital In Playback" }, /* FU, default PCM 1 */
|
2010-02-11 16:50:44 +00:00
|
|
|
{ 13, /* "Mic Playback", */ .dB = &mp3plus_dB_1 },
|
|
|
|
/* FU, default Mic Playback */
|
|
|
|
{ 14, "Line Playback", .dB = &mp3plus_dB_1 }, /* FU, default Speaker */
|
2005-04-01 11:14:14 +00:00
|
|
|
/* 15: MU */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2005-04-22 06:52:03 +00:00
|
|
|
/* Topology of SB Audigy 2 NX
|
|
|
|
|
|
|
|
+----------------------------->EU[27]--+
|
|
|
|
| v
|
|
|
|
| +----------------------------------->SU[29]---->FU[22]-->Dig_OUT[24]
|
|
|
|
| | ^
|
|
|
|
USB_IN[1]-+------------+ +->EU[17]->+->FU[11]-+
|
|
|
|
| v | v |
|
|
|
|
Dig_IN[4]---+->FU[6]-->MU[16]->FU[18]-+->EU[21]->SU[31]----->FU[30]->Hph_OUT[20]
|
|
|
|
| ^ | |
|
|
|
|
Lin_IN[7]-+--->FU[8]---+ +->EU[23]->FU[28]------------->Spk_OUT[19]
|
|
|
|
| | v
|
|
|
|
+--->FU[12]------------------------------------->SU[14]--->USB_OUT[15]
|
|
|
|
| ^
|
|
|
|
+->FU[13]--------------------------------------+
|
|
|
|
*/
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map audigy2nx_map[] = {
|
2005-04-22 06:52:03 +00:00
|
|
|
/* 1: IT pcm playback */
|
|
|
|
/* 4: IT digital in */
|
|
|
|
{ 6, "Digital In Playback" }, /* FU */
|
|
|
|
/* 7: IT line in */
|
|
|
|
{ 8, "Line Playback" }, /* FU */
|
|
|
|
{ 11, "What-U-Hear Capture" }, /* FU */
|
|
|
|
{ 12, "Line Capture" }, /* FU */
|
|
|
|
{ 13, "Digital In Capture" }, /* FU */
|
|
|
|
{ 14, "Capture Source" }, /* SU */
|
|
|
|
/* 15: OT pcm capture */
|
|
|
|
/* 16: MU w/o controls */
|
|
|
|
{ 17, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
{ 18, "Master Playback" }, /* FU */
|
|
|
|
/* 19: OT speaker */
|
|
|
|
/* 20: OT headphone */
|
|
|
|
{ 21, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
{ 22, "Digital Out Playback" }, /* FU */
|
|
|
|
{ 23, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
/* 24: OT digital out */
|
|
|
|
{ 27, NULL }, /* DISABLED: EU (for what?) */
|
|
|
|
{ 28, "Speaker Playback" }, /* FU */
|
|
|
|
{ 29, "Digital Out Source" }, /* SU */
|
|
|
|
{ 30, "Headphone Playback" }, /* FU */
|
|
|
|
{ 31, "Headphone Source" }, /* SU */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map mbox1_map[] = {
|
2014-11-11 14:09:54 +00:00
|
|
|
{ 1, "Clock" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_selector_map c400_selectors[] = {
|
2013-01-13 22:02:04 +00:00
|
|
|
{
|
|
|
|
.id = 0x80,
|
|
|
|
.count = 2,
|
|
|
|
.names = (const char*[]) {"Internal", "SPDIF"}
|
|
|
|
},
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_selector_map audigy2nx_selectors[] = {
|
2005-04-22 13:49:52 +00:00
|
|
|
{
|
|
|
|
.id = 14, /* Capture Source */
|
|
|
|
.count = 3,
|
|
|
|
.names = (const char*[]) {"Line", "Digital In", "What-U-Hear"}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = 29, /* Digital Out Source */
|
|
|
|
.count = 3,
|
|
|
|
.names = (const char*[]) {"Front", "PCM", "Digital In"}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = 31, /* Headphone Source */
|
|
|
|
.count = 2,
|
|
|
|
.names = (const char*[]) {"Front", "Side"}
|
|
|
|
},
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2007-10-30 14:28:14 +00:00
|
|
|
/* Creative SoundBlaster Live! 24-bit External */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map live24ext_map[] = {
|
2007-10-30 14:28:14 +00:00
|
|
|
/* 2: PCM Playback Volume */
|
|
|
|
{ 5, "Mic Capture" }, /* FU, default PCM Capture Volume */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
/* LineX FM Transmitter entry - needed to bypass controls bug */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map linex_map[] = {
|
2005-04-16 22:20:36 +00:00
|
|
|
/* 1: IT pcm */
|
|
|
|
/* 2: OT Speaker */
|
|
|
|
{ 3, "Master" }, /* FU: master volume - left / right / mute */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map maya44_map[] = {
|
2006-03-16 07:25:56 +00:00
|
|
|
/* 1: IT line */
|
|
|
|
{ 2, "Line Playback" }, /* FU */
|
|
|
|
/* 3: IT line */
|
|
|
|
{ 4, "Line Playback" }, /* FU */
|
|
|
|
/* 5: IT pcm playback */
|
|
|
|
/* 6: MU */
|
|
|
|
{ 7, "Master Playback" }, /* FU */
|
|
|
|
/* 8: OT speaker */
|
|
|
|
/* 9: IT line */
|
|
|
|
{ 10, "Line Capture" }, /* FU */
|
|
|
|
/* 11: MU */
|
|
|
|
/* 12: OT pcm capture */
|
|
|
|
{ }
|
|
|
|
};
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
/* Section "justlink_map" below added by James Courtier-Dutton <James@superbug.demon.co.uk>
|
|
|
|
* sourced from Maplin Electronics (http://www.maplin.co.uk), part number A56AK
|
|
|
|
* Part has 2 connectors that act as a single output. (TOSLINK Optical for digital out, and 3.5mm Jack for Analogue out.)
|
|
|
|
* The USB Mixer publishes a Microphone and extra Volume controls for it, but none exist on the device,
|
|
|
|
* so this map removes all unwanted sliders from alsamixer
|
|
|
|
*/
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map justlink_map[] = {
|
2005-04-16 22:20:36 +00:00
|
|
|
/* 1: IT pcm playback */
|
|
|
|
/* 2: Not present */
|
|
|
|
{ 3, NULL}, /* IT mic (No mic input on device) */
|
|
|
|
/* 4: Not present */
|
|
|
|
/* 5: OT speacker */
|
|
|
|
/* 6: OT pcm capture */
|
|
|
|
{ 7, "Master Playback" }, /* Mute/volume for speaker */
|
|
|
|
{ 8, NULL }, /* Capture Switch (No capture inputs on device) */
|
|
|
|
{ 9, NULL }, /* Capture Mute/volume (No capture inputs on device */
|
|
|
|
/* 0xa: Not present */
|
|
|
|
/* 0xb: MU (w/o controls) */
|
|
|
|
{ 0xc, NULL }, /* Mic feedback Mute/volume (No capture inputs on device) */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2006-09-22 09:00:51 +00:00
|
|
|
/* TerraTec Aureon 5.1 MkII USB */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map aureon_51_2_map[] = {
|
2006-09-22 09:00:51 +00:00
|
|
|
/* 1: IT USB */
|
|
|
|
/* 2: IT Mic */
|
|
|
|
/* 3: IT Line */
|
|
|
|
/* 4: IT SPDIF */
|
|
|
|
/* 5: OT SPDIF */
|
|
|
|
/* 6: OT Speaker */
|
|
|
|
/* 7: OT USB */
|
|
|
|
{ 8, "Capture Source" }, /* SU */
|
|
|
|
{ 9, "Master Playback" }, /* FU */
|
|
|
|
{ 10, "Mic Capture" }, /* FU */
|
|
|
|
{ 11, "Line Capture" }, /* FU */
|
|
|
|
{ 12, "IEC958 In Capture" }, /* FU */
|
|
|
|
{ 13, "Mic Playback" }, /* FU */
|
|
|
|
{ 14, "Line Playback" }, /* FU */
|
|
|
|
/* 15: MU */
|
|
|
|
{} /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map scratch_live_map[] = {
|
2009-01-18 17:48:03 +00:00
|
|
|
/* 1: IT Line 1 (USB streaming) */
|
|
|
|
/* 2: OT Line 1 (Speaker) */
|
|
|
|
/* 3: IT Line 1 (Line connector) */
|
|
|
|
{ 4, "Line 1 In" }, /* FU */
|
|
|
|
/* 5: OT Line 1 (USB streaming) */
|
|
|
|
/* 6: IT Line 2 (USB streaming) */
|
|
|
|
/* 7: OT Line 2 (Speaker) */
|
|
|
|
/* 8: IT Line 2 (Line connector) */
|
|
|
|
{ 9, "Line 2 In" }, /* FU */
|
|
|
|
/* 10: OT Line 2 (USB streaming) */
|
|
|
|
/* 11: IT Mic (Line connector) */
|
|
|
|
/* 12: OT Mic (USB streaming) */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map ebox44_map[] = {
|
2012-04-14 16:19:24 +00:00
|
|
|
{ 4, NULL }, /* FU */
|
|
|
|
{ 6, NULL }, /* MU */
|
|
|
|
{ 7, NULL }, /* FU */
|
|
|
|
{ 10, NULL }, /* FU */
|
|
|
|
{ 11, NULL }, /* MU */
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
|
2009-12-01 12:40:53 +00:00
|
|
|
/* "Gamesurround Muse Pocket LT" looks same like "Sound Blaster MP3+"
|
|
|
|
* most importand difference is SU[8], it should be set to "Capture Source"
|
|
|
|
* to make alsamixer and PA working properly.
|
|
|
|
* FIXME: or mp3plus_map should use "Capture Source" too,
|
|
|
|
* so this maps can be merget
|
|
|
|
*/
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map hercules_usb51_map[] = {
|
2009-12-01 12:40:53 +00:00
|
|
|
{ 8, "Capture Source" }, /* SU, default "PCM Capture Source" */
|
|
|
|
{ 9, "Master Playback" }, /* FU, default "Speaker Playback" */
|
|
|
|
{ 10, "Mic Boost", 7 }, /* FU, default "Auto Gain Input" */
|
|
|
|
{ 11, "Line Capture" }, /* FU, default "PCM Capture" */
|
|
|
|
{ 13, "Mic Bypass Playback" }, /* FU, default "Mic Playback" */
|
|
|
|
{ 14, "Line Bypass Playback" }, /* FU, default "Line Playback" */
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2013-12-19 13:32:53 +00:00
|
|
|
/* Plantronics Gamecom 780 has a broken volume control, better to disable it */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map gamecom780_map[] = {
|
2013-12-19 13:32:53 +00:00
|
|
|
{ 9, NULL }, /* FU, speaker out */
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2014-12-18 01:03:19 +00:00
|
|
|
/* some (all?) SCMS USB3318 devices are affected by a firmware lock up
|
|
|
|
* when anything attempts to access FU 10 (control)
|
|
|
|
*/
|
|
|
|
static const struct usbmix_name_map scms_usb3318_map[] = {
|
|
|
|
{ 10, NULL },
|
2014-02-16 16:11:10 +00:00
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
|
2015-07-29 07:13:54 +00:00
|
|
|
/* Bose companion 5, the dB conversion factor is 16 instead of 256 */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_dB_map bose_companion5_dB = {-5006, -6};
|
|
|
|
static const struct usbmix_name_map bose_companion5_map[] = {
|
2015-07-29 07:13:54 +00:00
|
|
|
{ 3, NULL, .dB = &bose_companion5_dB },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2016-04-12 02:55:03 +00:00
|
|
|
/*
|
|
|
|
* Dell usb dock with ALC4020 codec had a firmware problem where it got
|
|
|
|
* screwed up when zero volume is passed; just skip it as a workaround
|
2018-04-24 09:11:48 +00:00
|
|
|
*
|
|
|
|
* Also the extension unit gives an access error, so skip it as well.
|
2016-04-12 02:55:03 +00:00
|
|
|
*/
|
|
|
|
static const struct usbmix_name_map dell_alc4020_map[] = {
|
2018-04-24 09:11:48 +00:00
|
|
|
{ 4, NULL }, /* extension unit */
|
2016-04-12 02:55:03 +00:00
|
|
|
{ 16, NULL },
|
|
|
|
{ 19, NULL },
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
|
2019-12-27 09:40:53 +00:00
|
|
|
/*
|
|
|
|
* Corsair Virtuoso calls everything "Headset" without this, leading to
|
|
|
|
* applications moving the sidetone control instead of the main one.
|
|
|
|
*/
|
|
|
|
static const struct usbmix_name_map corsair_virtuoso_map[] = {
|
|
|
|
{ 3, "Mic Capture" },
|
|
|
|
{ 6, "Sidetone Playback" },
|
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
|
2020-04-08 14:04:48 +00:00
|
|
|
/* Some mobos shipped with a dummy HD-audio show the invalid GET_MIN/GET_MAX
|
|
|
|
* response for Input Gain Pad (id=19, control=12). Skip it.
|
|
|
|
*/
|
|
|
|
static const struct usbmix_name_map asus_rog_map[] = {
|
|
|
|
{ 19, NULL, 12 }, /* FU, Input Gain Pad */
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* Control map entries
|
|
|
|
*/
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
|
2005-04-22 13:49:52 +00:00
|
|
|
{
|
2005-05-02 06:51:26 +00:00
|
|
|
.id = USB_ID(0x041e, 0x3000),
|
2005-04-22 13:49:52 +00:00
|
|
|
.map = extigy_map,
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
|
|
|
{
|
2005-05-02 06:51:26 +00:00
|
|
|
.id = USB_ID(0x041e, 0x3010),
|
2005-04-22 13:49:52 +00:00
|
|
|
.map = mp3plus_map,
|
|
|
|
},
|
|
|
|
{
|
2005-05-02 06:51:26 +00:00
|
|
|
.id = USB_ID(0x041e, 0x3020),
|
2005-04-22 13:49:52 +00:00
|
|
|
.map = audigy2nx_map,
|
|
|
|
.selector_map = audigy2nx_selectors,
|
|
|
|
},
|
2007-10-30 14:28:14 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x041e, 0x3040),
|
|
|
|
.map = live24ext_map,
|
|
|
|
},
|
2009-01-07 21:58:50 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x041e, 0x3048),
|
|
|
|
.map = audigy2nx_map,
|
|
|
|
.selector_map = audigy2nx_selectors,
|
|
|
|
},
|
2012-06-19 20:21:19 +00:00
|
|
|
{ /* Logitech, Inc. QuickCam Pro for Notebooks */
|
|
|
|
.id = USB_ID(0x046d, 0x0991),
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
2012-06-19 20:21:18 +00:00
|
|
|
{ /* Logitech, Inc. QuickCam E 3500 */
|
|
|
|
.id = USB_ID(0x046d, 0x09a4),
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
2013-12-19 13:32:53 +00:00
|
|
|
{ /* Plantronics GameCom 780 */
|
|
|
|
.id = USB_ID(0x047f, 0xc010),
|
|
|
|
.map = gamecom780_map,
|
|
|
|
},
|
2005-09-16 14:56:01 +00:00
|
|
|
{
|
2005-10-05 11:02:38 +00:00
|
|
|
/* Hercules DJ Console (Windows Edition) */
|
|
|
|
.id = USB_ID(0x06f8, 0xb000),
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Hercules DJ Console (Macintosh Edition) */
|
2005-09-16 14:56:01 +00:00
|
|
|
.id = USB_ID(0x06f8, 0xd002),
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
2009-12-01 12:40:53 +00:00
|
|
|
{
|
|
|
|
/* Hercules Gamesurround Muse Pocket LT
|
|
|
|
* (USB 5.1 Channel Audio Adapter)
|
|
|
|
*/
|
|
|
|
.id = USB_ID(0x06f8, 0xc000),
|
|
|
|
.map = hercules_usb51_map,
|
|
|
|
},
|
2013-01-13 22:02:04 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0763, 0x2030),
|
|
|
|
.selector_map = c400_selectors,
|
|
|
|
},
|
2013-02-09 17:56:35 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0763, 0x2031),
|
|
|
|
.selector_map = c400_selectors,
|
|
|
|
},
|
2005-04-22 13:49:52 +00:00
|
|
|
{
|
2005-05-02 06:51:26 +00:00
|
|
|
.id = USB_ID(0x08bb, 0x2702),
|
2005-04-22 13:49:52 +00:00
|
|
|
.map = linex_map,
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
2006-03-16 07:25:56 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0a92, 0x0091),
|
|
|
|
.map = maya44_map,
|
|
|
|
},
|
2005-04-22 13:49:52 +00:00
|
|
|
{
|
2005-05-02 06:51:26 +00:00
|
|
|
.id = USB_ID(0x0c45, 0x1158),
|
2005-04-22 13:49:52 +00:00
|
|
|
.map = justlink_map,
|
|
|
|
},
|
2006-09-22 09:00:51 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0ccd, 0x0028),
|
|
|
|
.map = aureon_51_2_map,
|
|
|
|
},
|
2016-04-12 02:55:03 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0bda, 0x4014),
|
|
|
|
.map = dell_alc4020_map,
|
|
|
|
},
|
2014-11-11 14:09:54 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x0dba, 0x1000),
|
|
|
|
.map = mbox1_map,
|
|
|
|
},
|
2009-01-18 17:48:03 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x13e5, 0x0001),
|
|
|
|
.map = scratch_live_map,
|
|
|
|
.ignore_ctl_error = 1,
|
|
|
|
},
|
2012-04-14 16:19:24 +00:00
|
|
|
{
|
|
|
|
.id = USB_ID(0x200c, 0x1018),
|
|
|
|
.map = ebox44_map,
|
|
|
|
},
|
2015-06-03 09:36:42 +00:00
|
|
|
{
|
|
|
|
/* MAYA44 USB+ */
|
|
|
|
.id = USB_ID(0x2573, 0x0008),
|
|
|
|
.map = maya44_map,
|
|
|
|
},
|
2014-02-16 16:11:10 +00:00
|
|
|
{
|
2014-12-18 01:03:19 +00:00
|
|
|
/* KEF X300A */
|
2014-02-16 16:11:10 +00:00
|
|
|
.id = USB_ID(0x27ac, 0x1000),
|
2014-12-18 01:03:19 +00:00
|
|
|
.map = scms_usb3318_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Arcam rPAC */
|
|
|
|
.id = USB_ID(0x25c4, 0x0003),
|
|
|
|
.map = scms_usb3318_map,
|
2014-02-16 16:11:10 +00:00
|
|
|
},
|
2015-07-29 07:13:54 +00:00
|
|
|
{
|
|
|
|
/* Bose Companion 5 */
|
|
|
|
.id = USB_ID(0x05a7, 0x1020),
|
|
|
|
.map = bose_companion5_map,
|
|
|
|
},
|
2019-12-27 09:40:53 +00:00
|
|
|
{
|
|
|
|
/* Corsair Virtuoso (wired mode) */
|
|
|
|
.id = USB_ID(0x1b1c, 0x0a41),
|
|
|
|
.map = corsair_virtuoso_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* Corsair Virtuoso (wireless mode) */
|
|
|
|
.id = USB_ID(0x1b1c, 0x0a42),
|
|
|
|
.map = corsair_virtuoso_map,
|
|
|
|
},
|
2020-04-08 14:04:48 +00:00
|
|
|
{ /* Gigabyte TRX40 Aorus Pro WiFi */
|
|
|
|
.id = USB_ID(0x0414, 0xa002),
|
|
|
|
.map = asus_rog_map,
|
|
|
|
},
|
|
|
|
{ /* ASUS ROG Zenith II */
|
|
|
|
.id = USB_ID(0x0b05, 0x1916),
|
|
|
|
.map = asus_rog_map,
|
|
|
|
},
|
|
|
|
{ /* ASUS ROG Strix */
|
|
|
|
.id = USB_ID(0x0b05, 0x1917),
|
|
|
|
.map = asus_rog_map,
|
|
|
|
},
|
|
|
|
{ /* MSI TRX40 Creator */
|
|
|
|
.id = USB_ID(0x0db0, 0x0d64),
|
|
|
|
.map = asus_rog_map,
|
|
|
|
},
|
|
|
|
{ /* MSI TRX40 */
|
|
|
|
.id = USB_ID(0x0db0, 0x543d),
|
|
|
|
.map = asus_rog_map,
|
|
|
|
},
|
2005-04-16 22:20:36 +00:00
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2018-05-04 01:24:04 +00:00
|
|
|
/*
|
|
|
|
* Control map entries for UAC3 BADD profiles
|
|
|
|
*/
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_generic_io_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID2, "Generic Out Playback" },
|
|
|
|
{ UAC3_BADD_FU_ID5, "Generic In Capture" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_headphone_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID2, "Headphone Playback" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_speaker_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID2, "Speaker Playback" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_microphone_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID5, "Mic Capture" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
/* Covers also 'headset adapter' profile */
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_headset_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID2, "Headset Playback" },
|
|
|
|
{ UAC3_BADD_FU_ID5, "Headset Capture" },
|
|
|
|
{ UAC3_BADD_FU_ID7, "Sidetone Mixing" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_name_map uac3_badd_speakerphone_map[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{ UAC3_BADD_FU_ID2, "Speaker Playback" },
|
|
|
|
{ UAC3_BADD_FU_ID5, "Mic Capture" },
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|
|
|
|
|
2020-01-05 14:47:26 +00:00
|
|
|
static const struct usbmix_ctl_map uac3_badd_usbmix_ctl_maps[] = {
|
2018-05-04 01:24:04 +00:00
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_GENERIC_IO,
|
|
|
|
.map = uac3_badd_generic_io_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_HEADPHONE,
|
|
|
|
.map = uac3_badd_headphone_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_SPEAKER,
|
|
|
|
.map = uac3_badd_speaker_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_MICROPHONE,
|
|
|
|
.map = uac3_badd_microphone_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_HEADSET,
|
|
|
|
.map = uac3_badd_headset_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_HEADSET_ADAPTER,
|
|
|
|
.map = uac3_badd_headset_map,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = UAC3_FUNCTION_SUBCLASS_SPEAKERPHONE,
|
|
|
|
.map = uac3_badd_speakerphone_map,
|
|
|
|
},
|
|
|
|
{ 0 } /* terminator */
|
|
|
|
};
|