Skip to content

Commit c4f7e90

Browse files
wangdichenggregkh
authored andcommitted
ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card
commit 93adf20 upstream. PCM1 not in Pulseaudio's control list; standardize control to "Speaker" and "Headphone". Signed-off-by: wangdicheng <wangdicheng@kylinos.cn> Cc: <stable@vger.kernel.org> Link: https://patch.msgid.link/20250613063636.239683-1-wangdich9700@163.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 47f3428 commit c4f7e90

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
@@ -383,6 +383,13 @@ static const struct usbmix_name_map ms_usb_link_map[] = {
383383
{ 0 } /* terminator */
384384
};
385385

386+
/* KTMicro USB */
387+
static struct usbmix_name_map s31b2_0022_map[] = {
388+
{ 23, "Speaker Playback" },
389+
{ 18, "Headphone Playback" },
390+
{ 0 }
391+
};
392+
386393
/* ASUS ROG Zenith II with Realtek ALC1220-VB */
387394
static const struct usbmix_name_map asus_zenith_ii_map[] = {
388395
{ 19, NULL, 12 }, /* FU, Input Gain Pad - broken response, disabled */
@@ -692,6 +699,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
692699
.id = USB_ID(0x045e, 0x083c),
693700
.map = ms_usb_link_map,
694701
},
702+
{
703+
/* KTMicro USB */
704+
.id = USB_ID(0X31b2, 0x0022),
705+
.map = s31b2_0022_map,
706+
},
695707
{ 0 } /* terminator */
696708
};
697709

0 commit comments

Comments
 (0)