]> code.delx.au - pulseaudio/commitdiff
alsa-mixer: Prefer moving "Capture" before moving boosts
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 2 Aug 2013 13:03:26 +0000 (15:03 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 2 Aug 2013 13:17:04 +0000 (15:17 +0200)
Some HD-audio codecs (at least ALC269VB and ALC283) become quite noisy on
high Mic Boost levels. So e g, if there is a "Mic Boost" and a "Capture"
control, both ranging from 0 dB to +30 dB, you get better quality if
"Mic Boost" is 0 dB and "Capture" is +30 dB, than the other way around.

By changing the order in the configuration files, this patch makes us prefer
leaving "Mic Boost" low and "Capture" high if the user selects a medium gain.

(This is based on limited experience, and there is no guarantee that there are
no sound cards that work the other way around, and therefore this patch could
potentially regress quality on those machines. Hopefully those are fewer, so
this is what we should default to.)

BugLink: https://bugs.launchpad.net/1085402
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-headphone-mic.conf
src/modules/alsa/mixer/paths/analog-input-headset-mic.conf
src/modules/alsa/mixer/paths/analog-input-internal-mic-always.conf
src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
src/modules/alsa/mixer/paths/analog-input-mic.conf
src/modules/alsa/mixer/paths/analog-input-rear-mic.conf

index 9334d451b96ef529eb7fcb5cee832af950e20b5c..85a865831dad23c7b0c4e2d7a5dbc5ccc95f71c5 100644 (file)
@@ -30,6 +30,12 @@ state.plugged = unknown
 state.unplugged = unknown
 required-any = any
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Dock Mic Boost]
 required-any = any
 switch = select
@@ -50,12 +56,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index 3fb5f5e854d6a782b6b0466fbc5d96d3aa74bc7d..5265e5b6592ed94b5bc9e245a0ad6c0f066b551e 100644 (file)
@@ -30,6 +30,12 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Front Mic Boost]
 required-any = any
 switch = select
@@ -50,12 +56,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index 688b8ac97b2ff91960a35cee7c42aec0fe5708d2..3a19e0165ee160e1ca6aea8eabf17245c7810cb7 100644 (file)
@@ -27,21 +27,21 @@ description-key = analog-input-microphone
 required-any = any
 state.plugged = unknown
 
-[Element Headphone Mic Boost]
-required-any = any
-switch = select
+[Element Capture]
+switch = mute
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Headphone Mic]
+[Element Headphone Mic Boost]
 required-any = any
-switch = mute
+switch = select
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
+[Element Headphone Mic]
+required-any = any
 switch = mute
 volume = merge
 override-map.1 = all
index 0a3d661f5017faf620fa64ca5206a245906cff3e..aeb2cec60c34bfc299bbed8868996bc00290ed56 100644 (file)
@@ -36,6 +36,12 @@ state.plugged = unknown
 [Jack Headphone Mic]
 state.plugged = unknown
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Headset Mic Boost]
 required-any = any
 switch = select
@@ -57,12 +63,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index cd08531b75d3b2db1914863ef137c3b330a27e33..e9c288eb42f1aa28b42f21a90eae4468425a2af7 100644 (file)
@@ -39,6 +39,12 @@ state.unplugged = unknown
 state.plugged = no
 state.unplugged = unknown
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Internal Mic Boost]
 switch = select
 volume = merge
@@ -63,7 +69,6 @@ name = input-boost-on
 [Option Int Mic Boost:off]
 name = input-boost-off
 
-
 [Element Internal Mic]
 switch = mute
 volume = merge
@@ -76,12 +81,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index ae3e9a832769e3afd8d8263f5171ea231d0e2319..5424a1b07eb3182227d7fd17c422ab7d33852738 100644 (file)
@@ -44,6 +44,12 @@ state.plugged = unknown
 state.unplugged = unknown
 required-any = any
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Internal Mic Boost]
 required-any = any
 switch = select
@@ -70,7 +76,6 @@ name = input-boost-on
 [Option Int Mic Boost:off]
 name = input-boost-off
 
-
 [Element Internal Mic]
 required-any = any
 switch = mute
@@ -85,12 +90,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index 17f3988f4e159cd8170e868a13bd479b1762c96a..2ce6dd39cdcf3c7490547aec870d170b7d0aac4f 100644 (file)
@@ -30,6 +30,12 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Mic Boost]
 required-any = any
 switch = select
@@ -50,12 +56,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select
 
index ac78b5b985bd6fbbf091a635cdb546f62237f3f9..eed4f83f8b66efb4f639a23578a8ef7200208664 100644 (file)
@@ -30,6 +30,12 @@ required-any = any
 state.plugged = unknown
 state.unplugged = unknown
 
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
+
 [Element Rear Mic Boost]
 required-any = any
 switch = select
@@ -50,12 +56,6 @@ volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Capture]
-switch = mute
-volume = merge
-override-map.1 = all
-override-map.2 = all-left,all-right
-
 [Element Input Source]
 enumeration = select