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

Commit 77369e0a authored by Alok Kediya's avatar Alok Kediya
Browse files

msm: isp: Fix active stream count in immdeiate stop.



The active stream count needs to decremented for all streams
that are being stopped.

Change-Id: Id6fa93f32cee51ae2010288fcde28f7cc40e1519
Signed-off-by: default avatarAlok Kediya <kediya@codeaurora.org>
parent e92aa60f
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -1464,14 +1464,12 @@ static int msm_isp_stop_axi_stream(struct vfe_device *vfe_dev,
				stream_info->stream_src == RDI_INTF_1 ||
				stream_info->stream_src == RDI_INTF_2)
				wait_for_complete = 1;
			else {
		} else if (camif_update != DISABLE_CAMIF_IMMEDIATELY)
				wait_for_complete = 1;
		if (wait_for_complete == 0) {
			msm_isp_axi_stream_enable_cfg(vfe_dev, stream_info);
			stream_info->state = INACTIVE;
		}
		} else {
			if (camif_update != DISABLE_CAMIF_IMMEDIATELY)
				wait_for_complete = 1;
		}
		rc = 0;
	}
	if (wait_for_complete) {
@@ -1488,9 +1486,6 @@ static int msm_isp_stop_axi_stream(struct vfe_device *vfe_dev,
				stream_info->state = INACTIVE;
			}
		}
	} else {
		msm_isp_axi_stream_enable_cfg(vfe_dev, stream_info);
		stream_info->state = INACTIVE;
	}

	if (camif_update == DISABLE_CAMIF) {