[pulseaudio-discuss] [PATCH 2/4] alsa-mixer: Add "Line HP Swap" element

David Henningsson david.henningsson at canonical.com
Mon Aug 15 05:05:48 PDT 2011


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 at canonical.com>
---
 .../alsa/mixer/paths/analog-output-headphones.conf |    3 +++
 src/modules/alsa/mixer/paths/analog-output.conf    |    3 +++
 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 1d7bb0b..1d8d3fe 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 50fc88e..16dadc4 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.
-- 
1.7.5.4



More information about the pulseaudio-discuss mailing list