From 0048b16618a94c3c002bb620e5d5503039853a43 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 24 Oct 2012 01:47:31 +0200 Subject: isp: Add crop support for the viewfinder Signed-off-by: Laurent Pinchart --- isp/omap3isp.c | 3 ++- isp/omap3isp.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'isp') diff --git a/isp/omap3isp.c b/isp/omap3isp.c index 7da0bf2..20ef13d 100644 --- a/isp/omap3isp.c +++ b/isp/omap3isp.c @@ -1120,6 +1120,7 @@ static int omap3_isp_viewfinder_setup_pipeline(struct omap3_isp_device *isp) } int omap3_isp_viewfinder_setup(struct omap3_isp_device *isp, + struct v4l2_rect *crop, struct v4l2_mbus_framefmt *ofmt) { struct omap3_isp_pool *pool; @@ -1149,7 +1150,7 @@ int omap3_isp_viewfinder_setup(struct omap3_isp_device *isp, /* Try the format. */ ret = omap3_isp_pipeline_try_format(isp, &isp->viewfinder, - &isp->sensor.format, ofmt, NULL); + &isp->sensor.format, ofmt, crop); if (ret < 0) return ret; diff --git a/isp/omap3isp.h b/isp/omap3isp.h index 491dcdb..26e5062 100644 --- a/isp/omap3isp.h +++ b/isp/omap3isp.h @@ -65,6 +65,7 @@ void omap3_isp_close(struct omap3_isp_device *isp); /* Viewfinder */ int omap3_isp_viewfinder_setup(struct omap3_isp_device *isp, + struct v4l2_rect *crop, struct v4l2_mbus_framefmt *ofmt); int omap3_isp_viewfinder_set_pool(struct omap3_isp_device *isp, struct v4l2_buffers_pool *pool); -- cgit v1.2.3