From 16f0a4d7f49dfcec635a9afb28f2bf0f2255bb66 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sun, 23 Jan 2022 16:46:17 +0200 Subject: [PATCH] alsa-mixer: Add analog-input path to TI PCM2902 mappings At least Behringer Xenyx 302USB doesn't have any Mic mixer elements (or indeed any capture mixer elements), so having analog-input-mic as the only input path caused the input mappings to not show up on this sound card. Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1325 Part-of: --- .../profile-sets/texas-instruments-pcm2902.conf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf b/src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf index 15ac4a099..3c2b39869 100644 --- a/src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf +++ b/src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf @@ -16,12 +16,15 @@ ; Texas Instruments PCM2902 ; ; This is a generic chip used in multiple products, including at least -; Behringer U-Phoria UMC22, Intopic Jazz-UB700 and some unbranded "usb mini -; microphone". +; Behringer U-Phoria UMC22, Behringer Xenyx 302USB, Intopic Jazz-UB700 and +; some unbranded "usb mini microphone". ; ; Behringer UMC22 has stereo input (representing two physical mono inputs), ; others have mono input. ; +; Some devices have a mic input path, but at least Behringer Xenyx 302USB +; doesn't have any input mixer controls. +; ; Since the UMC22 card has only stereo input PCM device but is commonly used ; with mono mics, we define special mono mappings using "mono,aux1" and ; "aux1,mono" channel maps. If we had only had the standard stereo input @@ -40,28 +43,28 @@ auto-profiles = yes [Mapping analog-stereo-input] device-strings = hw:%f channel-map = left,right -paths-input = analog-input-mic +paths-input = analog-input-mic analog-input direction = input priority = 4 [Mapping analog-mono] device-strings = hw:%f channel-map = mono -paths-input = analog-input-mic +paths-input = analog-input-mic analog-input direction = input priority = 3 [Mapping analog-mono-left] device-strings = hw:%f channel-map = mono,aux1 -paths-input = analog-input-mic +paths-input = analog-input-mic analog-input direction = input priority = 2 [Mapping analog-mono-right] device-strings = hw:%f channel-map = aux1,mono -paths-input = analog-input-mic +paths-input = analog-input-mic analog-input direction = input priority = 1