• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 standard outputs for playback and main microphone for recording
7#
8
9# **************************************************************************
10# playback
11# **************************************************************************
12
13ENV{ppercent}:="75%"
14ENV{cpercent}:="75%"
15ENV{pvolume}:="-20dB"
16ENV{cvolume}:="12dB"
17ENV{has_pmaster_vol}:="false"
18
19CTL{reset}="mixer"
20CTL{name}="Playback Volume",CTL{do_search}=="1", \
21  CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
22CTL{name}="Playback Switch",CTL{do_search}=="1", \
23  CTL{values}="on"
24
25CTL{reset}="mixer"
26CTL{name}="Master Playback Volume",CTL{do_search}=="1", \
27  ENV{has_pmaster_vol}:="true", \
28  CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
29CTL{name}="Master Playback Switch",CTL{do_search}=="1", \
30  CTL{values}="on"
31
32CTL{reset}="mixer"
33CTL{name}="Master Front Playback Volume",CTL{do_search}=="1", \
34  ENV{has_pmaster_vol}:="true", \
35  CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
36CTL{name}="Master Front Playback Switch",CTL{do_search}=="1", \
37  CTL{values}="on"
38
39CTL{reset}="mixer"
40CTL{name}="Master Digital Playback Volume",CTL{do_search}=="1", \
41  CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
42CTL{name}="Master Digital Playback Switch",CTL{do_search}=="1", \
43  CTL{values}="on"
44
45CTL{reset}="mixer"
46CTL{name}="Line Out Playback Volume",PROGRAM!="__ctl_search",GOTO=""
47# if master volume control is present, turn line out volume to max
48ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
49ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
50CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
51LABEL=""
52CTL{name}="Line Out Playback Switch",CTL{do_search}=="1", \
53  CTL{values}="on"
54
55CTL{reset}="mixer"
56CTL{name}="Front Playback Volume",PROGRAM!="__ctl_search",GOTO=""
57# if master volume control is present, turn front volume to max
58ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
59ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
60CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
61LABEL=""
62CTL{name}="Front Playback Switch",CTL{do_search}=="1", \
63  CTL{values}="on"
64
65CTL{reset}="mixer"
66CTL{name}="Surround Playback Volume",PROGRAM!="__ctl_search",GOTO=""
67# if master volume control is present, turn front volume to max
68ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
69ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
70CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
71LABEL=""
72CTL{name}="Surround Playback Switch",CTL{do_search}=="1", \
73  CTL{values}="on"
74
75CTL{reset}="mixer"
76CTL{name}="Center Playback Volume",PROGRAM!="__ctl_search",GOTO=""
77# if master volume control is present, turn front volume to max
78ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
79ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
80CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
81LABEL=""
82CTL{name}="Center Playback Switch",CTL{do_search}=="1", \
83  CTL{values}="on"
84
85CTL{reset}="mixer"
86CTL{name}="LFE Playback Volume",PROGRAM!="__ctl_search",GOTO=""
87# if master volume control is present, turn front volume to max
88ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
89ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
90CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
91LABEL=""
92CTL{name}="LFE Playback Switch",CTL{do_search}=="1", \
93  CTL{values}="on"
94
95CTL{reset}="mixer"
96CTL{name}="Headphone Playback Volume",PROGRAM!="__ctl_search",GOTO=""
97# if master volume control is present, turn headphone volume to max
98ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
99ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
100CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
101LABEL=""
102CTL{name}="Headphone Playback Switch",CTL{do_search}=="1", \
103  CTL{values}="on"
104
105CTL{reset}="mixer"
106CTL{name}="Headphone Playback Volume",CTL{index}="1",PROGRAM!="__ctl_search",\
107  GOTO=""
108# if master volume control is present, turn headphone volume to max
109ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
110ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
111CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
112LABEL=""
113CTL{name}="Headphone Playback Switch",CTL{index}="1",CTL{do_search}=="1", \
114  CTL{values}="on"
115
116CTL{reset}="mixer"
117CTL{name}="Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
118# if master volume control is present, turn speaker volume to max
119ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
120ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
121CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
122LABEL=""
123CTL{name}="Speaker Playback Switch",CTL{do_search}=="1", \
124  CTL{values}="on"
125
126CTL{reset}="mixer"
127CTL{name}="Front Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
128# if master volume control is present, turn speaker volume to max
129ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
130ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
131CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
132LABEL=""
133CTL{name}="Front Speaker Playback Switch",CTL{do_search}=="1", \
134  CTL{values}="on"
135
136CTL{reset}="mixer"
137CTL{name}="Surround Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
138# if master volume control is present, turn speaker volume to max
139ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
140ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
141CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
142LABEL=""
143CTL{name}="Surround Speaker Playback Switch",CTL{do_search}=="1", \
144  CTL{values}="on"
145
146CTL{reset}="mixer"
147CTL{name}="Center Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
148# if master volume control is present, turn speaker volume to max
149ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
150ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
151CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
152LABEL=""
153CTL{name}="Center Speaker Playback Switch",CTL{do_search}=="1", \
154  CTL{values}="on"
155
156CTL{reset}="mixer"
157CTL{name}="LFE Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
158# if master volume control is present, turn speaker volume to max
159ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
160ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
161CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
162LABEL=""
163CTL{name}="LFE Speaker Playback Switch",CTL{do_search}=="1", \
164  CTL{values}="on"
165
166CTL{reset}="mixer"
167CTL{name}="PC Speaker Playback Volume",CTL{do_search}=="1", \
168  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
169CTL{name}="PC Speaker Playback Switch",CTL{do_search}=="1", \
170  CTL{values}="on"
171
172CTL{reset}="mixer"
173CTL{name}="PCM Playback Volume",PROGRAM!="__ctl_search", \
174 CTL{name}="PCM Volume",PROGRAM!="__ctl_search", GOTO=""
175# if master volume control is present, turn PCM volume to max
176ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
177ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
178# exception - some HDA codecs have shifted dB range
179CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{write}=="0dB",GOTO=""
180CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{write}=="0dB",GOTO=""
181CTL{write}!="$env{pvolume}",CTL{values}="75%"
182LABEL=""
183CTL{name}="PCM Playback Switch",CTL{do_search}=="1", CTL{values}="on"
184CTL{name}="PCM Switch",CTL{do_search}=="1",CTL{values}="on"
185
186CTL{reset}="mixer"
187CTL{name}="PCM Playback Volume",CTL{index}="1",PROGRAM!="__ctl_search", \
188  CTL{name}="PCM Volume",PROGRAM!="__ctl_search",GOTO=""
189# if master volume control is present, turn PCM volume to max
190ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
191ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
192# exception - some HDA codecs have shifted dB range
193CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{write}=="0dB",GOTO=""
194CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{write}=="0dB",GOTO=""
195CTL{write}!="$env{pvolume}",CTL{values}="75%"
196LABEL=""
197CTL{name}="PCM Playback Switch",CTL{index}="1",CTL{do_search}=="1", \
198  CTL{values}="on"
199CTL{name}="PCM Switch",CTL{index}="1",CTL{do_search}=="1", \
200  CTL{values}="on"
201
202CTL{reset}="mixer"
203CTL{name}="DAC Playback Volume",CTL{do_search}=="1", \
204  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
205CTL{name}="DAC Playback Switch",CTL{do_search}=="1", \
206  CTL{values}="on"
207
208CTL{reset}="mixer"
209CTL{name}="Synth Playback Volume",CTL{do_search}=="1", \
210  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
211CTL{name}="Synth Playback Switch",CTL{do_search}=="1", \
212  CTL{values}="on"
213
214CTL{reset}="mixer"
215CTL{name}="Wave Playback Volume",CTL{do_search}=="1", \
216  CTL{values}="100%"
217CTL{name}="Wave Playback Switch",CTL{do_search}=="1", \
218  CTL{values}="on"
219
220CTL{reset}="mixer"
221CTL{name}="Music Playback Volume",CTL{do_search}=="1", \
222  CTL{values}="100%"
223CTL{name}="Music Playback Switch",CTL{do_search}=="1", \
224  CTL{values}="on"
225
226CTL{reset}="mixer"
227CTL{name}="CD Playback Volume",CTL{do_search}=="1", \
228  CTL{values}="0%"
229CTL{name}="CD Playback Switch",CTL{do_search}=="1", \
230  CTL{values}="off"
231
232CTL{reset}="mixer"
233CTL{name}="Mono Playback Volume",CTL{do_search}=="1", \
234  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
235CTL{name}="Mono Playback Switch",CTL{do_search}=="1", \
236  CTL{values}="on"
237
238CTL{reset}="mixer"
239CTL{name}="Master Mono Playback Volume",CTL{do_search}=="1", \
240  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
241CTL{name}="Master Mono Playback Switch",CTL{do_search}=="1", \
242  CTL{values}="on"
243
244CTL{reset}="mixer"
245CTL{name}="AC97 Playback Volume",CTL{do_search}=="1", \
246  CTL{values}="100%"
247CTL{name}="AC97 Playback Switch",CTL{do_search}=="1", \
248  CTL{values}="on"
249
250#
251# Powermacs
252#
253
254CTL{reset}="mixer"
255CTL{name}="DRC Range",CTL{do_search}=="1", \
256  CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
257
258# **************************************************************************
259# capture
260# **************************************************************************
261
262CTL{reset}="mixer"
263CTL{name}="Capture Volume",CTL{do_search}=="1", \
264  CTL{write}!="$env{cvolume}",CTL{values}="$env{cpercent}"
265CTL{name}="Capture Switch",CTL{do_search}=="1", \
266  CTL{values}="on"
267
268CTL{name}="Capture Source",PROGRAM!="__ctl_search", GOTO=""
269CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO=""
270CTL{enums}=="*|Mic|*",CTL{values}="Mic"
271LABEL=""
272
273CTL{name}="Input Source",PROGRAM!="__ctl_search", GOTO=""
274CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", GOTO=""
275CTL{enums}=="*|Mic|*",CTL{values}="Mic"
276LABEL=""
277
278CTL{name}="Digital Input Source",PROGRAM!="__ctl_search", GOTO=""
279CTL{enums}=="*|Digital Mic 1|*",CTL{values}="Digital Mic 1", GOTO=""
280CTL{enums}=="*|Mic|*",CTL{values}="Mic"
281LABEL=""
282
283CTL{name}="Mic Boost",CTL{do_search}=="1", CTL{values}="on"
284CTL{name}="Internal Mic Boost",CTL{do_search}=="1", CTL{values}="on"
285