summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-03-25 14:56:05 +0100
committerDavid Henningsson <david.henningsson@canonical.com>2013-04-04 12:07:00 +0200
commit6eecb2f3f3cca6286b3f85751b2a74a227394836 (patch)
treed3b47770829eeee2f043bf44a66b9f63c7a68166
parent9886097ee054baad3174a3ef5d337b51b2ecd85e (diff)
alsa-mixer: Add "Headset Playback|Capture" element
Found on Logitech B530 USB Headset / kernel 3.8. Because we don't have different path for headset and headphone today, just add Headset to the existing headphone path. BugLink: https://bugs.launchpad.net/bugs/1159687 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
-rw-r--r--src/modules/alsa/mixer/paths/analog-input-headset-mic.conf7
-rw-r--r--src/modules/alsa/mixer/paths/analog-output-headphones.conf7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf b/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
index 0310ccbc..6be2c95f 100644
--- a/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
+++ b/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
@@ -44,6 +44,13 @@ volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
+[Element Headset]
+required-any = any
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
[Element Capture]
switch = mute
volume = merge
diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
index 4266d11d..e876768b 100644
--- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
+++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
@@ -69,6 +69,13 @@ volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
+[Element Headset]
+required-any = any
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
[Element Line HP Swap]
switch = on