[media] media i.MX27 camera: Fix field_count handling
authorJavier Martin <javier.martin@vista-silicon.com>
Thu, 22 Dec 2011 15:12:00 +0000 (12:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 13:02:14 +0000 (11:02 -0200)
commitccd1a499c1675fef5d2a138617507add63cb81db
tree7f1e85857fcc173e465d6d9c5eb78a55bb169192
parentf410991dcf1fc3ad1d3311b79b4f1b917224ebed
[media] media i.MX27 camera: Fix field_count handling

To properly detect frame loss the driver must keep
track of a frame_count.

Furthermore, field_count use was erroneous because
in progressive format this must be incremented twice.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c