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

Commit f033016e authored by Dikshita Agarwal's avatar Dikshita Agarwal
Browse files

msm-vidc: fix final BW voting to ICC



Currently, Required BW is calculated in bytes per second but
when setting it to ICC, kbps_to_icc macro is applied to
calculated BW which again divides the value by 8 and resulting
into less final vote to icc.

Change-Id: I7a645478d05909308edea2170d7c5cb911cbf6f0
Signed-off-by: default avatarDikshita Agarwal <dikshita@codeaurora.org>
parent 31f9744a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -888,7 +888,7 @@ static int __vote_bandwidth(struct bus_info *bus,
	int rc = 0;

	s_vpr_p(sid, "Voting bus %s to ab %llu kbps\n", bus->name, bw_kbps);
	rc = icc_set_bw(bus->path, kbps_to_icc(bw_kbps), 0);
	rc = icc_set_bw(bus->path, bw_kbps, 0);
	if (rc)
		s_vpr_e(sid, "Failed voting bus %s to ab %llu, rc=%d\n",
				bus->name, bw_kbps, rc);