summaryrefslogtreecommitdiff
path: root/src/modules/alsa/mixer/profile-sets/default.conf
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2012-05-01 20:09:12 +0300
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-05-11 16:55:29 +0530
commit7bb8442c111d5e1fba20eb101eb854edd5392627 (patch)
treef080df81b2cd5d727092f2455d7acc4441fecde1 /src/modules/alsa/mixer/profile-sets/default.conf
parent1eb7c4a465e804c3fe6e7d34e771d6d870268473 (diff)
alsa: Add support for sound cards with 4-channel input.
Changes in v2: - Call the mapping a generic 4-channel input mapping instead of a 4-channel mic array mapping. The mapping will be used also by sound cards that have two stereo input jacks, so in those cases talking about mic arrays is wrong. - Added a comment about using the "hw" device name. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=45813
Diffstat (limited to 'src/modules/alsa/mixer/profile-sets/default.conf')
-rw-r--r--src/modules/alsa/mixer/profile-sets/default.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/alsa/mixer/profile-sets/default.conf b/src/modules/alsa/mixer/profile-sets/default.conf
index 5ac322b81..28c8650d1 100644
--- a/src/modules/alsa/mixer/profile-sets/default.conf
+++ b/src/modules/alsa/mixer/profile-sets/default.conf
@@ -148,6 +148,15 @@ paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 7
direction = output
+[Mapping analog-4-channel-input]
+# Alsa doesn't currently provide any better device name than "hw" for 4-channel
+# input. If this causes trouble at some point, then we will need to get a new
+# device name standardized in alsa.
+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