[pulseaudio-discuss] [PATCH] alsa: Add support for 4-channel mic arrays.

Tanu Kaskinen tanuk at iki.fi
Sun Apr 22 11:11:37 PDT 2012


BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=45813
---
 src/modules/alsa/alsa-mixer.c                    |    1 +
 src/modules/alsa/mixer/profile-sets/default.conf |    6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index abb12ee..4161c88 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -3888,6 +3888,7 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
         { "analog-surround-61",     N_("Analog Surround 6.1") },
         { "analog-surround-70",     N_("Analog Surround 7.0") },
         { "analog-surround-71",     N_("Analog Surround 7.1") },
+        { "analog-mic-array-4",     N_("4-channel Mic Array") },
         { "iec958-stereo",          N_("Digital Stereo (IEC958)") },
         { "iec958-passthrough",     N_("Digital Passthrough  (IEC958)") },
         { "iec958-ac3-surround-40", N_("Digital Surround 4.0 (IEC958/AC3)") },
diff --git a/src/modules/alsa/mixer/profile-sets/default.conf b/src/modules/alsa/mixer/profile-sets/default.conf
index 5ac322b..794f832 100644
--- a/src/modules/alsa/mixer/profile-sets/default.conf
+++ b/src/modules/alsa/mixer/profile-sets/default.conf
@@ -148,6 +148,12 @@ paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
 priority = 7
 direction = output
 
+[Mapping analog-mic-array-4]
+device-strings = hw:%f
+channel-map = aux0,aux1,aux2,aux3
+priority = 1
+direction = input
+
 [Mapping iec958-stereo]
 device-strings = iec958:%f
 channel-map = left,right
-- 
1.7.10



More information about the pulseaudio-discuss mailing list