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

Commit 97e0a806 authored by Soundrapandian Jeyaprakash's avatar Soundrapandian Jeyaprakash Committed by Xu Han
Browse files

msm: camera: add a variable to take direction register value



Add a variable to take direction register value from user space.
Direction register value is required during lens reset function
of the actuator.

Change-Id: Iebe362c514602247bced18d994cce41288f34565
Signed-off-by: default avatarSoundrapandian Jeyaprakash <jsoundra@codeaurora.org>
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent fb120d64
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1122,6 +1122,7 @@ static int32_t msm_actuator_bivcm_set_position(
	}

	a_ctrl->i2c_tbl_index = 0;
	hw_params = set_pos->hw_params;
	for (index = 0; index < set_pos->number_of_steps; index++) {
		next_lens_position = set_pos->pos[index];
		delay = set_pos->delay[index];
+1 −0
Original line number Diff line number Diff line
@@ -551,6 +551,7 @@ struct msm_ois_cfg_data {

struct msm_actuator_set_position_t {
	uint16_t number_of_steps;
	uint32_t hw_params;
	uint16_t pos[MAX_NUMBER_OF_STEPS];
	uint16_t delay[MAX_NUMBER_OF_STEPS];
};