]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11990): saa7134-video.c: fix the block bug
authorfigo.zhang <figo.zhang@kolorific.com>
Fri, 8 May 2009 02:31:02 +0000 (23:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:07:50 +0000 (19:07 -0300)
commit5ad557f1fc4d5863556b21f942853dc4aa59bb1d
treeb1b1d68cbae2f0883b230c74ba3ebd1963e7333f
parent6f5a189d22acb1e6db3bd2eb81d1bcf2a59cd7c6
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>
drivers/media/video/saa7134/saa7134-video.c