sound: revise and add new controls to default channels volume settings

This commit is contained in:
Silvan Calarco 2011-11-07 00:09:04 +01:00
parent 376c120f8b
commit 5e6363a56d

View File

@ -26,35 +26,50 @@ SYSCONFIG_SOUNDCARDS=/etc/sysconfig/soundcards
# set default mixer volumes
function set_mixers() {
[ -x /usr/bin/amixer ] || return
channel=$1
[ "$channel" ] || channel=0
/usr/bin/amixer -s -q <<_EOF
set Master 90% unmute
/usr/bin/amixer -s -c $channel -q <<_EOF
# Playback channels
set 'Master' 90% unmute
# some notebooks use headphone instead of master
set 'Headphone' 75% unmute
set 'Playback' 100% unmute
set 'Master Mono' 75% unmute
set Front 90% unmute
set Speaker 90% unmute
set PCM 90% unmute
mixer Synth 90% unmute
mixer CD 90% unmute
set 'Front' 90% unmute
set 'Speaker' 90% unmute
set 'PCM' 90% unmute
set 'Surround' 90% unmute
set 'Center' 90% unmute
set 'LFE' 90% unmute
set 'Line' 75% unmute
set 'CD' 90% unmute
set 'Synth' 90% unmute
# mute mic
set Mic 0% mute
set 'Front Mic' 75% mute
set 'Mic' 75% mute
# ESS 1969 chipset has 2 PCM channels
set PCM,1 90% unmute
set 'PCM,1' 90% unmute
# Trident/YMFPCI/emu10k1
set Wave 100% unmute
set Music 100% unmute
set AC97 100% unmute
set 'Wave' 100% unmute
set 'Music' 100% unmute
set 'AC97' 100% unmute
# CS4237B chipset:
set 'Master Digital' 75% unmute
# Envy24 chips with analog outs
set DAC 90% unmute
set DAC,0 90% unmute
set DAC,1 90% unmute
# some notebooks use headphone instead of master
set Headphone 75% unmute
set Playback 100% unmute
set 'DAC' 90% unmute
set 'DAC,0' 90% unmute
set 'DAC,1' 90% unmute
# Capture channels
set 'Capture' 90% unmute
set 'Capture 1' 90% unmute
set 'Capture 2' 90% unmute
# virtual channels
set 'Capture Gain' 50% unmute
set 'Output Gain' 75% unmute
# turn off digital switches
set "SB Live Analog/Digital Output Jack" off
set "Audigy Analog/Digital Output Jack" off
set 'SB Live Analog/Digital Output Jack' off
set 'Audigy Analog/Digital Output Jack' off
_EOF
}