]> git.proxmox.com Git - mirror_qemu.git/commitdiff
audio/hda: adjust larger gaps faster
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Jul 2018 14:55:11 +0000 (16:55 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Jul 2018 09:45:33 +0000 (11:45 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180702145513.11481-1-kraxel@redhat.com

hw/audio/hda-codec.c

index 31c66d4255c642f73a7c2167cb372b2df1c5a6fe..9f630fa37ffda87b3448672a2edf785f909abf4e 100644 (file)
@@ -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;
     }