sound: revise and add new controls to default channels volume settings
This commit is contained in:
parent
376c120f8b
commit
5e6363a56d
@ -26,35 +26,50 @@ SYSCONFIG_SOUNDCARDS=/etc/sysconfig/soundcards
|
|||||||
# set default mixer volumes
|
# set default mixer volumes
|
||||||
function set_mixers() {
|
function set_mixers() {
|
||||||
[ -x /usr/bin/amixer ] || return
|
[ -x /usr/bin/amixer ] || return
|
||||||
|
channel=$1
|
||||||
|
[ "$channel" ] || channel=0
|
||||||
|
|
||||||
/usr/bin/amixer -s -q <<_EOF
|
/usr/bin/amixer -s -c $channel -q <<_EOF
|
||||||
set Master 90% unmute
|
# 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 'Master Mono' 75% unmute
|
||||||
set Front 90% unmute
|
set 'Front' 90% unmute
|
||||||
set Speaker 90% unmute
|
set 'Speaker' 90% unmute
|
||||||
set PCM 90% unmute
|
set 'PCM' 90% unmute
|
||||||
mixer Synth 90% unmute
|
set 'Surround' 90% unmute
|
||||||
mixer CD 90% unmute
|
set 'Center' 90% unmute
|
||||||
|
set 'LFE' 90% unmute
|
||||||
|
set 'Line' 75% unmute
|
||||||
|
set 'CD' 90% unmute
|
||||||
|
set 'Synth' 90% unmute
|
||||||
# mute mic
|
# mute mic
|
||||||
set Mic 0% mute
|
set 'Front Mic' 75% mute
|
||||||
|
set 'Mic' 75% mute
|
||||||
# ESS 1969 chipset has 2 PCM channels
|
# ESS 1969 chipset has 2 PCM channels
|
||||||
set PCM,1 90% unmute
|
set 'PCM,1' 90% unmute
|
||||||
# Trident/YMFPCI/emu10k1
|
# Trident/YMFPCI/emu10k1
|
||||||
set Wave 100% unmute
|
set 'Wave' 100% unmute
|
||||||
set Music 100% unmute
|
set 'Music' 100% unmute
|
||||||
set AC97 100% unmute
|
set 'AC97' 100% unmute
|
||||||
# CS4237B chipset:
|
# CS4237B chipset:
|
||||||
set 'Master Digital' 75% unmute
|
set 'Master Digital' 75% unmute
|
||||||
# Envy24 chips with analog outs
|
# Envy24 chips with analog outs
|
||||||
set DAC 90% unmute
|
set 'DAC' 90% unmute
|
||||||
set DAC,0 90% unmute
|
set 'DAC,0' 90% unmute
|
||||||
set DAC,1 90% unmute
|
set 'DAC,1' 90% unmute
|
||||||
# some notebooks use headphone instead of master
|
# Capture channels
|
||||||
set Headphone 75% unmute
|
set 'Capture' 90% unmute
|
||||||
set Playback 100% 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
|
# turn off digital switches
|
||||||
set "SB Live Analog/Digital Output Jack" off
|
set 'SB Live Analog/Digital Output Jack' off
|
||||||
set "Audigy Analog/Digital Output Jack" off
|
set 'Audigy Analog/Digital Output Jack' off
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user