From e63c0b37164a07c1a944a6597a550472abfeac75 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 5 Jul 2012 02:20:20 +0200 Subject: isp: Protect against starting viewfinder and snapshot at the same time Signed-off-by: Laurent Pinchart --- isp/omap3isp-priv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'isp/omap3isp-priv.h') diff --git a/isp/omap3isp-priv.h b/isp/omap3isp-priv.h index 4e24d31..18babcd 100644 --- a/isp/omap3isp-priv.h +++ b/isp/omap3isp-priv.h @@ -150,6 +150,12 @@ struct omap3_isp_pipeline { struct omap3_isp_resizer resizer; }; +enum omap3_isp_state { + OMAP3_ISP_IDLE, + OMAP3_ISP_VIEWFINDER, + OMAP3_ISP_SNAPSHOT, +}; + struct omap3_isp_device { struct media_device *mdev; @@ -174,6 +180,8 @@ struct omap3_isp_device { struct omap3_isp_pipeline viewfinder; struct omap3_isp_pipeline snapshot; + enum omap3_isp_state state; + const struct omap3_isp_operations *ops; }; -- cgit v1.2.3