mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 23:55:42 +01:00
Initialize volumes using dB in alsaconf
Initialize volumes by specifying dB values in alsaconf. This will give more sane values if the mixer elements support dB. If not supported, simply the old value in percent is used.
This commit is contained in:
parent
e7985c05f7
commit
1edfd1de20
1 changed files with 11 additions and 0 deletions
|
@ -402,15 +402,22 @@ remove_ac_block() {
|
|||
set_mixers() {
|
||||
amixer -s -q <<EOF
|
||||
set Master 75% unmute
|
||||
set Master -12dB
|
||||
set 'Master Mono' 75% unmute
|
||||
set 'Master Mono' -12dB
|
||||
set Front 75% unmute
|
||||
set Front -12dB
|
||||
set PCM 90% unmute
|
||||
set PCM 0dB
|
||||
mixer Synth 90% unmute
|
||||
mixer Synth 0dB
|
||||
mixer CD 90% unmute
|
||||
mixer CD 0dB
|
||||
# mute mic
|
||||
set Mic 0% mute
|
||||
# ESS 1969 chipset has 2 PCM channels
|
||||
set PCM,1 90% unmute
|
||||
set PCM,1 0dB
|
||||
# Trident/YMFPCI/emu10k1
|
||||
set Wave 100% unmute
|
||||
set Music 100% unmute
|
||||
|
@ -419,10 +426,14 @@ set AC97 100% unmute
|
|||
set 'Master Digital' 75% unmute
|
||||
# Envy24 chips with analog outs
|
||||
set DAC 90% unmute
|
||||
set DAC -12dB
|
||||
set DAC,0 90% unmute
|
||||
set DAC,0 -12dB
|
||||
set DAC,1 90% unmute
|
||||
set DAC,1 -12dB
|
||||
# some notebooks use headphone instead of master
|
||||
set Headphone 75% unmute
|
||||
set Headphone -12dB
|
||||
set Playback 100% unmute
|
||||
# turn off digital switches
|
||||
set "SB Live Analog/Digital Output Jack" off
|
||||
|
|
Loading…
Reference in a new issue