qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] alsa: fix 100% CPU load when idle w/ dmix


From: Jindřich Makovička
Subject: [Qemu-devel] [PATCH] alsa: fix 100% CPU load when idle w/ dmix
Date: Sun, 17 Oct 2010 12:34:56 +0200

Hi,

when using dmix as an ALSA output, the output cannot be polled and
ALSA (snd_pcm_poll_descriptors) returns the event mask set to POLLIN
instead. As this event mask is passed to the main loop, the select()
in main_loop_wait() never waits, because the output file descriptor is
never read. So, qemu/kvm ends up busy looping all the time.

The attached patch simply disables the poll mode, when ALSA returns
POLLIN in the event mask for the ALSA playback pcm handle.

-- 
Jindrich Makovicka

Attachment: alsaaudio.c.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]