msm: camera: uapi: Add interface for obtaining exposure order

Add UAPI interface to obtain exposure order for SFE RDIs.

CRs-Fixed: 2841729
Change-Id: I6c01921d795645b825d007328332dad3c74523a6
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram
2021-03-16 12:31:13 -07:00
committed by Gerrit - the friendly Code Review server
parent dfff1b9619
commit 328a60b14b

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
#ifndef __UAPI_CAM_ISP_H__
@@ -126,6 +126,7 @@
#define CAM_ISP_GENERIC_BLOB_TYPE_SFE_HFR_CONFIG 24
#define CAM_ISP_GENERIC_BLOB_TYPE_SFE_FE_CONFIG 25
#define CAM_ISP_GENERIC_BLOB_TYPE_SFE_SCRATCH_BUF_CFG 26
#define CAM_ISP_GENERIC_BLOB_TYPE_SFE_EXP_ORDER_CFG 27
#define CAM_ISP_VC_DT_CFG 4
@@ -882,6 +883,38 @@ struct cam_isp_mode_switch_info{
__u32 reserved;
} __attribute__((packed));
/**
* struct cam_isp_sfe_wm_exp_order_config - SFE write master
* exposure order config
*
* This config will reflect for corresponding RM as well
*
* @res_type : output resource type defined in file
* cam_isp_sfe.h or cam_isp_ife.h
* @additional_params : Params for future use
*/
struct cam_isp_sfe_wm_exp_order_config {
__u32 res_type;
__u32 additional_params[5];
};
/**
* struct cam_isp_sfe_exp_config - SFE out exposure config
*
* Exp order is determined by it's index in wm_config[]
* The last resource in the array will be considered as
* last [shortest] exposure.
*
* @num_ports : Number of ports
* @reserved : Reserved field
* @wm_config : WM exp config
*/
struct cam_isp_sfe_exp_config {
__u32 num_ports;
__u32 reserved;
struct cam_isp_sfe_wm_exp_order_config wm_config[1];
};
#define CAM_ISP_ACQUIRE_COMMON_VER0 0x1000
#define CAM_ISP_ACQUIRE_COMMON_SIZE_VER0 0x0