9 stat_busy
"Restoring ALSA Levels"
10 /usr
/sbin
/alsactl
$ALSA_ARGS restore
18 POWERSAVE
=${POWERSAVE:-0}
19 if [ -e /sys
/module
/snd_ac97_codec
/parameters
/power_save \
20 -a $POWERSAVE -ne 0 ]; then
21 echo $POWERSAVE > /sys
/module
/snd_ac97_codec
/parameters
/power_save
25 if [ -e /sys
/module
/snd_hda_intel
/parameters
/power_save \
26 -a $POWERSAVE -ne 0 ]; then
27 echo $POWERSAVE > /sys
/module
/snd_hda_intel
/parameters
/power_save
32 SAVE_VOLUME
=${SAVE_VOLUME:-yes}
33 if [ "$SAVE_VOLUME" == "yes" ]; then
34 stat_busy
"Saving ALSA Levels"
35 /usr
/sbin
/alsactl
$ALSA_ARGS store
37 stat_busy
"Stopping ALSA"
39 if [ "$MUTE_VOLUME" == "yes" ]; then
40 /usr
/bin
/amixer
-q set Master
0 mute
55 echo "usage: $0 {start|stop|restart}"