summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-08 02:31:02 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-08 02:31:02 +0000
commit6c59e2781795481200d573e3a4ef8b033924987a (patch)
tree7366e0de67f0e937a22160d2fab3acbd47eca276 /linux/drivers
parent786a5f9aea706d50ea3f806923dcbf8100f14626 (diff)
downloadmediapointer-dvb-s2-6c59e2781795481200d573e3a4ef8b033924987a.tar.gz
mediapointer-dvb-s2-6c59e2781795481200d573e3a4ef8b033924987a.tar.bz2
saa7134-video.c: fix the block bug
From: figo.zhang <figo.zhang@kolorific.com> when re-open or re-start (video_streamon), the q->curr would not be NULL in saa7134_buffer_queue(), and all the qbuf will add to q->queue list,no one to do activate to start DMA,and then no interrupt would happened,so it will be block. In VIDEOBUF_NEEDS_INIT state, initialize the curr pointer to be NULL in the buffer_prepare(). Signed-off-by: Figo.zhang <figo.zhang@kolorific.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c
index 518de9b2c..4212c4ec8 100644
--- a/linux/drivers/media/video/saa7134/saa7134-video.c
+++ b/linux/drivers/media/video/saa7134/saa7134-video.c
@@ -1057,6 +1057,7 @@ static int buffer_prepare(struct videobuf_queue *q,
buf->vb.field = field;
buf->fmt = fh->fmt;
buf->pt = &fh->pt_cap;
+ dev->video_q.curr = NULL;
err = videobuf_iolock(q,&buf->vb,&dev->ovbuf);
if (err)