summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2011-08-15 14:05:48 +0200
committerColin Guthrie <colin@mageia.org>2011-08-16 11:59:02 +0100
commit5c86d76554e43dfdba173e052257518493cd716e (patch)
treeb2e0fd0ab5c9d932bad0490a330e9a1efd9f161d
parent838672974ec35c9e9eea4f67a2e7206f5cf87c22 (diff)
alsa-mixer: Add "Line HP Swap" element
The "Line HP Swap" element needs to be set correctly for some Dove boards to work correctly. Thanks to Daniel T Chen for the patch. BugLink: http://bugs.launchpad.net/bugs/451635 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
-rw-r--r--src/modules/alsa/mixer/paths/analog-output-headphones.conf3
-rw-r--r--src/modules/alsa/mixer/paths/analog-output.conf3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
index 1d7bb0ba..1d8d3fe7 100644
--- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
+++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
@@ -45,6 +45,9 @@ volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
+[Element Line HP Swap]
+switch = on
+
; This profile path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
diff --git a/src/modules/alsa/mixer/paths/analog-output.conf b/src/modules/alsa/mixer/paths/analog-output.conf
index 50fc88ea..16dadc44 100644
--- a/src/modules/alsa/mixer/paths/analog-output.conf
+++ b/src/modules/alsa/mixer/paths/analog-output.conf
@@ -38,6 +38,9 @@ override-map.2 = all-left,all-right
switch = off
volume = off
+[Element Line HP Swap]
+switch = off
+
; This profile path is intended to control the default output, not the
; headphones. But it should not hurt if we leave the headphone jack
; enabled nonetheless.