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

Commit b2a514ed authored by Srikanth Uyyala's avatar Srikanth Uyyala Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Dont call recovery for inactive streams



During Stream-off is in progress and all active
streams are zero and that instant if we cause
pingpong mismatch, recovery is not expected.

Change-Id: Ibdaeb4308f33772fcd330712b0a866aedb7a9486
Signed-off-by: default avatarSrikanth Uyyala <suyyala@codeaurora.org>
parent 0e827fea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1640,7 +1640,9 @@ void msm_isp_halt_send_error(struct vfe_device *vfe_dev, uint32_t event)
		NO_OVERFLOW)
		/* Recovery is already in Progress */
		return;

	/* if there are no active streams - do not start recovery */
	if (!vfe_dev->axi_data.num_active_stream)
		return;
	if (ISP_EVENT_PING_PONG_MISMATCH == event &&
		vfe_dev->axi_data.recovery_count < MAX_RECOVERY_THRESHOLD) {
		vfe_dev->hw_info->vfe_ops.irq_ops.