* [PATCH] ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card
@ 2025-06-13 6:36 wangdicheng
2025-06-13 8:18 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: wangdicheng @ 2025-06-13 6:36 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai
Cc: linux-kernel, alsa-devel, linux-arm-kernel, wangdicheng
From: wangdicheng <wangdicheng@kylinos.cn>
PCM1 not in Pulseaudio's control list;standardize control to "Speaker"and"Headphone"
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
---
sound/usb/mixer_maps.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 0e9b5431a47f..faac7df1fbcf 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -383,6 +383,13 @@ static const struct usbmix_name_map ms_usb_link_map[] = {
{ 0 } /* terminator */
};
+/* KTMicro USB */
+static struct usbmix_name_map s31b2_0022_map[] = {
+ { 23, "Speaker Playback" },
+ { 18, "Headphone Playback" },
+ { 0 }
+};
+
/* ASUS ROG Zenith II with Realtek ALC1220-VB */
static const struct usbmix_name_map asus_zenith_ii_map[] = {
{ 19, NULL, 12 }, /* FU, Input Gain Pad - broken response, disabled */
@@ -692,6 +699,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
.id = USB_ID(0x045e, 0x083c),
.map = ms_usb_link_map,
},
+ {
+ /* KTMicro USB */
+ .id = USB_ID(0X31b2, 0x0022),
+ .map = s31b2_0022_map,
+ },
{ 0 } /* terminator */
};
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card
2025-06-13 6:36 [PATCH] ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card wangdicheng
@ 2025-06-13 8:18 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-06-13 8:18 UTC (permalink / raw)
To: wangdicheng
Cc: lgirdwood, broonie, perex, tiwai, linux-kernel, alsa-devel,
linux-arm-kernel, wangdicheng
On Fri, 13 Jun 2025 08:36:36 +0200,
wangdicheng wrote:
>
> From: wangdicheng <wangdicheng@kylinos.cn>
>
> PCM1 not in Pulseaudio's control list;standardize control to "Speaker"and"Headphone"
>
> Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Thanks, applied now.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-13 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 6:36 [PATCH] ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card wangdicheng
2025-06-13 8:18 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.