diff options
author | 2015-05-13 22:39:03 +0800 | |
---|---|---|
committer | 2015-05-19 09:32:29 +0200 | |
commit | 13a988396cab68e6c6afd33e461a9e52ce23ff63 (patch) | |
tree | 546fd85f5d70daee71117ae79a1a7cb556ac6881 /net/switchdev/switchdev.c | |
parent | Merge tag 'asoc-fix-v4.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus (diff) | |
download | wireguard-linux-13a988396cab68e6c6afd33e461a9e52ce23ff63.tar.xz wireguard-linux-13a988396cab68e6c6afd33e461a9e52ce23ff63.zip |
ALSA: pcm: Modify double acknowledged interrupts check condition
Currently in snd_pcm_update_hw_ptr0 during interrupt,
we consider there were double acknowledged interrupts when:
1. HW reported pointer is smaller than expected, and
2. Time from last update time (hdelta) is over half a buffer time.
However, when HW reported pointer is only a few bytes smaller than
expected, and when hdelta is just a little larger than half a buffer time
(e.g. ping-pong buffer), it wrongly treats this IRQ as double acknowledged.
The condition #2 uses jiffies, but jiffies is not high resolution
since it is integer. We should consider jiffies inaccuracy.
Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions