Commit 22d948a2 authored by Jindrich Makovicka's avatar Jindrich Makovicka Committed by malc

fix 100% CPU load when idle with ALSA

Playback control function did not disable polling when playback stops.
Caused busy spinning of the main loop due to unprocessed events.
Signed-off-by: default avatarJindrich Makovicka <>
Signed-off-by: default avatarmalc <>
parent f871d689
......@@ -889,6 +889,10 @@ static int alsa_ctl_out (HWVoiceOut *hw, int cmd, ...)
ldebug ("disabling voice\n");
if (hw->poll_mode) {
hw->poll_mode = 0;
alsa_fini_poll (&alsa->pollhlp);
return alsa_voice_ctl (alsa->handle, "playback", 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment