14 Oct
2018
14 Oct
'18
5:06 p.m.
Dne 14.10.2018 v 16:36 Takashi Sakamoto napsal(a):
Hi,
A bug was reported that monitor mode of alsactl consumes much CPU time after disconnection of any sound card[1].
This patchset improves the mode to handle connection/disconnection of sound card. Observed control nodes are maintained by list structure instead of array. Linux specific epoll(7) is used to dispatch events. Linux specific inotify(7) is used to detect connection of new sound card. Linux specific signalfd(2) is used to catch Unix signals for termination.
Thanks for your code. I reviewed this and applied to the alsa-utils git repo.
Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.