diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-05 02:20:20 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-10-20 21:28:24 +0200 |
commit | e63c0b37164a07c1a944a6597a550472abfeac75 (patch) | |
tree | a17be4047442c2bedaa962538ce91c7e6b44d917 /isp/omap3isp-priv.h | |
parent | 45b5a7fe12df5b4975cb60629675a0693eb675a6 (diff) |
isp: Protect against starting viewfinder and snapshot at the same time
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp/omap3isp-priv.h')
-rw-r--r-- | isp/omap3isp-priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; }; |