slitaz-tools diff tinyutils/setmixer @ rev 213

bootfloppybox: may work without X11
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 18 17:29:16 2008 +0000 (2008-06-18)
parents
children db0e82bebc70
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tinyutils/setmixer	Wed Jun 18 17:29:16 2008 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +#!/bin/sh
     1.5 +# Set and store default mixer volumes for SliTaz. Used at boot time
     1.6 +# if a sound card has been detected automaticaly and can be used
     1.7 +# directly.
     1.8 +#
     1.9 +
    1.10 +echo "Setting default mixer volumes..."
    1.11 +amixer -s -q <<EOF
    1.12 +set Master 75% unmute
    1.13 +set Master -12dB
    1.14 +set 'Master Mono' 75% unmute
    1.15 +set 'Master Mono' -12dB
    1.16 +set Front 75% unmute
    1.17 +set Front -12dB
    1.18 +set PCM 90% unmute
    1.19 +set PCM 0dB
    1.20 +mixer Synth 90% unmute
    1.21 +mixer Synth 0dB
    1.22 +mixer CD 90% unmute
    1.23 +mixer CD 0dB
    1.24 +# mute mic
    1.25 +set Mic 0% mute
    1.26 +# ESS 1969 chipset has 2 PCM channels
    1.27 +set PCM,1 90% unmute
    1.28 +set PCM,1 0dB
    1.29 +# Trident/YMFPCI/emu10k1
    1.30 +set Wave 100% unmute
    1.31 +set Music 100% unmute
    1.32 +set AC97 100% unmute
    1.33 +# CS4237B chipset:
    1.34 +set 'Master Digital' 75% unmute
    1.35 +# Envy24 chips with analog outs
    1.36 +set DAC 90% unmute
    1.37 +set DAC -12dB
    1.38 +set DAC,0 90% unmute
    1.39 +set DAC,0 -12dB
    1.40 +set DAC,1 90% unmute
    1.41 +set DAC,1 -12dB
    1.42 +# some notebooks use headphone instead of master
    1.43 +set Headphone 75% unmute
    1.44 +set Headphone -12dB
    1.45 +set Playback 100% unmute
    1.46 +# turn off digital switches
    1.47 +set "SB Live Analog/Digital Output Jack" off
    1.48 +set "Audigy Analog/Digital Output Jack" off
    1.49 +EOF
    1.50 +
    1.51 +# Store config
    1.52 +alsactl store