]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: add locking for per-card initialization
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Feb 2022 14:31:33 +0000 (15:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 2 Feb 2022 14:34:40 +0000 (15:34 +0100)
commit8403967669eaa9405a43d430b4ac7e5f0ea1b75e
tree82e43af59fdb6c65034f7b6f20d9cfc8f579ee2e
parent64fa37f09b29a7675246a36361e25fd218ab7852
alsactl: add locking for per-card initialization

Introduce the -K,--lock-dir parameter to specify the locking
directory. If the locking is active, files card<NUM>.lock
are used to serialize the multiple initialization requests
(udev, service).

Allow the relative -O,--lock-file argument (it's default now).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/Makefile.am
alsactl/alsactl.c
alsactl/alsactl.h
alsactl/lock.c
alsactl/state.c
alsactl/utils.c