[alsa-utils][PATCH 0/9] alsactl: friendly to pluggable devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2018-September/140580.html

Takashi Sakamoto (9):
  alsactl: split event loop code to a function
  alsactl: add an iterator of registered instances of sound card
  alsactl: use epoll(7) instead of poll(2)
  alsactl: use link list to maintain source of events
  alsactl: use a list of source for event dispatcher instead of an array
    of source
  alsactl: obsolete array for maintenance of handlers
  alsactl: handle disconnection of sound card
  alsactl: handle detection of new sound card
  alsactl: use signalfd to catch UNIX signal

 alsactl/monitor.c | 422 ++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 375 insertions(+), 47 deletions(-)

-- 
2.19.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux