public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX.
@ 2022-04-18 13:27 Maurizio Avogadro
  2022-04-18 14:15 ` Maurizio Avogadro
  0 siblings, 1 reply; 3+ messages in thread
From: Maurizio Avogadro @ 2022-04-18 13:27 UTC (permalink / raw)
  To: alsa-devel
  Cc: Jaroslav Kysela, Takashi Iwai, Andrea Fagiani, Timo Gurr,
	linux-kernel, Maurizio Avogadro

The USB audio device 0db0:419c based on the Realtek ALC4080  chipset
exposes all playback volume controls as "PCM". This makes
distinguishing the individual functions hard: the mapping already
adopted for  device 0db0:419c fixes the issue, apply it.

Signed-off-by: Maurizio Avogadro <mavoga@gmail.com>
---
 sound/usb/mixer_maps.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 64f5544d0a0a..7ef7a8abcc2b 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -599,6 +599,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
 		.id = USB_ID(0x0db0, 0x419c),
 		.map = msi_mpg_x570s_carbon_max_wifi_alc4080_map,
 	},
+	{	/* MSI MAG X570S Torpedo Max */
+		.id = USB_ID(0x0db0, 0xa073),
+		.map = msi_mpg_x570s_carbon_max_wifi_alc4080_map,
+	},
 	{	/* MSI TRX40 */
 		.id = USB_ID(0x0db0, 0x543d),
 		.map = trx40_mobo_map,
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX.
  2022-04-18 13:27 [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX Maurizio Avogadro
@ 2022-04-18 14:15 ` Maurizio Avogadro
  2022-04-19  7:04   ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Maurizio Avogadro @ 2022-04-18 14:15 UTC (permalink / raw)
  To: alsa-devel
  Cc: Jaroslav Kysela, Takashi Iwai, Andrea Fagiani, Timo Gurr,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 26 bytes --]

Fixed description, sorry.

[-- Attachment #2: 0001-ALSA-usb-audio-add-mapping-for-MSI-MAG-X570S-Torpedo.patch --]
[-- Type: text/x-diff, Size: 1194 bytes --]

From c49119b1dcfcca1fcefadd92e095463e6245d4e1 Mon Sep 17 00:00:00 2001
From: Maurizio Avogadro <mavoga@gmail.com>
Date: Mon, 18 Apr 2022 15:16:12 +0200
Subject: [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX.

The USB audio device 0db0:a073 based on the Realtek ALC4080 chipset
exposes all playback volume controls as "PCM". This makes
distinguishing the individual functions hard.
The mapping already adopted for device 0db0:419c based on the same
chipset fixes the issue, apply it for this device too.

Signed-off-by: Maurizio Avogadro <mavoga@gmail.com>
---
 sound/usb/mixer_maps.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 64f5544d0a0a..7ef7a8abcc2b 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -599,6 +599,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
 		.id = USB_ID(0x0db0, 0x419c),
 		.map = msi_mpg_x570s_carbon_max_wifi_alc4080_map,
 	},
+	{	/* MSI MAG X570S Torpedo Max */
+		.id = USB_ID(0x0db0, 0xa073),
+		.map = msi_mpg_x570s_carbon_max_wifi_alc4080_map,
+	},
 	{	/* MSI TRX40 */
 		.id = USB_ID(0x0db0, 0x543d),
 		.map = trx40_mobo_map,
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX.
  2022-04-18 14:15 ` Maurizio Avogadro
@ 2022-04-19  7:04   ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2022-04-19  7:04 UTC (permalink / raw)
  To: Maurizio Avogadro
  Cc: alsa-devel, Jaroslav Kysela, Takashi Iwai, Andrea Fagiani,
	Timo Gurr, linux-kernel

On Mon, 18 Apr 2022 16:15:44 +0200,
Maurizio Avogadro wrote:
> 
> Fixed description, sorry.
> >From c49119b1dcfcca1fcefadd92e095463e6245d4e1 Mon Sep 17 00:00:00 2001
> From: Maurizio Avogadro <mavoga@gmail.com>
> Date: Mon, 18 Apr 2022 15:16:12 +0200
> Subject: [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX.
> 
> The USB audio device 0db0:a073 based on the Realtek ALC4080 chipset
> exposes all playback volume controls as "PCM". This makes
> distinguishing the individual functions hard.
> The mapping already adopted for device 0db0:419c based on the same
> chipset fixes the issue, apply it for this device too.
> 
> Signed-off-by: Maurizio Avogadro <mavoga@gmail.com>

Applied now.  Thanks.


Takashi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-19  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-18 13:27 [PATCH] ALSA: usb-audio: add mapping for MSI MAG X570S Torpedo MAX Maurizio Avogadro
2022-04-18 14:15 ` Maurizio Avogadro
2022-04-19  7:04   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox