V4L/DVB (5891): zr36067: Turn off raw capture properly
authorTrent Piepho <xyzzy@speakeasy.org>
Tue, 17 Jul 2007 21:29:45 +0000 (18:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 30 Jul 2007 19:26:26 +0000 (16:26 -0300)
commit9896bbc1972e3a0595f06c23692a20150a789308
tree1dc4b82182251bc747c8f40b3a791607124c39dd
parent603d6f2c8f9f3604f9c6c1f8903efc2df30a000f
V4L/DVB (5891): zr36067: Turn off raw capture properly

When raw capture was turned off, the current capturing frame (v4l_grab_frame)
wasn't reset to NO_GRAB_ACTIVE.  If capture was turned back on, the driver
would think this frame was currently being captured, and wait for it to
complete before starting a new frame.  The hardware on the other hand would
not be actively capturing a frame.  The result was the driver would wait
forever for v4l_grab_frame to be captured.

Some calls to zr36057_set_memgrab(0) were missing spin-locks, which have been
added.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/zoran_device.c
drivers/media/video/zoran_driver.c