ALSA: ctxfi - Fix deadlock with xfi-timer
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Jun 2009 12:50:52 +0000 (14:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jun 2009 12:52:55 +0000 (14:52 +0200)
commit8dca419721d188bfee5f19fad45275856c619a5c
treee953048997ccb98e3275dc0438fc02f481ad52e3
parent635c265f32d8a3f73402813d6a8dd47f2a363df5
ALSA: ctxfi - Fix deadlock with xfi-timer

The PCM x-fi native update routine can cause deadlocks when the
trigger(START) is called while the stream is running.

This patch fixes the deadlock by just postponing the pcm period update
to the next possible wake-up.  Also it adds the flip of ti->running
flag (just to be sure as now).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/cttimer.c