]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ALSA: pcsp - Fix starting the stream with HRTIMER_CB_IRQSAFE_UNLOCK
authorTakashi Iwai <tiwai@suse.de>
Wed, 26 Nov 2008 13:13:03 +0000 (14:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Nov 2008 13:13:03 +0000 (14:13 +0100)
commiteea0579fc85e64e9f05361d5aacf496fe7a151aa
tree3671619779847120761225c679fd2e9a2f117205
parente7dd8c1bdacf658b0ade51facb2f7eaf40eb0ac4
ALSA: pcsp - Fix starting the stream with HRTIMER_CB_IRQSAFE_UNLOCK

With the callback mode HRTIMER_CB_IRQSAFE_UNLOCK, the start of the
stream with zero delay doesn't work.  Since IRQSAFE mode is removed,
we have to change the pcsp start-up code.

This patch splits the callback function to two parts, the triggering
of the port and the calculation of the expire time, and the update of
the ALSA PCM core.  The first part is called both from the trigger-start
and the hrtimer callback while the latter is handled only in the
hrtimer callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcsp/pcsp.h
sound/drivers/pcsp/pcsp_lib.c