summaryrefslogtreecommitdiffstats
path: root/sound/drivers/pcsp/pcsp.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-26 14:13:03 +0100
committerTakashi Iwai <tiwai@suse.de>2008-11-26 14:13:03 +0100
commiteea0579fc85e64e9f05361d5aacf496fe7a151aa (patch)
tree3671619779847120761225c679fd2e9a2f117205 /sound/drivers/pcsp/pcsp.h
parente7dd8c1bdacf658b0ade51facb2f7eaf40eb0ac4 (diff)
downloadblackbird-op-linux-eea0579fc85e64e9f05361d5aacf496fe7a151aa.tar.gz
blackbird-op-linux-eea0579fc85e64e9f05361d5aacf496fe7a151aa.zip
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>
Diffstat (limited to 'sound/drivers/pcsp/pcsp.h')
-rw-r--r--sound/drivers/pcsp/pcsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/drivers/pcsp/pcsp.h b/sound/drivers/pcsp/pcsp.h
index 70533a333b5b..cdef2664218f 100644
--- a/sound/drivers/pcsp/pcsp.h
+++ b/sound/drivers/pcsp/pcsp.h
@@ -62,6 +62,8 @@ struct snd_pcsp {
unsigned short port, irq, dma;
spinlock_t substream_lock;
struct snd_pcm_substream *playback_substream;
+ unsigned int fmt_size;
+ unsigned int is_signed;
size_t playback_ptr;
size_t period_ptr;
atomic_t timer_active;
OpenPOWER on IntegriCloud