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

Commit 69347291 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cpas: Update camnoc axi port vote during cpas start/stop"...

Merge "msm: camera: cpas: Update camnoc axi port vote  during cpas start/stop" into camera-kernel.lnx.1.0
parents 1e98657e c4af3650
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -796,6 +796,20 @@ static int cam_cpas_util_apply_client_axi_vote(
			}
			mnoc_axi_port_updated[i] = true;
		}

		for (i = 0; i < cpas_core->num_camnoc_axi_ports; i++) {
			if (axi_vote->axi_path[0].camnoc_bw) {
				/* start case */
				cpas_core->camnoc_axi_port[i].additional_bw +=
					CAM_CPAS_DEFAULT_AXI_BW;
			} else {
				/* stop case */
				cpas_core->camnoc_axi_port[i].additional_bw -=
					CAM_CPAS_DEFAULT_AXI_BW;
			}
			camnoc_axi_port_updated[i] = true;
		}

		goto vote_start_clients;
	}