V4L/DVB: gspca_ovfx2: drop first frames in stream if not synced
authorHans de Goede <hdegoede@redhat.com>
Sat, 8 May 2010 11:55:42 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:06:03 +0000 (14:06 -0300)
commitd6b6d7aef458e1c1ce6997929d38aaa48fe637c2
tree2f937c093e04cb4063633535ff528a2f1cb5e59f
parentccfb30288228aaaf40a849bffe434bc9eb46b23c
V4L/DVB: gspca_ovfx2: drop first frames in stream if not synced

With the ovfx2 bridge sometimes the first few frames in a stream
would be no good, as the bridge and sensor are not in complete hsync /
vsync yet. This can easily be detected by checking the framesize. So if the
framesize is short and it is one of the 1ste 3 frames after an sd_start,
drop it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov519.c