qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] audio/hda: adjust larger gaps faster
@ 2018-07-02 14:55 Gerd Hoffmann
  2018-07-02 14:55 ` [Qemu-devel] [PATCH 2/3] audio/hda: fix CID 1393631 Gerd Hoffmann
  2018-07-02 14:55 ` [Qemu-devel] [PATCH 3/3] audio: add audio timer trace points Gerd Hoffmann
  0 siblings, 2 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2018-07-02 14:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/audio/hda-codec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c
index 31c66d4255..9f630fa37f 100644
--- a/hw/audio/hda-codec.c
+++ b/hw/audio/hda-codec.c
@@ -203,6 +203,9 @@ static inline void hda_timer_sync_adjust(HDAAudioStream *st, int64_t target_pos)
     if (target_pos < -limit) {
         corr = -HDA_TIMER_TICKS;
     }
+    if (target_pos < -(2 * limit)) {
+        corr = -(4 * HDA_TIMER_TICKS);
+    }
     if (corr == 0) {
         return;
     }
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-02 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 14:55 [Qemu-devel] [PATCH 1/3] audio/hda: adjust larger gaps faster Gerd Hoffmann
2018-07-02 14:55 ` [Qemu-devel] [PATCH 2/3] audio/hda: fix CID 1393631 Gerd Hoffmann
2018-07-02 16:38   ` Philippe Mathieu-Daudé
2018-07-02 14:55 ` [Qemu-devel] [PATCH 3/3] audio: add audio timer trace points Gerd Hoffmann
2018-07-02 15:25   ` Philippe Mathieu-Daudé
2018-07-02 15:50     ` Gerd Hoffmann
2018-07-02 15:57       ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).