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

Commit 31b83248 authored by Vivek Veenam's avatar Vivek Veenam
Browse files

msm: camera: Fix unnecessary operations of IR cut filter



IR cut filter movement during camera open/close is not required.
To fix this issue avoid IR cut filter operation in open/close of
camera and operate only when IR mode is toggled.

Signed-off-by: default avatarVivek Veenam <vveenam@codeaurora.org>
Change-Id: I70ae88554d8910eeba8be9e41d61824520993dcc
parent 83f579a0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -83,7 +83,6 @@ static int32_t msm_ir_cut_release(
		return 0;
	}

	rc = ir_cut_ctrl->func_tbl->camera_ir_cut_on(ir_cut_ctrl, NULL);
	if (rc < 0) {
		pr_err("%s:%d camera_ir_cut_on failed rc = %d",
			__func__, __LINE__, rc);
@@ -270,8 +269,6 @@ static int32_t msm_ir_cut_handle_init(
		return -EINVAL;
	}

	rc = ir_cut_ctrl->func_tbl->camera_ir_cut_init(
			ir_cut_ctrl, ir_cut_data);
	if (rc < 0) {
		pr_err("%s:%d camera_ir_cut_init failed rc = %d",
			__func__, __LINE__, rc);