alsa_driver: Exiting loop for need_playback and need_capture on XRUN to execute recovery

Currently even on XRUN, the xrun recovery is not executed as the
need_playback or need_capture flag is still true and so it goes
and waits on poll again.

Signed-off-by: Laxmi Devi <Laxmi.Devi@in.bosch.com>
This commit is contained in:
Laxmi Devi 2019-06-26 12:02:02 +05:30 committed by Filipe Coelho
parent a93b210134
commit fb11c75fdc
1 changed files with 1 additions and 1 deletions

View File

@ -1307,7 +1307,7 @@ alsa_driver_wait (alsa_driver_t *driver, int extra_fd, int *status, float
again:
while (need_playback || need_capture) {
while ((need_playback || need_capture) && !xrun_detected) {
int poll_result;
unsigned int ci = 0;