Skip to content

Commit 5762f98

Browse files
lordhototiwai
authored andcommitted
ALSA: usb-audio: add mapping for MSI MPG X570S Carbon Max Wifi.
The USB audio device 0db0:419c based on the Realtek ALC4080 chip exposes all playback volume controls as "PCM". This is makes distinguishing the individual functions hard. The added mapping distinguishes all playback volume controls as their respective function: - Speaker - for back panel output - Frontpanel Headphone - for front panel output - IEC958 - for digital output on the back panel This clarifies the individual volume control functions for users. Signed-off-by: Johannes Schickel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 91502a9 commit 5762f98

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sound/usb/mixer_maps.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,14 @@ static const struct usbmix_name_map aorus_master_alc1220vb_map[] = {
431431
{}
432432
};
433433

434+
/* MSI MPG X570S Carbon Max Wifi with ALC4080 */
435+
static const struct usbmix_name_map msi_mpg_x570s_carbon_max_wifi_alc4080_map[] = {
436+
{ 29, "Speaker Playback" },
437+
{ 30, "Front Headphone Playback" },
438+
{ 32, "IEC958 Playback" },
439+
{}
440+
};
441+
434442
/*
435443
* Control map entries
436444
*/
@@ -577,6 +585,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
577585
.map = trx40_mobo_map,
578586
.connector_map = trx40_mobo_connector_map,
579587
},
588+
{ /* MSI MPG X570S Carbon Max Wifi */
589+
.id = USB_ID(0x0db0, 0x419c),
590+
.map = msi_mpg_x570s_carbon_max_wifi_alc4080_map,
591+
},
580592
{ /* MSI TRX40 */
581593
.id = USB_ID(0x0db0, 0x543d),
582594
.map = trx40_mobo_map,

0 commit comments

Comments
 (0)