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

Commit 68090980 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 a6285404
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1753,6 +1753,10 @@ void msm_isp_halt_send_error(struct vfe_device *vfe_dev, uint32_t event)
		/* 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 (event == ISP_EVENT_PING_PONG_MISMATCH &&
		vfe_dev->axi_data.recovery_count < MAX_RECOVERY_THRESHOLD) {
		pr_err("%s: ping pong mismatch on vfe%d recovery count %d\n",