From 59050948896a763afd32118a03ad259094bfa54e Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Tue, 20 Dec 2011 09:16:02 +0100 Subject: [PATCH] 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 Signed-off-by: David Henningsson --- .../mixer/paths/analog-input-dock-mic.conf | 16 +++++++ .../mixer/paths/analog-input-front-mic.conf | 16 +++++++ .../paths/analog-input-internal-mic.conf | 16 +++++++ .../alsa/mixer/paths/analog-input-linein.conf | 47 +++++++++++++++---- .../alsa/mixer/paths/analog-input-mic.conf | 16 +++++++ .../mixer/paths/analog-input-rear-mic.conf | 16 +++++++ 6 files changed, 119 insertions(+), 8 deletions(-) diff --git a/src/modules/alsa/mixer/paths/analog-input-dock-mic.conf b/src/modules/alsa/mixer/paths/analog-input-dock-mic.conf index 489cf90f0..afac27301 100644 --- a/src/modules/alsa/mixer/paths/analog-input-dock-mic.conf +++ b/src/modules/alsa/mixer/paths/analog-input-dock-mic.conf @@ -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 diff --git a/src/modules/alsa/mixer/paths/analog-input-front-mic.conf b/src/modules/alsa/mixer/paths/analog-input-front-mic.conf index 5ae516c50..852e7e972 100644 --- a/src/modules/alsa/mixer/paths/analog-input-front-mic.conf +++ b/src/modules/alsa/mixer/paths/analog-input-front-mic.conf @@ -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 diff --git a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf index 70a1cd125..dd400754e 100644 --- a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf +++ b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf @@ -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 diff --git a/src/modules/alsa/mixer/paths/analog-input-linein.conf b/src/modules/alsa/mixer/paths/analog-input-linein.conf index 038f649a2..a432d6e1d 100644 --- a/src/modules/alsa/mixer/paths/analog-input-linein.conf +++ b/src/modules/alsa/mixer/paths/analog-input-linein.conf @@ -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 diff --git a/src/modules/alsa/mixer/paths/analog-input-mic.conf b/src/modules/alsa/mixer/paths/analog-input-mic.conf index 50d4c458c..4cebc4eaa 100644 --- a/src/modules/alsa/mixer/paths/analog-input-mic.conf +++ b/src/modules/alsa/mixer/paths/analog-input-mic.conf @@ -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 diff --git a/src/modules/alsa/mixer/paths/analog-input-rear-mic.conf b/src/modules/alsa/mixer/paths/analog-input-rear-mic.conf index 404610698..e2b2671eb 100644 --- a/src/modules/alsa/mixer/paths/analog-input-rear-mic.conf +++ b/src/modules/alsa/mixer/paths/analog-input-rear-mic.conf @@ -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