audio/hda: adjust larger gaps faster

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180702145513.11481-1-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2018-07-02 16:55:11 +02:00
parent ab08440a4e
commit 9d340f6755
1 changed files with 3 additions and 0 deletions

View 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;
}