]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ali5451: fix timeout handling in snd_ali_{codecs,timer}_ready()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 23 Aug 2009 13:27:25 +0000 (15:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 23 Aug 2009 16:58:07 +0000 (18:58 +0200)
commitd90237bf3ac8f98cffa4971e8d134ca976700774
tree667e5e1b54749f5dedfabb22f5d884429332a145
parent3c35da889243a06be63ab0095c6f7c8ffe076bb6
ALSA: ali5451: fix timeout handling in snd_ali_{codecs,timer}_ready()

Modify loops in such way that the register value is checked also after
the timeout condition, just in case the heavy interrupt load etc. caused
the thread to sleep for the time period exceeding the timeout value.

While at it remove an extra ALI_STIMER read from snd_ali_stimer_ready().

Reported-by: Jack Byer <ojbyer@usa.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ali5451/ali5451.c