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

Commit 49b80e86 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 839d832e 29056fcd
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 */