From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kolorific.com ([61.63.28.39]:60397 "EHLO mail.kolorific.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755072AbZEHCa7 (ORCPT ); Thu, 7 May 2009 22:30:59 -0400 Subject: [PATCH][RESEND]saa7134-video.c: fix the block bug From: "figo.zhang" To: kraxel@bytesex.org, Hans Verkuil , Mauro Carvalho Chehab Cc: g.liakhovetski@gmx.de, linux-media@vger.kernel.org, figo1802@126.com Content-Type: text/plain Date: Fri, 08 May 2009 10:31:02 +0800 Message-Id: <1241749862.3420.21.camel@myhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: 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 , inital the curr pointer to be NULL int the buffer_prepare(). Signed-off-by: Figo.zhang --- 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 493cad9..550d6ce 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, 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)