]> code.delx.au - pulseaudio/commitdiff
alsa-mixer: Fixup "Mic"/"Line"/"analog-input" paths to work with the new paths
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 5 Jan 2011 13:03:15 +0000 (14:03 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Fri, 25 Feb 2011 15:55:39 +0000 (15:55 +0000)
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
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-mic.conf.common
src/modules/alsa/mixer/paths/analog-input.conf

index 57568ccd045a0e7cb45e9fec967d2df8543c1b13..9362227915ed768718c0a1be4280d6ce8d0e4191 100644 (file)
@@ -36,12 +36,27 @@ switch = off
 volume = off
 
 [Element Line]
-required = any
+required-any = any
 switch = mute
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
+[Element Input Source]
+enumeration = select
+
+[Option Input Source:Line]
+name = analog-input-linein
+required-any = any
+
+[Element Capture Source]
+enumeration = select
+
+[Option Capture Source:Line]
+name = analog-input-linein
+required-any = any
+
+
 [Element Aux]
 switch = off
 volume = off
@@ -62,4 +77,10 @@ volume = off
 switch = off
 volume = off
 
-.include analog-input.conf.common
+[Element Mic Jack Mode]
+enumeration = select
+
+[Option Mic Jack Mode:Line In]
+priority = 19
+required-any = any
+name = input-linein
index 9b8b75a1718e2e9689e0a707db153f22cd12a615..8565ebe2b671e10f54cefa4d1eb5fa9baafd1905 100644 (file)
 # along with PulseAudio; if not, write to the Free Software Foundation,
 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 
-; For devices where a 'Mic' element exists
+; For devices where a 'Mic' or 'Mic Boost' element exists
 ;
 ; See analog-output.conf.common for an explanation on the directives
 
 [General]
-priority = 100
+priority = 89
 name = analog-input-microphone
 
-[Element Capture]
-switch = mute
+[Element Mic Boost]
+required-any = any
+switch = select
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
+[Option Mic Boost:on]
+name = input-boost-on
+
+[Option Mic Boost:off]
+name = input-boost-off
+
 [Element Mic]
-required = any
+required-any = any
 switch = mute
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
-[Element Internal Mic]
-switch = off
-volume = off
+[Element Capture]
+switch = mute
+volume = merge
+override-map.1 = all
+override-map.2 = all-left,all-right
 
-[Element Line]
-switch = off
-volume = off
+[Element Input Source]
+enumeration = select
 
-[Element Aux]
-switch = off
-volume = off
+[Option Input Source:Mic]
+name = analog-input-microphone
+
+[Element Capture Source]
+enumeration = select
+
+[Option Capture Source:Mic]
+name = analog-input-microphone
+
+;;; Some AC'97s have "Mic Select" and "Mic Boost (+20dB)"
+
+[Element Mic Select]
+enumeration = select
 
-[Element Video]
+[Option Mic Select:Mic1]
+name = input-microphone
+priority = 20
+
+[Option Mic Select:Mic2]
+name = input-microphone
+priority = 19
+
+[Element Mic Boost (+20dB)]
+switch = select
+volume = merge
+
+[Option Mic Boost (+20dB):on]
+name = input-boost-on
+
+[Option Mic Boost (+20dB):off]
+name = input-boost-off
+
+[Element Front Mic]
 switch = off
 volume = off
 
-[Element Mic/Line]
+[Element Internal Mic]
 switch = off
 volume = off
 
-[Element TV Tuner]
+[Element Rear Mic]
 switch = off
 volume = off
 
-[Element FM]
+[Element Dock Mic]
 switch = off
 volume = off
 
-.include analog-input.conf.common
 .include analog-input-mic.conf.common
index 1ffe59f3e950bdf6b4191089d5bedbae4379a07a..4bebc295a1e9ef86a3801987bd24f9f8024891dc 100644 (file)
@@ -41,3 +41,10 @@ volume = off
 [Element FM]
 switch = off
 volume = off
+
+[Element Mic Jack Mode]
+enumeration = select
+
+[Option Mic Jack Mode:Mic In]
+priority = 19
+name = input-microphone
index 305073869703bcdf0d75fd8e9bab9810197d2b74..b86c3564c42d9e41ecbbf0734f2d35c017bcab33 100644 (file)
@@ -32,9 +32,36 @@ override-map.2 = all-left,all-right
 [Element Mic]
 required-absent = any
 
+[Element Dock Mic]
+required-absent = any
+
+[Element Dock Mic Boost]
+required-absent = any
+
+[Element Front Mic]
+required-absent = any
+
+[Element Front Mic Boost]
+required-absent = any
+
+[Element Int Mic]
+required-absent = any
+
+[Element Int Mic Boost]
+required-absent = any
+
 [Element Internal Mic]
 required-absent = any
 
+[Element Internal Mic Boost]
+required-absent = any
+
+[Element Rear Mic]
+required-absent = any
+
+[Element Rear Mic Boost]
+required-absent = any
+
 [Element Line]
 required-absent = any
 
@@ -54,4 +81,3 @@ required-absent = any
 required-absent = any
 
 .include analog-input.conf.common
-.include analog-input-mic.conf.common