slitaz-tools view tinyutils/setmixer @ rev 623

gettextize tazkeymap and make pot
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jun 14 22:35:33 2011 +0200 (2011-06-14)
parents 03f99c1394ce
children d9959b8f00dc
line source
1 #!/bin/sh
2 # Set and store default mixer volumes for SliTaz. Used at boot time
3 # if a sound card has been detected automatically and can be used
4 # directly.
5 #
7 echo "Setting default mixer volumes..."
8 amixer -s -q <<EOF
9 set Master 75% unmute
10 set Master -12dB
11 set 'Master Mono' 75% unmute
12 set 'Master Mono' -12dB
13 set Front 75% unmute
14 set Front -12dB
15 set PCM 90% unmute
16 set PCM 0dB
17 mixer Synth 90% unmute
18 mixer Synth 0dB
19 mixer CD 90% unmute
20 mixer CD 0dB
21 # mute mic
22 set Mic 0% mute
23 # ESS 1969 chipset has 2 PCM channels
24 set PCM,1 90% unmute
25 set PCM,1 0dB
26 # Trident/YMFPCI/emu10k1
27 set Wave 100% unmute
28 set Music 100% unmute
29 set AC97 100% unmute
30 # CS4237B chipset:
31 set 'Master Digital' 75% unmute
32 # Envy24 chips with analog outs
33 set DAC 90% unmute
34 set DAC -12dB
35 set DAC,0 90% unmute
36 set DAC,0 -12dB
37 set DAC,1 90% unmute
38 set DAC,1 -12dB
39 # some notebooks use headphone instead of master
40 set Headphone 75% unmute
41 set Headphone -12dB
42 set Playback 100% unmute
43 # turn off digital switches
44 set "SB Live Analog/Digital Output Jack" off
45 set "Audigy Analog/Digital Output Jack" off
46 EOF
48 # Store config
49 alsactl store