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

Commit 6cbecb01 authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: camera: isp: Do not update lpm mode for inactive streams.



If stream is inactive then there is no need to update lpm mode
for the stream since the stream is non operational.

Change-Id: I5c719211dc2bfdc67365a3716bd79c7fa54a818f
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 5404e350
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2492,7 +2492,8 @@ int msm_isp_ab_ib_update_lpm_mode(struct vfe_device *vfe_dev, void *arg)
			intf = SRC_TO_INTF(stream_info->stream_src);
			vfe_dev->axi_data.src_info[intf].lpm =
				ab_ib_vote->lpm_mode;
			if (stream_info->lpm_mode) {
			if (stream_info->lpm_mode ||
				stream_info->state == INACTIVE) {
				spin_unlock_irqrestore(&stream_info->lock,
							flags);
				continue;
@@ -2512,7 +2513,8 @@ int msm_isp_ab_ib_update_lpm_mode(struct vfe_device *vfe_dev, void *arg)
			intf = SRC_TO_INTF(stream_info->stream_src);
			vfe_dev->axi_data.src_info[intf].lpm =
				ab_ib_vote->lpm_mode;
			if (stream_info->lpm_mode == 0) {
			if (stream_info->lpm_mode == 0 ||
				stream_info->state == INACTIVE) {
				spin_unlock_irqrestore(&stream_info->lock,
							flags);
				continue;