]> git.baikalelectronics.ru Git - kernel.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)
commit0ea4ba2d263899ac30dc17addecbc40bb1570dc4
tree3671619779847120761225c679fd2e9a2f117205
parent08882bfc6690349b306a6068c2c1e3e9f825764e
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