From: wangdicheng Date: Fri, 13 Jun 2025 06:36:36 +0000 (+0800) Subject: ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card X-Git-Tag: v5.10.239~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8edfc3f3dd002e4903ebd92216b401d2e0c2caf6;p=thirdparty%2Fkernel%2Fstable.git ALSA: usb-audio: Rename ALSA kcontrol PCM and PCM1 for the KTMicro sound card commit 93adf20ff4d6e865e0b974110d3cf2f07c057177 upstream. PCM1 not in Pulseaudio's control list; standardize control to "Speaker" and "Headphone". Signed-off-by: wangdicheng Cc: Link: https://patch.msgid.link/20250613063636.239683-1-wangdich9700@163.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c index a973e02babf50..08082fdf82187 100644 --- a/sound/usb/mixer_maps.c +++ b/sound/usb/mixer_maps.c @@ -367,6 +367,13 @@ static const struct usbmix_name_map corsair_virtuoso_map[] = { { 0 } }; +/* 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 */ @@ -649,6 +656,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = { .id = USB_ID(0x1395, 0x0025), .map = sennheiser_pc8_map, }, + { + /* KTMicro USB */ + .id = USB_ID(0X31b2, 0x0022), + .map = s31b2_0022_map, + }, { 0 } /* terminator */ };