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

Commit 29056fcd authored by Sreesudhan Ramakrish Ramkumar's avatar Sreesudhan Ramakrish Ramkumar
Browse files

msm: camera: isp: Reset bus bandwidth during camera close



Currently, when camera is closed, minimum ib and ab is provided
as requested bandwidth even though camera subsystem does not
access bus. Reset values to 0 during camera close.

Change-Id: Ifc33c3f58aeb5a83387fccf72d4997a1321cb1df
Signed-off-by: default avatarSreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
parent 44c8947e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -172,8 +172,8 @@ int msm_isp_update_bandwidth(enum msm_isp_hw_client client,
	path =
		&(msm_isp_bus_client_pdata.usecase[
		  isp_bandwidth_mgr.bus_vector_active_idx]);
	path->vectors[0].ab = MSM_ISP_MIN_AB;
	path->vectors[0].ib = MSM_ISP_MIN_IB;
	path->vectors[0].ab = 0;
	path->vectors[0].ib = 0;
	for (i = 0; i < MAX_ISP_CLIENT; i++) {
		if (isp_bandwidth_mgr.client_info[i].active) {
			path->vectors[0].ab +=
@@ -182,6 +182,10 @@ int msm_isp_update_bandwidth(enum msm_isp_hw_client client,
				isp_bandwidth_mgr.client_info[i].ib;
		}
	}
	if (path->vectors[0].ab > 0 && path->vectors[0].ib > 0) {
		path->vectors[0].ab += MSM_ISP_MIN_AB;
		path->vectors[0].ib += MSM_ISP_MIN_IB;
	}
	msm_bus_scale_client_update_request(isp_bandwidth_mgr.bus_client,
		isp_bandwidth_mgr.bus_vector_active_idx);
	/* Insert into circular buffer */