Репозитории ALT
S: | 1.2.8-alt2 |
D: | 1.0.16-alt1 |
5.1: | 1.0.21-alt2 |
4.1: | 1.0.15-alt1 |
4.0: | 1.0.14-alt3 |
+updates: | 1.0.14-alt3 |
3.0: | 1.0.9a-alt2 |
Другие репозитории
Upstream: | 1.0.16rc1 |
Группа :: Система/Ядро и оборудование
Пакет: alsa-utils
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
#
# set default volumes for playback on ALSA
#
# set_default_mixer [-f] [card#]
#
# written by Takashi Iwai <tiwai@suse.de>
#
if [ -f /etc/asound.state -a x$1 != x-f ]; then
/usr/sbin/alsactl restore >/dev/null 2>&1
exit 0
fi
if [ x$1 = x-f ]; then
shift
fi
if [ -n "$1" ]; then
card="-c $1"
fi
function mixer() {
amixer $card set "$1" "$2" >/dev/null 2>&1
amixer $card set "$1" unmute >/dev/null 2>&1
}
mixer Master 75%
mixer PCM 90%
mixer Synth 90%
mixer CD 90%
# mute mic
amixer set Mic 0% mute >/dev/null 2>&1
# ESS 1969 chipset has 2 PCM channels
mixer PCM,1 90%
# Trident/YMFPCI/emu10k1
mixer Wave 100%
mixer Music 100%
mixer AC97 100%
# CS4237B chipset:
mixer 'Master Digital' 75%
# Envy24 chips with analog outs
mixer DAC 90%
mixer DAC,0 90%
mixer DAC,1 90%
# some notebooks use headphone instead of master
mixer Headphone 75%
mixer Playback 100%
exit 0