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

Commit 1d414826 authored by Meera Gande's avatar Meera Gande
Browse files

msm: camera: isp: Handle frame drop for null request



A request frame can be dropped when undelivered
request count becomes zero and framedrop period
is not reset to stop period due to scheduling delay.
Update the framedrop period as STOP period once all
the requests are done.

Change-Id: I0a6474233878fc26412d546b7ec4328dbf4fd691
Signed-off-by: default avatarMeera Gande <mgande@codeaurora.org>
parent 9fa863fa
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1624,6 +1624,13 @@ static int msm_isp_update_deliver_count(struct vfe_device *vfe_dev,
			goto done;
		}
		temp_stream_info->sw_ping_pong_bit ^= 1;
		if (temp_stream_info->undelivered_request_cnt == 0) {
			temp_stream_info->current_framedrop_period =
				MSM_VFE_STREAM_STOP_PERIOD;
			temp_stream_info->activated_framedrop_period =
				MSM_VFE_STREAM_STOP_PERIOD;
			msm_isp_cfg_framedrop_reg(vfe_dev, temp_stream_info);
		}
	}
done:
	return rc;