alsactl init: Handle "Capture Source" and "Mic Boost" in the default script
authorJaroslav Kysela <perex@perex.cz>
Tue, 7 Sep 2010 15:07:12 +0000 (17:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 7 Sep 2010 15:07:12 +0000 (17:07 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

alsactl/init/default

index 35acfc3..9fd7972 100644 (file)
@@ -185,6 +185,11 @@ CTL{name}="Capture Volume",CTL{do_search}=="1", \
 CTL{name}="Capture Switch",CTL{do_search}=="1", \
   CTL{values}="on"
 
+CTL{name}="Capture Source",PROGRAM!="__ctl_search", GOTO=""
+CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO=""
+CTL{enums}=="*|Mic|*",CTL{values}="Mic"
+LABEL=""
+
 CTL{name}="Input Source",PROGRAM!="__ctl_search", GOTO=""
 CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO=""
 CTL{enums}=="*|Mic|*",CTL{values}="Mic"
@@ -195,4 +200,5 @@ CTL{enums}=="*|Digital Mic 1|*",CTL{values}="Digital Mic 1", GOTO=""
 CTL{enums}=="*|Mic|*",CTL{values}="Mic"
 LABEL=""
 
+CTL{name}="Mic Boost",CTL{do_search}=="1", CTL{values}="on"
 CTL{name}="Internal Mic Boost",CTL{do_search}=="1", CTL{values}="on"