]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: add the daemon mode
authorJaroslav Kysela <perex@perex.cz>
Fri, 5 Apr 2013 09:51:51 +0000 (11:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Apr 2013 11:47:18 +0000 (13:47 +0200)
commitcc5c3357cff87bb805494e23620bd2d675bcccbd
tree5396c281f7e13bb85fb2d4443eec12d59fbb8d1f
parentb95dd7ef468212c08434f6e7b9987f2936944b09
alsactl: add the daemon mode

For the plug-and-play hardware, like USB devices, it may be helpful
to manage the sound state periodically, before the devices are removed.

This change implements new commands 'daemon' and 'rdaemon' to save
the sound state in defined intervals when the sound controls are changed.

The udev rules can notify the daemon using the 'kill' or 'nrestore'
commands to rescan available cards in the system.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/Makefile.am
alsactl/alsactl.1
alsactl/alsactl.c
alsactl/alsactl.h
alsactl/daemon.c [new file with mode: 0644]
alsactl/lock.c [new file with mode: 0644]
alsactl/state.c
alsactl/utils.c