diff options
author | figo.zhang <figo.zhang@kolorific.com> | 2009-05-07 22:31:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:07:50 -0400 |
commit | d5709a0e3dfe22e24d871ef1e0eec9ae04055997 (patch) | |
tree | b1b1d68cbae2f0883b230c74ba3ebd1963e7333f /drivers/media/video/saa7134 | |
parent | 040d4cbfb3df7db8cb661a64d0d65f7e753f43d3 (diff) |
V4L/DVB (11990): saa7134-video.c: fix the block bug
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 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index ceae3c88f93e..e305c1674cee 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c | |||
@@ -1057,6 +1057,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
1057 | buf->vb.field = field; | 1057 | buf->vb.field = field; |
1058 | buf->fmt = fh->fmt; | 1058 | buf->fmt = fh->fmt; |
1059 | buf->pt = &fh->pt_cap; | 1059 | buf->pt = &fh->pt_cap; |
1060 | dev->video_q.curr = NULL; | ||
1060 | 1061 | ||
1061 | err = videobuf_iolock(q,&buf->vb,&dev->ovbuf); | 1062 | err = videobuf_iolock(q,&buf->vb,&dev->ovbuf); |
1062 | if (err) | 1063 | if (err) |