[ALSA] snd-hda-intel: Improve azx_position_ok()
authorJaroslav Kysela <perex@perex.cz>
Tue, 11 May 2010 10:10:47 +0000 (12:10 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 11 May 2010 10:17:55 +0000 (12:17 +0200)
commitf48f606d9f85a8b25c716082c73c36e9ff6f0cde
tree3c3cf4754a49d9bdc5f3bd648b53860dbc696ab5
parente54637205b00837bf00de916b0ae361c6aa0b139
[ALSA] snd-hda-intel: Improve azx_position_ok()

Add back the zero return value (activate workqueue) when
bdl_pos_adj is nonzero for position check.

Do the position related check only for first next period
using wallclk counter.

Return -1 value (ignore interrupt) when period_bytes
variable is zero.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_intel.c