diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-30 18:27:26 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-30 18:27:26 +0200 |
commit | 89200e6a6d61a33ac655f8992e95304c2995924d (patch) | |
tree | 98d39116a9eca11b31c87511a0ceb9b068fd6ff1 /linux/drivers/media/video/saa7134/saa7134-alsa.c | |
parent | 0d13ec676ea2da0f31996c317b629c00e2411a35 (diff) | |
download | mediapointer-dvb-s2-89200e6a6d61a33ac655f8992e95304c2995924d.tar.gz mediapointer-dvb-s2-89200e6a6d61a33ac655f8992e95304c2995924d.tar.bz2 |
saa7134: fix ignored interrupts
From: Heikki Lindholm <holindho@cs.helsinki.fi>
The saa7134 video driver starts dropping frames when used together with the
saa7134-alsa driver. Frames are dropped because when an audio event is waiting
the driver simply ignores the interrupt and passes it on to the saa7134-alsa
interrupt handler. The alsa interrupt handler in turn acknowledges all types
of events thus clearing the pending video events as well. Fix by only masking
out the audio event in the video interrupt handler and by only acknowledging
the audio event in the alsa driver.
Signed-off-by: Heikki Lindholm <holindho@cs.helsinki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-alsa.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-alsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-alsa.c b/linux/drivers/media/video/saa7134/saa7134-alsa.c index c6715b054..8f80a6ab0 100644 --- a/linux/drivers/media/video/saa7134/saa7134-alsa.c +++ b/linux/drivers/media/video/saa7134/saa7134-alsa.c @@ -236,7 +236,8 @@ static irqreturn_t saa7134_alsa_irq(int irq, void *dev_id) if (report & SAA7134_IRQ_REPORT_DONE_RA3) { handled = 1; - saa_writel(SAA7134_IRQ_REPORT,report); + saa_writel(SAA7134_IRQ_REPORT, + SAA7134_IRQ_REPORT_DONE_RA3); saa7134_irq_alsa_done(dev, status); } else { goto out; |