From f1cc525d7e5e097e2f4f5340e81d9ae533e40ba9 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 21 May 2021 09:52:53 -0300 Subject: [PATCH] Add channel paths to analog-surround-* Motu M4 has four inputs (two line-in inputs, and two complete ones with gain and XLR and whatnot), as well as four outputs (two monitor pairs, and an unnaccounted headphone). Sadly, like a few other interfaces, it wasn't being given an input profile, since the matching code goes through default.conf testing each config, and ends up selecting 'analog-surround-40', which does not have input mapping. The inputs would fallback to 'multichannel- input', which also doesn't have input paths. Add input paths to all analog-surround-* mappings, and remove their 'direction=output' fields since they handle both out and in. --- spa/plugins/alsa/mixer/profile-sets/default.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spa/plugins/alsa/mixer/profile-sets/default.conf b/spa/plugins/alsa/mixer/profile-sets/default.conf index 10232078b..f0c9d2a2b 100644 --- a/spa/plugins/alsa/mixer/profile-sets/default.conf +++ b/spa/plugins/alsa/mixer/profile-sets/default.conf @@ -137,45 +137,45 @@ priority = 1 [Mapping analog-surround-21] device-strings = surround21:%f channel-map = front-left,front-right,lfe +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 13 -direction = output [Mapping analog-surround-40] device-strings = surround40:%f channel-map = front-left,front-right,rear-left,rear-right +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 12 -direction = output [Mapping analog-surround-41] device-strings = surround41:%f channel-map = front-left,front-right,rear-left,rear-right,lfe +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 13 -direction = output [Mapping analog-surround-50] device-strings = surround50:%f channel-map = front-left,front-right,rear-left,rear-right,front-center +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 12 -direction = output [Mapping analog-surround-51] device-strings = surround51:%f channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 13 -direction = output [Mapping analog-surround-71] device-strings = surround71:%f channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right description = Analog Surround 7.1 +paths-input = analog-input analog-input-linein analog-input-mic paths-output = analog-output analog-output-lineout analog-output-speaker priority = 12 -direction = output [Mapping iec958-stereo] device-strings = iec958:%f