Home | History | Annotate | Download | only in init
      1 #
      2 # Default ALSA volume levels and setting when initialization database fails.
      3 #
      4 # Basic rules are:
      5 #  - keep volumes at minimal level, but sound should be hearable
      6 #  - enable just main speakers for playback and main microphone for recording
      7 #
      8 
      9 # **************************************************************************
     10 # playback
     11 # **************************************************************************
     12 
     13 ENV{volume}:="-20dB"
     14 
     15 CTL{reset}="mixer"
     16 CTL{name}="Playback Volume",PROGRAM=="__ctl_search", \
     17   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     18 CTL{name}="Playback Switch",PROGRAM=="__ctl_search", \
     19   CTL{values}="on"
     20 
     21 CTL{reset}="mixer"
     22 CTL{name}="Master Playback Volume",PROGRAM=="__ctl_search", \
     23   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     24 CTL{name}="Master Playback Switch",PROGRAM=="__ctl_search", \
     25   CTL{values}="on"
     26 
     27 CTL{reset}="mixer"
     28 CTL{name}="Master Digital Playback Volume",PROGRAM=="__ctl_search", \
     29   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     30 CTL{name}="Master Digital Playback Switch",PROGRAM=="__ctl_search", \
     31   CTL{values}="on"
     32 
     33 CTL{reset}="mixer"
     34 CTL{name}="Front Playback Volume",PROGRAM=="__ctl_search", \
     35   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     36 CTL{name}="Front Playback Switch",PROGRAM=="__ctl_search", \
     37   CTL{values}="on"
     38 
     39 CTL{reset}="mixer"
     40 CTL{name}="Headphone Playback Volume",PROGRAM=="__ctl_search", \
     41   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     42 CTL{name}="Headphone Playback Switch",PROGRAM=="__ctl_search", \
     43   CTL{values}="on"
     44 
     45 CTL{reset}="mixer"
     46 CTL{name}="Speaker Playback Volume",PROGRAM=="__ctl_search", \
     47   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     48 CTL{name}="Speaker Playback Switch",PROGRAM=="__ctl_search", \
     49   CTL{values}="on"
     50 
     51 CTL{reset}="mixer"
     52 CTL{name}="PC Speaker Playback Volume",PROGRAM=="__ctl_search", \
     53   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     54 CTL{name}="PC Speaker Playback Switch",PROGRAM=="__ctl_search", \
     55   CTL{values}="on"
     56 
     57 CTL{reset}="mixer"
     58 CTL{name}="PCM Playback Volume",PROGRAM=="__ctl_search", \
     59   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     60 CTL{name}="PCM Playback Switch",PROGRAM=="__ctl_search", \
     61   CTL{values}="on"
     62 
     63 CTL{reset}="mixer"
     64 CTL{name}="PCM Playback Volume",CTL{index}="1",PROGRAM=="__ctl_search", \
     65   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     66 CTL{name}="PCM Playback Switch",CTL{index}="1",PROGRAM=="__ctl_search", \
     67   CTL{values}="on"
     68 
     69 CTL{reset}="mixer"
     70 CTL{name}="DAC Playback Volume",PROGRAM=="__ctl_search", \
     71   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     72 CTL{name}="DAC Playback Switch",PROGRAM=="__ctl_search", \
     73   CTL{values}="on"
     74 
     75 CTL{reset}="mixer"
     76 CTL{name}="Synth Playback Volume",,PROGRAM=="__ctl_search", \
     77   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     78 CTL{name}="Synth Playback Switch",PROGRAM=="__ctl_search", \
     79   CTL{values}="on"
     80 
     81 CTL{reset}="mixer"
     82 CTL{name}="Wave Playback Volume",PROGRAM=="__ctl_search", \
     83   CTL{values}="100%"
     84 CTL{name}="Wave Playback Switch",PROGRAM=="__ctl_search", \
     85   CTL{values}="on"
     86 
     87 CTL{reset}="mixer"
     88 CTL{name}="Music Playback Volume",PROGRAM=="__ctl_search", \
     89   CTL{values}="100%"
     90 CTL{name}="Music Playback Switch",PROGRAM=="__ctl_search", \
     91   CTL{values}="on"
     92 
     93 CTL{reset}="mixer"
     94 CTL{name}="CD Playback Volume",PROGRAM=="__ctl_search", \
     95   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
     96 CTL{name}="CD Playback Switch",PROGRAM=="__ctl_search", \
     97   CTL{values}="on"
     98 
     99 CTL{reset}="mixer"
    100 CTL{name}="Mono Playback Volume",PROGRAM=="__ctl_search", \
    101   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
    102 CTL{name}="Mono Playback Switch",PROGRAM=="__ctl_search", \
    103   CTL{values}="on"
    104 
    105 CTL{reset}="mixer"
    106 CTL{name}="Master Mono Playback Volume",PROGRAM=="__ctl_search", \
    107   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
    108 CTL{name}="Master Mono Playback Switch",PROGRAM=="__ctl_search", \
    109   CTL{values}="on"
    110 
    111 CTL{reset}="mixer"
    112 CTL{name}="AC97 Playback Volume",PROGRAM=="__ctl_search", \
    113   CTL{values}="100%"
    114 CTL{name}="AC97 Playback Switch",PROGRAM=="__ctl_search", \
    115   CTL{values}="on"
    116 
    117 #
    118 # Powermacs
    119 #
    120 
    121 CTL{reset}="mixer"
    122 CTL{name}="DRC Range",PROGRAM=="__ctl_search", \
    123   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
    124 
    125 # **************************************************************************
    126 # capture
    127 # **************************************************************************
    128 
    129 ENV{volume}:="20dB"
    130 
    131 CTL{reset}="mixer"
    132 CTL{name}="Capture Volume",PROGRAM=="__ctl_search", \
    133   CTL{values}="$env{volume}",RESULT!="0",CTL{values}="75%"
    134 CTL{name}="Capture Switch",PROGRAM=="__ctl_search", \
    135   CTL{values}="on"
    136 
    137 CTL{name}="Input Source",PROGRAM=="__ctl_search", \
    138   CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", \
    139   GOTO="end_input_source"
    140 CTL{name}="Input Source",PROGRAM=="__ctl_search", \
    141   CTL{enums}=="*|Mic|*",CTL{values}="Mic"
    142 LABEL="end_input_source"
    143 
    144 CTL{name}="Internal Mic Boost",PROGRAM=="__ctl_search", \
    145   CTL{values}="on"
    146