From cf9c149e524dca5739dba6553a045f3e93a5ed77 Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Wed, 28 Apr 2021 13:42:56 -0700 Subject: [PATCH] msm: camera: uapi: Add support to drop initial sensor frames This change introduces a blob to obtain number of frames to be dropped in CSID when sensor is streamed on. This parameter will be applicable for all paths in the pipeline. CRs-Fixed: 2841729 Change-Id: Idcf1f6c8223f885c82883aa1d5fdf6981ffcc813 Signed-off-by: Karthik Anantha Ram --- include/uapi/camera/media/cam_isp.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/uapi/camera/media/cam_isp.h b/include/uapi/camera/media/cam_isp.h index f1fa388da0..a48a0500a4 100644 --- a/include/uapi/camera/media/cam_isp.h +++ b/include/uapi/camera/media/cam_isp.h @@ -115,6 +115,7 @@ #define CAM_ISP_GENERIC_BLOB_TYPE_IFE_CORE_CONFIG 7 #define CAM_ISP_GENERIC_BLOB_TYPE_VFE_OUT_CONFIG 8 #define CAM_ISP_GENERIC_BLOB_TYPE_BW_CONFIG_V2 9 +#define CAM_ISP_GENERIC_BLOB_TYPE_DISCARD_INITIAL_FRAMES 10 #define CAM_ISP_GENERIC_BLOB_TYPE_SENSOR_DIMENSION_CONFIG 11 #define CAM_ISP_GENERIC_BLOB_TYPE_CSID_QCFA_CONFIG 12 #define CAM_ISP_GENERIC_BLOB_TYPE_SENSOR_BLANKING_CONFIG 13 @@ -915,6 +916,22 @@ struct cam_isp_sfe_exp_config { struct cam_isp_sfe_wm_exp_order_config wm_config[1]; }; +/** + * struct cam_isp_discard_initial_frames - Discard init frames + * + * Some sensors require discarding the initial frames + * after the sensor is streamed on. The discard would be + * applied on all paths [IPP/PPP/RDIx] for the given + * pipeline. + * + * @num_frames : Number of frames to be discarded + * @discard_params : Params for future use + */ +struct cam_isp_discard_initial_frames { + __u32 num_frames; + __u32 discard_params[5]; +} __attribute__((packed)); + #define CAM_ISP_ACQUIRE_COMMON_VER0 0x1000 #define CAM_ISP_ACQUIRE_COMMON_SIZE_VER0 0x0