From: Volker RĂ¼melin <vr_qemu@t-online.de>
Date: Sun, 20 Sep 2020 17:17:27 +0000 (+0200)
Subject: audio: run downstream playback queue unconditionally
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a8a98cfd42;p=qemu.git

audio: run downstream playback queue unconditionally

Run the downstream playback queue even if there are no samples
in the mixing engine buffer. The downstream queue may still have
queued samples.

Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20200920171729.15861-7-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---

diff --git a/audio/audio.c b/audio/audio.c
index 8587e3d152..6ff3f168d7 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1186,6 +1186,9 @@ static void audio_run_out (AudioState *s)
                     }
                 }
             }
+            if (hw->pcm_ops->run_buffer_out) {
+                hw->pcm_ops->run_buffer_out(hw);
+            }
             continue;
         }