android_kernel_google_msm/drivers/media/video/gspca
Hans de Goede 6ca3f255f7 V4L/DVB (13140): gspca_jeilinj: once one frame is discarded it keeps discarding all frames
While checking all gspca sub drivers pkt_scan functions for a bug I found in
1 of them (and after checking also in another), I noticed a bug in the
gspca_jeilinj work queue function, once it has decided to start discard a
frame because the application is not reading fast enough (and thus returning
buffers to fill fast enough), it never stops discarding.

This patch fixes this by simply completely removing the "discarding"
variable, if we need to discard the current frame because there is no buffer
to store it, the "frame" pointer will be NULL, so that is all we need to
check.

I've also moved the gspca_get_i_frame() call and the writing of the jpg
header to the buffer to after the first usb_bulk_msg() call, as we don't
need it before that, and that will give the app slightly more time to
queue a buffer for us to fill.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-12-05 18:40:31 -02:00
..
gl860
m5602 V4L/DVB (13257): gspca - m5602-s5k4aa: Add vflip for Fujitsu Amilo Xi 2528 2009-11-07 12:55:12 -02:00
stv06xx V4L/DVB (13122): gscpa - stv06xx + ov518: dont discard every other frame 2009-11-07 12:55:05 -02:00
conex.c
etoms.c
finepix.c
gspca.c V4L/DVB (13115): gspca - main: More information messages. 2009-12-05 18:40:25 -02:00
gspca.h
jeilinj.c V4L/DVB (13140): gspca_jeilinj: once one frame is discarded it keeps discarding all frames 2009-12-05 18:40:31 -02:00
jpeg.h
Kconfig
Makefile
mars.c
mr97310a.c V4L/DVB (13139): gspca_mr97310a: Improve VGA sensor type detection 2009-12-05 18:40:30 -02:00
ov519.c V4L/DVB (13116): gspca - ov519: Webcam 041e:4067 added. 2009-12-05 18:40:25 -02:00
ov534.c
pac207.c
pac7311.c V4L/DVB (13121): gspca - pac7311: add comment about JPEG header 2009-12-05 18:40:27 -02:00
pac_common.h
sn9c20x.c
sonixb.c
sonixj.c
spca500.c
spca501.c
spca505.c
spca506.c
spca508.c
spca561.c
sq905.c V4L/DVB (13138): gspca_sq905: cleanup sq905_dostream 2009-12-05 18:40:30 -02:00
sq905c.c V4L/DVB (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers. 2009-06-16 18:20:54 -03:00
stk014.c
sunplus.c
t613.c
tv8532.c
vc032x.c
zc3xx-reg.h
zc3xx.c V4L/DVB (13114): gspca - zc3xx.c: Bad init sequences of sensor cs2102. 2009-12-05 18:40:24 -02:00