[pulseaudio-discuss] [PATCH 3/3] alsa-mixer: Add paths/ports for multichannel profile

David Henningsson david.henningsson at canonical.com
Tue Mar 31 05:38:04 PDT 2015


This makes the GUIs (e g gnome/unity-control-center) look more consistent
with other inputs/outputs that also have ports.

Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 src/modules/alsa/alsa-mixer.c                    | 4 +++-
 src/modules/alsa/mixer/profile-sets/default.conf | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index 78eeae2..0b35618 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -2389,7 +2389,9 @@ static int path_verify(pa_alsa_path *p) {
         { "hdmi-output",                N_("HDMI / DisplayPort") },
         { "iec958-stereo-output",       N_("Digital Output (S/PDIF)") },
         { "iec958-stereo-input",        N_("Digital Input (S/PDIF)") },
-        { "iec958-passthrough-output",  N_("Digital Passthrough (S/PDIF)") }
+        { "iec958-passthrough-output",  N_("Digital Passthrough (S/PDIF)") },
+        { "multichannel-input",         N_("Multichannel Input") },
+        { "multichannel-output",        N_("Multichannel Output") },
     };
 
     pa_alsa_element *e;
diff --git a/src/modules/alsa/mixer/profile-sets/default.conf b/src/modules/alsa/mixer/profile-sets/default.conf
index 4b397cd..d67dae4 100644
--- a/src/modules/alsa/mixer/profile-sets/default.conf
+++ b/src/modules/alsa/mixer/profile-sets/default.conf
@@ -449,6 +449,7 @@ exact-channels = false
 fallback = yes
 priority = 1
 direction = output
+paths-output = multichannel-output
 
 [Mapping multichannel2]
 device-strings = hw:%f
@@ -457,6 +458,7 @@ exact-channels = false
 fallback = yes
 priority = 1
 direction = input
+paths-input = multichannel-input
 
 ; An example for defining multiple-sink profiles
 #[Profile output:analog-stereo+output:iec958-stereo+input:analog-stereo]
-- 
1.9.1



More information about the pulseaudio-discuss mailing list