alsa-mixer: When selecting an input, turn off boosts of other inputs

Just like we turn off the "Front Mic" element when we select "Rear Mic",
we should also turn off the "Front Mic Boost" element. And the same for
the other inputs.

Reported-by: Len Owens <len@ovenwerks.net>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2011-12-20 09:16:02 +01:00 committed by Arun Raghavan
parent e58ee03878
commit 5905094889
6 changed files with 119 additions and 8 deletions

View file

@ -78,4 +78,20 @@ volume = off
switch = off
volume = off
[Element Mic Boost]
switch = off
volume = off
[Element Internal Mic Boost]
switch = off
volume = off
[Element Front Mic Boost]
switch = off
volume = off
[Element Rear Mic Boost]
switch = off
volume = off
.include analog-input-mic.conf.common

View file

@ -78,4 +78,20 @@ volume = off
switch = off
volume = off
[Element Mic Boost]
switch = off
volume = off
[Element Dock Mic Boost]
switch = off
volume = off
[Element Internal Mic Boost]
switch = off
volume = off
[Element Rear Mic Boost]
switch = off
volume = off
.include analog-input-mic.conf.common

View file

@ -108,4 +108,20 @@ volume = off
switch = off
volume = off
[Element Mic Boost]
switch = off
volume = off
[Element Dock Mic Boost]
switch = off
volume = off
[Element Front Mic Boost]
switch = off
volume = off
[Element Rear Mic Boost]
switch = off
volume = off
.include analog-input-mic.conf.common

View file

@ -27,14 +27,6 @@ volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Mic]
switch = off
volume = off
[Element Internal Mic]
switch = off
volume = off
[Element Line Boost]
required-any = any
switch = mute
@ -63,6 +55,45 @@ enumeration = select
name = analog-input-linein
required-any = any
[Element Mic]
switch = off
volume = off
[Element Dock Mic]
switch = off
volume = off
[Element Internal Mic]
switch = off
volume = off
[Element Front Mic]
switch = off
volume = off
[Element Rear Mic]
switch = off
volume = off
[Element Mic Boost]
switch = off
volume = off
[Element Dock Mic Boost]
switch = off
volume = off
[Element Internal Mic Boost]
switch = off
volume = off
[Element Front Mic Boost]
switch = off
volume = off
[Element Rear Mic Boost]
switch = off
volume = off
[Element Aux]
switch = off

View file

@ -101,4 +101,20 @@ volume = off
switch = off
volume = off
[Element Dock Mic Boost]
switch = off
volume = off
[Element Internal Mic Boost]
switch = off
volume = off
[Element Front Mic Boost]
switch = off
volume = off
[Element Rear Mic Boost]
switch = off
volume = off
.include analog-input-mic.conf.common

View file

@ -78,4 +78,20 @@ volume = off
switch = off
volume = off
[Element Mic Boost]
switch = off
volume = off
[Element Dock Mic Boost]
switch = off
volume = off
[Element Internal Mic Boost]
switch = off
volume = off
[Element Front Mic Boost]
switch = off
volume = off
.include analog-input-mic.conf.common