mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
msm: camera: Import operation mode changes from mojito-r-oss
* needed for A11 camera blobs Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
7171a6fe77
commit
26047dd6b7
@ -844,6 +844,7 @@ int32_t msm_sensor_init_device_name(void)
|
||||
}
|
||||
//end
|
||||
|
||||
static uint32_t g_operation_mode; // xulei16 add for face unlock
|
||||
int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
|
||||
void *arg)
|
||||
{
|
||||
@ -1011,6 +1012,9 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
|
||||
goto release_mutex;
|
||||
}
|
||||
|
||||
g_operation_mode = sensor_acq_dev.operation_mode; // xulei16 add for faceunlock
|
||||
CAM_DBG(CAM_SENSOR,"operation_mode:%d",g_operation_mode);
|
||||
|
||||
bridge_params.session_hdl = sensor_acq_dev.session_handle;
|
||||
bridge_params.ops = &s_ctrl->bridge_intf.ops;
|
||||
bridge_params.v4l2_sub_dev_flag = 0;
|
||||
@ -1287,6 +1291,9 @@ int cam_sensor_publish_dev_info(struct cam_req_mgr_device_info *info)
|
||||
info->p_delay = 2;
|
||||
info->trigger = CAM_TRIGGER_POINT_SOF;
|
||||
|
||||
if(g_operation_mode == 0x8006) // xulei16 add for face unlock
|
||||
info->p_delay = 0;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -367,11 +367,11 @@ struct cam_csiphy_acquire_dev_info {
|
||||
*/
|
||||
struct cam_sensor_acquire_dev {
|
||||
uint32_t session_handle;
|
||||
uint32_t operation_mode;
|
||||
uint32_t device_handle;
|
||||
uint32_t handle_type;
|
||||
uint32_t reserved;
|
||||
uint64_t info_handle;
|
||||
uint32_t operation_mode; // xulei16 add for face unlock
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user