1c72fcc34Sopenharmony_ci#
2c72fcc34Sopenharmony_ci# Note that two different ALSA card state management schemes exist and they
3c72fcc34Sopenharmony_ci# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
4c72fcc34Sopenharmony_ci#
5c72fcc34Sopenharmony_ci
6c72fcc34Sopenharmony_ci[Unit]
7c72fcc34Sopenharmony_ciDescription=Save/Restore Sound Card State
8c72fcc34Sopenharmony_ciConditionPathExists=!@daemonswitch@
9c72fcc34Sopenharmony_ciConditionPathExistsGlob=/dev/snd/control*
10c72fcc34Sopenharmony_ci
11c72fcc34Sopenharmony_ci[Service]
12c72fcc34Sopenharmony_ciType=oneshot
13c72fcc34Sopenharmony_ciRemainAfterExit=true
14c72fcc34Sopenharmony_ciExecStart=-@sbindir@/alsactl restore
15c72fcc34Sopenharmony_ciExecStop=-@sbindir@/alsactl store
16