alsa-utils/alsactl
Takashi Sakamoto 440ea7d38d alsactl: handle disconnection of sound card
Once sound card becomes disconnection state, corresponding control node
becomes to emit error event for listeners. When catching this type of
event, event dispatcher should stop observation of the node. However,
at present, a mode of monitor can't handle this correctly. As a result,
poll(2) is executed quite frequently in loop with no wait. This results
100% consumption of CPU time.

This commit takes the dispatcher to remove the node from observation
list when detecting the disconnection state.

Reported-by: Thomas Gläßle <thomas@coldfix.de>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2018-10-14 16:57:15 +02:00
..
init alsactl: init/ca0106, init/hda - use CTL{values} instead CTL{value} 2016-03-22 16:54:05 +01:00
.gitignore alsactl: systemd and udev hookup 2010-11-23 10:42:35 +01:00
90-alsa-restore.rules.in alsactl: Fixup test for mydatadir/sbindir 2014-06-13 11:54:45 +02:00
alsa-restore.service.in alsactl: Only start restore service when asoundrc file exists 2017-12-14 11:24:40 +01:00
alsa-state.service.in alsactl: Move systemd unit start-up from basic.target to sound.target 2017-10-06 14:32:16 +02:00
alsactl.1 alsactl: add -L (no-lock) and change -D (lock-dir) to -O (state-lock-file) 2014-05-07 11:20:16 +02:00
alsactl.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
alsactl.h alsactl: aded missing monitor() prototype 2014-09-24 10:46:02 +02:00
alsactl_init.xml alsactl: Read only *.conf files when a directory is passed via INCLUDE 2012-06-14 16:06:42 +02:00
daemon.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
init_parse.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
init_sysdeps.c alsa-utils check if __USE_BSD is defined before compiling "BSD functions" 2008-12-08 11:55:27 +01:00
init_sysfs.c alsactl: terminate readlink result string 2015-07-13 16:37:28 +02:00
init_utils_run.c Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
init_utils_string.c Fix misc compile warnings in alsactl 2009-02-18 15:34:57 +01:00
list.h Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
lock.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
Makefile.am alsactl: Only start restore service when asoundrc file exists 2017-12-14 11:24:40 +01:00
monitor.c alsactl: handle disconnection of sound card 2018-10-14 16:57:15 +02:00
state.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00
utils.c Change FSF address (Franklin Street) 2017-11-14 14:28:53 +01:00