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