From cbd1c43d5a8ae87d5f4671f02c4b0a9a27cbd895 Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Mon, 26 Sep 2016 22:32:10 -0700 Subject: msm: sde: secure camera changes for v4l2 rotator Add support for secure camera buffer handling in SDE rotator. This change adds detaching the secure context when the buffer with the secure camera flag is signaled and attaches the secure context when going back to normal non securer-camera usecases. Change-Id: Iaff45907e78775975fa3035404dcfd9b27e6e816 Signed-off-by: Abhijit Kulkarni --- include/uapi/media/msm_sde_rotator.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/uapi/media/msm_sde_rotator.h b/include/uapi/media/msm_sde_rotator.h index 4487edf0c854..3546b0bf1377 100644 --- a/include/uapi/media/msm_sde_rotator.h +++ b/include/uapi/media/msm_sde_rotator.h @@ -86,4 +86,10 @@ struct msm_sde_rotator_fence { /* SDE Rotator private control ID's */ #define V4L2_CID_SDE_ROTATOR_SECURE (V4L2_CID_USER_BASE + 0x1000) +/* + * This control Id indicates this context is associated with the + * secure camera. + */ +#define V4L2_CID_SDE_ROTATOR_SECURE_CAMERA (V4L2_CID_USER_BASE + 0x2000) + #endif /* __UAPI_MSM_SDE_ROTATOR_H__ */ -- cgit v1.2.3