From b0e966a8488e19fcc1c7eb86a217c5f7675a4da0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 29 Feb 2012 22:23:39 +0100 Subject: omap3isp: Enable statistics for snapshot capture Signed-off-by: Laurent Pinchart --- isp/omap3isp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/isp/omap3isp.c b/isp/omap3isp.c index f100254..ac9cc4a 100644 --- a/isp/omap3isp.c +++ b/isp/omap3isp.c @@ -1339,6 +1339,8 @@ static void omap3_isp_snapshot_event(void *priv) /* We're done, stop the stream and resume the viewfinder. */ isp->ops->unwatch_fd(isp->snapshot.output->video->fd); + omap3_isp_stats_stop(isp); + ret = omap3_isp_video_stop(isp->snapshot.output); if (ret < 0) { printf("error: streamoff failed for snapshot\n"); @@ -1388,6 +1390,9 @@ int omap3_isp_snapshot_capture(struct omap3_isp_device *isp) isp->ops->watch_fd(isp->snapshot.output->video->fd, OMAP3_ISP_EVENT_READ, omap3_isp_snapshot_event, isp); + /* Start the statistics engine. */ + omap3_isp_stats_start(isp); + ret = omap3_isp_video_start(isp->snapshot.output); if (ret < 0) { printf("error: streamon failed for snapshot\n"); -- cgit v1.2.3