qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster
Date: Wed, 27 Jun 2018 13:19:25 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 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 fc4945086b..8a8214de74 100644
--- a/hw/audio/hda-codec.c
+++ b/hw/audio/hda-codec.c
@@ -204,6 +204,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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]