[pulseaudio-discuss] [PATCH 2/4] alsa-mixer: Add Phantom Jack support
David Henningsson
david.henningsson at canonical.com
Thu Jun 28 07:27:05 PDT 2012
For kernel 3.6, "phantom jack" kctls have been added. They serve as
a marker that a particular port exist. They were made so we can detect
that there actually are speakers and internal mic on a laptop, even if
there are no other indications (volume controls etc).
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
.../mixer/paths/analog-input-internal-mic.conf | 4 ++++
.../alsa/mixer/paths/analog-output-speaker.conf | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
index ba15f1c..a8cbb40 100644
--- a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
+++ b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
@@ -39,6 +39,10 @@ state.unplugged = unknown
state.plugged = no
state.unplugged = unknown
+[Jack Internal Mic Phantom]
+state.plugged = unknown
+state.unplugged = unknown
+
[Element Internal Mic Boost]
required-any = any
switch = select
diff --git a/src/modules/alsa/mixer/paths/analog-output-speaker.conf b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
index 9c58ed9..cea02c2 100644
--- a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
+++ b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
@@ -26,6 +26,11 @@ name = analog-output-speaker
state.plugged = no
state.unplugged = unknown
+[Jack Speaker Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
[Element Hardware Master]
switch = mute
volume = merge
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list