From: Zev Weiss Date: Tue, 15 Oct 2019 04:38:02 +0000 (-0500) Subject: alsactl: avoid needless wakeups in monitor loop. X-Git-Tag: v1.2.3~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5fe6b866594c6d59d1960356590a00ccc4cdf4c7;p=alsa-utils.git alsactl: avoid needless wakeups in monitor loop. The timeout wasn't really being used for anything; disabling it should reduce idle energy consumption slightly. Signed-off-by: Zev Weiss Reviewed-by: Takashi Sakamoto Tested-by: Takashi Sakamoto Signed-off-by: Jaroslav Kysela --- diff --git a/alsactl/monitor.c b/alsactl/monitor.c index cf4167b..fa6cd85 100644 --- a/alsactl/monitor.c +++ b/alsactl/monitor.c @@ -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;