summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-02-29 22:23:39 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-05-01 12:13:56 +0200
commitb0e966a8488e19fcc1c7eb86a217c5f7675a4da0 (patch)
treee8503429c1970857608523c3630f1e781fd6bb0e
parentde8d5a0d80daba0b840a4f9714aee238966ab0a4 (diff)
omap3isp: Enable statistics for snapshot capture
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--isp/omap3isp.c5
1 files changed, 5 insertions, 0 deletions
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");