Message ID | 20180703121013.12126-2-kraxel@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] audio/hda: adjust larger gaps faster | expand |
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; }
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180702145513.11481-1-kraxel@redhat.com --- hw/audio/hda-codec.c | 3 +++ 1 file changed, 3 insertions(+)