alsa-mixer: When selecting an input, turn off boosts of other inputs
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 20 Dec 2011 08:16:02 +0000 (09:16 +0100)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 5 Jan 2012 13:49:56 +0000 (19:19 +0530)
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>
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-internal-mic.conf
src/modules/alsa/mixer/paths/analog-input-linein.conf
src/modules/alsa/mixer/paths/analog-input-mic.conf
src/modules/alsa/mixer/paths/analog-input-rear-mic.conf

index 489cf90..afac273 100644 (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
index 5ae516c..852e7e9 100644 (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
index 70a1cd1..dd40075 100644 (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
index 038f649..a432d6e 100644 (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
index 50d4c45..4cebc4e 100644 (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
index 4046106..e2b2671 100644 (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