2008-08-18 15:01:44 +02:00
|
|
|
#
|
|
|
|
# Default ALSA volume levels and setting when initialization database fails.
|
|
|
|
#
|
|
|
|
# Basic rules are:
|
|
|
|
# - keep volumes at minimal level, but sound should be hearable
|
|
|
|
# - enable just main speakers for playback and main microphone for recording
|
|
|
|
#
|
|
|
|
|
|
|
|
# **************************************************************************
|
|
|
|
# playback
|
|
|
|
# **************************************************************************
|
|
|
|
|
2009-05-05 10:33:08 +02:00
|
|
|
ENV{ppercent}:="75%"
|
|
|
|
ENV{cpercent}:="75%"
|
|
|
|
ENV{pvolume}:="-20dB"
|
2009-02-05 12:58:42 +01:00
|
|
|
ENV{cvolume}:="12dB"
|
2009-05-05 10:33:08 +02:00
|
|
|
ENV{has_pmaster_vol}:="false"
|
2008-08-18 15:01:44 +02:00
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Master Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
ENV{has_pmaster_vol}:="true", \
|
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Master Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Master Digital Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Master Digital Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{name}="Front Playback Volume",PROGRAM!="__ctl_search",GOTO="front0_end"
|
|
|
|
# if master volume control is present, turn front volume to max
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="front0_end"
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="front0_end"
|
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
|
|
|
LABEL="front0_end"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Front Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-05-15 12:37:48 +02:00
|
|
|
CTL{name}="Headphone Playback Volume",PROGRAM!="__ctl_search",GOTO="headphone0_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
# if master volume control is present, turn headphone volume to max
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="headphone0_end"
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="headphone0_end"
|
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
|
|
|
LABEL="headphone0_end"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Headphone Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Speaker Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Speaker Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="PC Speaker Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="PC Speaker Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-05-21 16:44:42 +02:00
|
|
|
CTL{name}="PCM Playback Volume",PROGRAM!="__ctl_search", \
|
|
|
|
CTL{name}="PCM Volume",PROGRAM!="__ctl_search", GOTO="pcm0_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
# if master volume control is present, turn PCM volume to max
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="pcm0_end"
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="pcm0_end"
|
2009-02-05 12:58:42 +01:00
|
|
|
# exception - some HDA codecs have shifted dB range
|
|
|
|
CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="pcm0_end"
|
2009-04-28 11:19:48 +02:00
|
|
|
CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="pcm0_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="75%"
|
2009-02-05 12:58:42 +01:00
|
|
|
LABEL="pcm0_end"
|
2009-05-21 16:44:42 +02:00
|
|
|
CTL{name}="PCM Playback Switch",PROGRAM=="__ctl_search", CTL{values}="on"
|
|
|
|
CTL{name}="PCM Switch",PROGRAM=="__ctl_search",CTL{values}="on"
|
2008-08-18 15:01:44 +02:00
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-02-05 12:58:42 +01:00
|
|
|
CTL{name}="PCM Playback Volume",CTL{index}="1",PROGRAM!="__ctl_search", \
|
2009-05-21 16:44:42 +02:00
|
|
|
CTL{name}="PCM Volume",PROGRAM!="__ctl_search",GOTO="pcm1_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
# if master volume control is present, turn PCM volume to max
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="pcm1_end"
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="pcm1_end"
|
2009-02-05 12:58:42 +01:00
|
|
|
# exception - some HDA codecs have shifted dB range
|
|
|
|
CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="pcm1_end"
|
2009-04-28 11:19:48 +02:00
|
|
|
CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="pcm1_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="75%"
|
2009-02-05 12:58:42 +01:00
|
|
|
LABEL="pcm1_end"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="PCM Playback Switch",CTL{index}="1",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
2009-05-21 16:44:42 +02:00
|
|
|
CTL{name}="PCM Switch",CTL{index}="1",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
2008-08-18 15:01:44 +02:00
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="DAC Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="DAC Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-05-15 12:37:48 +02:00
|
|
|
CTL{name}="Synth Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Synth Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Wave Playback Volume",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="100%"
|
|
|
|
CTL{name}="Wave Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Music Playback Volume",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="100%"
|
|
|
|
CTL{name}="Music Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
2009-02-05 12:58:42 +01:00
|
|
|
CTL{name}="CD Playback Volume",PROGRAM!="__ctl_search", GOTO="cd0_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
# if master volume control is present, turn CD volume to max
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="cd0_end"
|
|
|
|
ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="cd0_end"
|
2009-02-05 12:58:42 +01:00
|
|
|
# exception - some HDA codecs have shifted dB range
|
|
|
|
CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="cd0_end"
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="cd0_end"
|
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2009-02-05 12:58:42 +01:00
|
|
|
LABEL="cd0_end"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="CD Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Mono Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Mono Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Master Mono Playback Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Master Mono Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="AC97 Playback Volume",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="100%"
|
|
|
|
CTL{name}="AC97 Playback Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
|
|
|
#
|
|
|
|
# Powermacs
|
|
|
|
#
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="DRC Range",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
|
|
|
|
# **************************************************************************
|
|
|
|
# capture
|
|
|
|
# **************************************************************************
|
|
|
|
|
|
|
|
CTL{reset}="mixer"
|
|
|
|
CTL{name}="Capture Volume",PROGRAM=="__ctl_search", \
|
2009-05-05 10:33:08 +02:00
|
|
|
CTL{values}="$env{cvolume}",RESULT!="0",CTL{values}="$env{cpercent}"
|
2008-08-18 15:01:44 +02:00
|
|
|
CTL{name}="Capture Switch",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|
|
|
|
|
2009-02-05 12:58:42 +01:00
|
|
|
CTL{name}="Input Source",PROGRAM!="__ctl_search", GOTO="end_input_source"
|
|
|
|
CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", \
|
2008-08-18 15:01:44 +02:00
|
|
|
GOTO="end_input_source"
|
2009-02-05 12:58:42 +01:00
|
|
|
CTL{enums}=="*|Mic|*",CTL{values}="Mic"
|
2008-08-18 15:01:44 +02:00
|
|
|
LABEL="end_input_source"
|
|
|
|
|
|
|
|
CTL{name}="Internal Mic Boost",PROGRAM=="__ctl_search", \
|
|
|
|
CTL{values}="on"
|