1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/alsa-utils/alsa.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: ALSA Sound Mixer Loader
14 # Runlevel: 75 rcX rc2 rc3 rc4 rc5
19 block_begin(start, `Initializing ALSA mixer')
20 if [ -f /var/lib/alsa/asound.state ]; then
21 check(`D_prefix/sbin/alsactl restore')
23 echo "No saved state for audio devices, trying defaults ..."
25 amixer sset Master 80% unmute
26 amixer sset PCM 80% unmute
28 amixer sset Treble 50%
33 block_begin(stop, `Saving ALSA mixer settings')
34 if [ -e /proc/asound/card0 ]; then
35 check(`D_prefix/sbin/alsactl store')