浏览代码

msm: camera: sensor: Reset actuator flush requestId

When camera module shut down happens reset the
last flush request ID for the new session to
continue as fresh start.

CRs-Fixed: 2822543
Change-Id: Ic5b43d7acaeb7e7b6999c02cbb4654598469638b
Signed-off-by: Sureshnaidu Laveti <[email protected]>
Sureshnaidu Laveti 4 年之前
父节点
当前提交
6bbdcb3f6d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c

+ 1 - 0
drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c

@@ -801,6 +801,7 @@ void cam_actuator_shutdown(struct cam_actuator_ctrl_t *a_ctrl)
 	power_info->power_down_setting = NULL;
 	power_info->power_setting_size = 0;
 	power_info->power_down_setting_size = 0;
+	a_ctrl->last_flush_req = 0;
 
 	a_ctrl->cam_act_state = CAM_ACTUATOR_INIT;
 }