Преглед изворни кода

msm: camera: common: Update uapi to support custom hw features

This change provides provision to propagate frame id to
userspace as part of shutter notification. The change also
add new acquire params for IFE when custom HW is in the pipeline.

CRs-Fixed: 2524308
Change-Id: Ia6f6efb1edc6e6a01d7b37aeb2787b1e98d8f81e
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram пре 5 година
родитељ
комит
fdd212fdf3
2 измењених фајлова са 10 додато и 0 уклоњено
  1. 5 0
      include/uapi/media/cam_isp.h
  2. 5 0
      include/uapi/media/cam_req_mgr.h

+ 5 - 0
include/uapi/media/cam_isp.h

@@ -126,6 +126,11 @@
 #define CAM_ISP_USAGE_RIGHT_PX    2
 #define CAM_ISP_USAGE_RDI         3
 
+/* Acquire with custom hw */
+#define CAM_ISP_ACQ_CUSTOM_NONE       0
+#define CAM_ISP_ACQ_CUSTOM_PRIMARY    1
+#define CAM_ISP_ACQ_CUSTOM_SECONDARY  2
+
 /* Query devices */
 /**
  * struct cam_isp_dev_cap_info - A cap info for particular hw type

+ 5 - 0
include/uapi/media/cam_req_mgr.h

@@ -444,6 +444,9 @@ struct cam_req_mgr_error_msg {
  * @timestamp: timestamp of the frame
  * @link_hdl: link handle associated with this message
  * @sof_status: sof status success or fail
+ * @frame_id_meta: refers to the meta for
+ *                that frame in specific usecases
+ * @reserved: reserved
  */
 struct cam_req_mgr_frame_msg {
 	uint64_t request_id;
@@ -451,6 +454,8 @@ struct cam_req_mgr_frame_msg {
 	uint64_t timestamp;
 	int32_t  link_hdl;
 	uint32_t sof_status;
+	uint32_t frame_id_meta;
+	uint32_t reserved;
 };
 
 /**