summaryrefslogtreecommitdiff
path: root/src/modules/alsa/mixer/paths
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2017-05-25 11:10:33 +0800
committerTanu Kaskinen <tanuk@iki.fi>2017-06-01 00:53:31 +0300
commite3b64d8fd394fdd0b70dfd14a4a9b90c27369a99 (patch)
tree1dc82849c0a4f7b2e26f4c51b0fd1e9feb9e636a /src/modules/alsa/mixer/paths
parent73cc75dd8620d9c4d72fba52e9da2f0df5f83120 (diff)
alsa: make priority of the port headset-mic higher than headphone-mic
There are two reasons for this change: 1. If it is a Dell desktop machine with the realtek codec, and there is no internal microphone on it, there is one physical audio jack which can support headphone, headset and microphone, but this audio jack does not have hardware capability to distinguish what is plugged in, after users plug in a headphone and select headphone from UI program, the headphone can't output any sound. There are many reasons for this issue, one of them is the active_port of pa_source is set to headphone-mic, that means the kernel audio driver will configure this audio jack to be a microphone jack instead of headphone jack. If we make the priority of headset-mic a bit higher than headphone-mic, the headset-mic will be the active_port of pa_source unless users select the headphone-mic on purpose, then this issue will be fixed. 2. Nowadays, the headset is more popular than traditional microphone, It is highly possible that users plug in a headset instead of microphone, it makes sense to make the headset-mic's priority higher than headphone-mic's. Signed-off-by: Hui Wang <hui.wang@canonical.com>
Diffstat (limited to 'src/modules/alsa/mixer/paths')
-rw-r--r--src/modules/alsa/mixer/paths/analog-input-headset-mic.conf2
1 files changed, 1 insertions, 1 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 b669bc4aa..579db6bb7 100644
--- a/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
+++ b/src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
@@ -18,7 +18,7 @@
; See analog-output.conf.common for an explanation on the directives
[General]
-priority = 87
+priority = 88
description-key = analog-input-microphone-headset
[Jack Headset Mic]