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

Commit 77618921 authored by Deepak Kaushal's avatar Deepak Kaushal
Browse files

msm: camera: Fix led release on Sensor Shutdown



On sensor shutdown, flash was calling flash_high.
When camera daemon is killed, this flash_high was getting
invoked which resulted the flash to fire.
This is now fixed by calling flash_release.

Change-Id: Iace1fee56253dc43c1525a89a2b6e369065ca7aa
Signed-off-by: default avatarDeepak Kaushal <dkaushal@codeaurora.org>
parent e22a9bf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ static long msm_flash_subdev_ioctl(struct v4l2_subdev *sd,
	case VIDIOC_MSM_FLASH_CFG:
		return msm_flash_config(fctrl, argp);
	case MSM_SD_SHUTDOWN:
		*(int *)argp = MSM_CAMERA_LED_RELEASE;
		*(int *)argp = CFG_FLASH_RELEASE;
		return msm_flash_config(fctrl, argp);
	default:
		pr_err_ratelimited("invalid cmd %d\n", cmd);