aboutsummaryrefslogtreecommitdiff
path: root/hw/audio
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-07-02 16:55:11 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-07-03 11:45:33 +0200
commit9d340f6755fe3ee311f6758a453fae785ec05528 (patch)
tree5a5205e3d8b9a4ae987883b5d1b75fc6a0733727 /hw/audio
parentab08440a4ee09032d1a9cb22fdcab23bc7e1c656 (diff)
audio/hda: adjust larger gaps faster
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180702145513.11481-1-kraxel@redhat.com
Diffstat (limited to 'hw/audio')
-rw-r--r--hw/audio/hda-codec.c3
1 files changed, 3 insertions, 0 deletions
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;
}