summaryrefslogtreecommitdiff
path: root/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-04-12 11:56:17 +0200
committerArun Raghavan <arun.raghavan@collabora.co.uk>2013-04-14 10:12:00 +0530
commitff96c63a3eccb0ed948edddc1dbc475ac6b50741 (patch)
treed5c11dfce3d349df59ab7250d8310571c07343ae /src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
parent4096989ad6d9c6c36c90fe109a471946289ec931 (diff)
alsa-mixer: Add more jack detection for Headset mic path
On some machines which has a headset jack, the headset mic does not have its own jack detection. Then we can look at the headphone jack to get some indication: We know that if the headphone is unplugged, so is the headset mic. The opposite is not guaranteed since the user might have plugged in a headphone, not a headset. Also, there exist multi-function jacks which support both Headphone, Mic in headphone jack and Headset Mic. In this case the jack name will be "Headphone Mic", not "Headphone", so we need to include this name too. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/modules/alsa/mixer/paths/analog-input-headset-mic.conf')
-rw-r--r--src/modules/alsa/mixer/paths/analog-input-headset-mic.conf6
1 files changed, 6 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 810c85f7d..9a9dc357f 100644
--- a/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
+++ b/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
@@ -30,6 +30,12 @@ state.plugged = unknown
state.unplugged = unknown
required-any = any
+[Jack Headphone]
+state.plugged = unknown
+
+[Jack Headphone Mic]
+state.plugged = unknown
+
[Element Headset Mic Boost]
required-any = any
switch = select