]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: avoid needless wakeups in monitor loop.
authorZev Weiss <zev@bewilderbeest.net>
Tue, 15 Oct 2019 04:38:02 +0000 (23:38 -0500)
committerJaroslav Kysela <perex@perex.cz>
Tue, 14 Apr 2020 13:34:00 +0000 (15:34 +0200)
The timeout wasn't really being used for anything; disabling it should
reduce idle energy consumption slightly.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/monitor.c

index cf4167bee1653c3960e554b841ae30930f1f5c87..fa6cd85d2ab2afda774e2b3e83d5e02c55427674 100644 (file)
@@ -340,7 +340,7 @@ static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs,
                int count;
                int i;
 
-               count = epoll_wait(epfd, epev, max_ev_count, 200);
+               count = epoll_wait(epfd, epev, max_ev_count, -1);
                if (count < 0) {
                        if (errno == EINTR)
                                continue;