Skip to content
Snippets Groups Projects
Commit 22d948a2 authored by Jindřich Makovička's avatar Jindřich Makovička Committed by malc
Browse files

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 <makovick@gmail.com>
Signed-off-by: default avatarmalc <av1474@comtv.ru>
parent f871d689
No related branches found
No related tags found
No related merge requests found
......@@ -889,6 +889,10 @@ static int alsa_ctl_out (HWVoiceOut *hw, int cmd, ...)
case VOICE_DISABLE:
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment