Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d030495f authored by Jigarkumar Zala's avatar Jigarkumar Zala
Browse files

msm: camera: Resetting last flush req to zero in streamoff



last flush request needs to be set to zero at the time of streamoff, as
streamon will start with request id 1.

Change-Id: I17a868dc048a6777bd1e5faa526cff61efdfc3ea
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent 2a4ea343
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -850,6 +850,7 @@ int32_t cam_actuator_driver_cmd(struct cam_actuator_ctrl_t *a_ctrl,
						i2c_set->request_id, rc);
			}
		}
		a_ctrl->last_flush_req = 0;
		a_ctrl->cam_act_state = CAM_ACTUATOR_CONFIG;
	}
		break;
+1 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl,
		}

		fctrl->func_tbl.flush_req(fctrl, FLUSH_ALL, 0);
		fctrl->last_flush_req = 0;
		fctrl->flash_state = CAM_FLASH_STATE_ACQUIRE;
		break;
	}
+1 −0
Original line number Diff line number Diff line
@@ -827,6 +827,7 @@ int32_t cam_sensor_driver_cmd(struct cam_sensor_ctrl_t *s_ctrl,
		}

		cam_sensor_release_per_frame_resource(s_ctrl);
		s_ctrl->last_flush_req = 0;
		s_ctrl->sensor_state = CAM_SENSOR_ACQUIRE;
		CAM_INFO(CAM_SENSOR,
			"CAM_STOP_DEV Success, sensor_id:0x%x,sensor_slave_addr:0x%x",