website: en/index.t2t: refresh news section adding the announcement for Qi 1.1
[dragora.git] / archive / alsa-utils / rc.alsa
bloba98e72f2bef34f7e0562d66d1bb19a7e245aaaed
1 #! /bin/sh -
2 # /etc/rc.d/rc.alsa - Start ALSA (Advanced Linux Sound Architecture).
4 # Version: (#)1.00 2009-01-04 (MAF)
5 # (#)1.01 2010-06-21 (MAF)
6 # (#)1.02 2010-12-09 (MAF)
7 # (#)1.03 2011-03-31 (MAF)
8 # (#)1.04 2017-07-27 (MAF)
10 # Written by Matias Fonzo for Dragora GNU/Linux-Libre,
11 # under the terms of the Apache License 2.0.
13 type alsactl > /dev/null 2>&1 || exit 2;
14 type amixer > /dev/null 2>&1 || exit 2;
16 if test -d /proc/asound
17 then
18 if test -r /var/lib/alsa/asound.state
19 then
20 echo "Restoring ALSA mixer from /var/lib/alsa/asound.state ..."
21 alsactl restore
22 else
23 echo "Setting values for the ALSA mixer ..."
24 amixer set Master 90% unmute > /dev/null 2>&1
25 amixer set Front 80% unmute > /dev/null 2>&1
26 amixer set PCM 80% unmute > /dev/null 2>&1
27 amixer set Side 80% unmute > /dev/null 2>&1
28 amixer set CD 90% unmute > /dev/null 2>&1
29 amixer set Headphone unmute > /dev/null 2>&1
30 amixer set Mic 90% unmute > /dev/null 2>&1
31 amixer set 'Front Mic' 90% unmute > /dev/null 2>&1
32 alsactl store