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

Commit 41dd8cdd authored by Rajesh Bondugula's avatar Rajesh Bondugula
Browse files

msm: camera: Updated the vreg parameters for powerdown.



Used proper VREGs during powering off camera.
Now all the LEDS go off when camera app is closed.

Change-Id: Ice7a103171fdf21afb65ed4b5c733e5d33d3c8b3
Signed-off-by: default avatarRajesh Bondugula <rajeshb@codeaurora.org>
parent e5421545
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -456,7 +456,7 @@ int32_t msm_sensor_driver_probe(void *setting)
	cci_client->retries = 3;
	cci_client->id_map = 0;

	/* Parse and fill vreg params */
	/* Parse and fill vreg params for powerup settings */
	rc = msm_camera_fill_vreg_params(
		power_info->cam_vreg,
		power_info->num_vreg,
@@ -468,6 +468,18 @@ int32_t msm_sensor_driver_probe(void *setting)
		goto FREE_CAMERA_INFO;
	}

	/* Parse and fill vreg params for powerdown settings*/
	rc = msm_camera_fill_vreg_params(
		power_info->cam_vreg,
		power_info->num_vreg,
		power_info->power_down_setting,
		power_info->power_down_setting_size);
	if (rc < 0) {
		pr_err("failed: msm_camera_fill_vreg_params for PDOWN rc %d",
			rc);
		goto FREE_CAMERA_INFO;
	}

	/* Update sensor, actuator and eeprom name in
	*  sensor control structure */
	s_ctrl->sensordata->sensor_name = slave_info->sensor_name;