[media] v4l: omap4iss: csi2: Perform real frame number propagation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 7 Jul 2014 21:44:15 +0000 (18:44 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 10:55:30 +0000 (08:55 -0200)
Compute the pipeline frame number from the frame number sent by the
sensor instead of incrementing the frame number in software. This
improves dropped frames detection.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/omap4iss/iss.c
drivers/staging/media/omap4iss/iss_csi2.c
drivers/staging/media/omap4iss/iss_csi2.h
drivers/staging/media/omap4iss/iss_regs.h

index cc1dfad..d6534f5 100644 (file)
@@ -612,7 +612,12 @@ static int iss_pipeline_enable(struct iss_pipeline *pipe,
                ret = v4l2_subdev_call(subdev, video, s_stream, mode);
                if (ret < 0 && ret != -ENOIOCTLCMD)
                        return ret;
+
+               if (subdev == &iss->csi2a.subdev ||
+                   subdev == &iss->csi2b.subdev)
+                       pipe->do_propagation = true;
        }
+
        iss_print_status(pipe->output->iss);
        return 0;
 }