alsactl init: Handle "Capture Source" and "Mic Boost" in the default script

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2010-09-07 17:07:12 +02:00
parent 0fea2452cb
commit 52bd2f8ace

View file

@ -185,6 +185,11 @@ CTL{name}="Capture Volume",CTL{do_search}=="1", \
CTL{name}="Capture Switch",CTL{do_search}=="1", \ CTL{name}="Capture Switch",CTL{do_search}=="1", \
CTL{values}="on" 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{name}="Input Source",PROGRAM!="__ctl_search", GOTO=""
CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO="" CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO=""
CTL{enums}=="*|Mic|*",CTL{values}="Mic" 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" CTL{enums}=="*|Mic|*",CTL{values}="Mic"
LABEL="" LABEL=""
CTL{name}="Mic Boost",CTL{do_search}=="1", CTL{values}="on"
CTL{name}="Internal Mic Boost",CTL{do_search}=="1", CTL{values}="on" CTL{name}="Internal Mic Boost",CTL{do_search}=="1", CTL{values}="on"