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>
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
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
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
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
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
[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
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
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
[Option Int Mic Boost:off]
name = input-boost-off
-
[Element Internal Mic]
switch = mute
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
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
[Option Int Mic Boost:off]
name = input-boost-off
-
[Element Internal Mic]
required-any = any
switch = mute
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
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
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
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
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