22580d
#
22580d
# Note that two different ALSA card state management schemes exist and they
22580d
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
22580d
#
22580d
22580d
[Unit]
22580d
Description=Manage Sound Card State (restore and store)
22580d
ConditionPathExists=/etc/alsa/state-daemon.conf
22580d
22580d
[Service]
22580d
Type=simple
22580d
ExecStart=-/usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon
22580d
ExecStop=-/usr/sbin/alsactl -s kill save_and_quit