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 <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>
This commit is contained in:
Zev Weiss 2019-10-14 23:38:02 -05:00 committed by Jaroslav Kysela
parent 5830fc726a
commit 5fe6b86659

View 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;