alsa-mixer: Support more phantom jacks
authorDavid Henningsson <david.henningsson@canonical.com>
Thu, 21 Mar 2013 18:28:49 +0000 (19:28 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Mon, 25 Mar 2013 07:30:32 +0000 (08:30 +0100)
It's fairly uncommon, but it happens that jack detection is enabled
for some reason, e g hardware design. In that case, we cannot use
jack detection, but we can still use the hint to pick up that there
is a path.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/mixer/paths/analog-input-dock-mic.conf
src/modules/alsa/mixer/paths/analog-input-front-mic.conf
src/modules/alsa/mixer/paths/analog-input-linein.conf
src/modules/alsa/mixer/paths/analog-input-mic.conf
src/modules/alsa/mixer/paths/analog-input-rear-mic.conf
src/modules/alsa/mixer/paths/analog-output-headphones.conf

index 240b5f0..f6ea94b 100644 (file)
@@ -25,6 +25,11 @@ name = analog-input-microphone-dock
 [Jack Dock Mic]
 required-any = any
 
+[Jack Dock Mic Phantom]
+state.plugged = unknown
+state.unplugged = unknown
+required-any = any
+
 [Element Dock Mic Boost]
 required-any = any
 switch = select
index 0b069f9..bb2e806 100644 (file)
@@ -25,6 +25,11 @@ name = analog-input-microphone-front
 [Jack Front Mic]
 required-any = any
 
+[Jack Front Mic Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 [Element Front Mic Boost]
 required-any = any
 switch = select
index 3bcf436..3a8c2a0 100644 (file)
@@ -24,6 +24,11 @@ priority = 81
 [Jack Line]
 required-any = any
 
+[Jack Line Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 [Element Capture]
 switch = mute
 volume = merge
index 8aaf0cb..9e5f044 100644 (file)
@@ -25,6 +25,11 @@ name = analog-input-microphone
 [Jack Mic]
 required-any = any
 
+[Jack Mic Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 [Element Mic Boost]
 required-any = any
 switch = select
index 1e6fa57..397efba 100644 (file)
@@ -25,6 +25,11 @@ name = analog-input-microphone-rear
 [Jack Rear Mic]
 required-any = any
 
+[Jack Rear Mic Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 [Element Rear Mic Boost]
 required-any = any
 switch = select
index df0f198..b878dc7 100644 (file)
@@ -28,9 +28,19 @@ device.icon_name = audio-headphones
 [Jack Front Headphone]
 required-any = any
 
+[Jack Front Headphone Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 [Jack Headphone]
 required-any = any
 
+[Jack Headphone Phantom]
+required-any = any
+state.plugged = unknown
+state.unplugged = unknown
+
 # This jack can be either a headphone *or* a mic. Used on some ASUS netbooks.
 [Jack Headphone Mic]
 required-any = any