[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/26] audio: run downstream playback queue unconditionally
From: |
Gerd Hoffmann |
Subject: |
[PULL 03/26] audio: run downstream playback queue unconditionally |
Date: |
Thu, 13 Oct 2022 08:52:01 +0200 |
From: Volker Rümelin <vr_qemu@t-online.de>
Run the downstream playback queue even if the emulated audio
device didn't write new samples. There still may be buffered
audio samples downstream.
This is for the -audiodev out.mixing-engine=off case. Commit
a8a98cfd42 ("audio: run downstream playback queue uncondition-
ally") fixed the out.mixing-engine=on case.
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220923183640.8314-3-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/audio.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index 29da359b416b..567f953e66f9 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1143,6 +1143,10 @@ static void audio_run_out (AudioState *s)
hw_free * sw->info.bytes_per_frame);
}
+ if (hw->pcm_ops->run_buffer_out) {
+ hw->pcm_ops->run_buffer_out(hw);
+ }
+
continue;
}
@@ -1501,10 +1505,6 @@ size_t audio_generic_write(HWVoiceOut *hw, void *buf,
size_t size)
}
}
- if (hw->pcm_ops->run_buffer_out) {
- hw->pcm_ops->run_buffer_out(hw);
- }
-
return total;
}
--
2.37.3
- [PULL 00/26] Kraxel 20221013 patches, Gerd Hoffmann, 2022/10/13
- [PULL 01/26] audio: refactor code in audio_run_out(), Gerd Hoffmann, 2022/10/13
- [PULL 02/26] audio: fix GUS audio playback with out.mixing-engine=off, Gerd Hoffmann, 2022/10/13
- [PULL 03/26] audio: run downstream playback queue unconditionally,
Gerd Hoffmann <=
- [PULL 04/26] alsaaudio: reduce playback latency, Gerd Hoffmann, 2022/10/13
- [PULL 06/26] spiceaudio: add a pcm_ops buffer_get_free function, Gerd Hoffmann, 2022/10/13
- [PULL 07/26] spiceaudio: update comment, Gerd Hoffmann, 2022/10/13
- [PULL 08/26] audio: swap audio_rate_get_bytes() function parameters, Gerd Hoffmann, 2022/10/13
- [PULL 15/26] cirrus_vga: fix potential memory overflow, Gerd Hoffmann, 2022/10/13
- [PULL 23/26] qemu-edid: Restrict input parameter -d to avoid division by zero, Gerd Hoffmann, 2022/10/13
- [PULL 05/26] audio: add more audio rate control functions, Gerd Hoffmann, 2022/10/13
- [PULL 10/26] audio: refactor audio_get_avail(), Gerd Hoffmann, 2022/10/13
- [PULL 12/26] audio: prevent an integer overflow in resampling code, Gerd Hoffmann, 2022/10/13
- [PULL 16/26] docs: add firmware feature flags, Gerd Hoffmann, 2022/10/13