Re: [PATCH] alsactl: avoid needless wakeups in monitor loop.

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

 



Dne 12. 04. 20 v 4:19 Takashi Sakamoto napsal(a):
Hi,

On Mon, Oct 14, 2019 at 11:38:02PM -0500, Zev Weiss wrote:
The timeout wasn't really being used for anything; disabling it should
reduce idle energy consumption slightly.

Signed-off-by: Zev Weiss <zev@xxxxxxxxxxxxxxxxx>
---
  alsactl/monitor.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

I overlooked it as well... It looks good to me.

Reviewed-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
Tested-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>

Applied. Thanks.

				Jaroslav


diff --git a/alsactl/monitor.c b/alsactl/monitor.c
index 6b090e4f5c92..6d9328d899a4 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) {
  			err = count;
  			break;
--
2.23.0

Regards

Takashi Sakamoto



--
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.



[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