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

Commit 574c92ae authored by Xu Han's avatar Xu Han Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Enable power down for actuator



The actuator needs to power down during the deinit session.
Add support to handle the power down.

Change-Id: I7712668df9ae64abcd9c94f93fe5599e34a3b0cc
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent 61a09d4a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -591,7 +591,11 @@ static int32_t msm_actuator_config(struct msm_actuator_ctrl_t *a_ctrl,
		if (rc < 0)
			pr_err("move focus failed %d\n", rc);
		break;

	case CFG_ACTUATOR_POWERDOWN:
		rc = msm_actuator_power_down(a_ctrl);
		if (rc < 0)
			pr_err("msm_actuator_power_down failed %d\n", rc);
		break;
	default:
		break;
	}
+1 −0
Original line number Diff line number Diff line
@@ -439,6 +439,7 @@ enum msm_actuator_cfg_type_t {
	CFG_SET_ACTUATOR_INFO,
	CFG_SET_DEFAULT_FOCUS,
	CFG_MOVE_FOCUS,
	CFG_ACTUATOR_POWERDOWN,
};

enum actuator_type {