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

Commit b00fc832 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Fix default_bus_vote



Update all struct values in default_bus_vote.
Calculate bw only when function available.

CRs-Fixed: 2494775
Change-Id: I70a137494c4469f928efe3ddf1f0297e2281c689
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 5c854678
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -71,6 +71,9 @@ struct tzbsp_video_set_state_req {
const struct msm_vidc_bus_data DEFAULT_BUS_VOTE = {
	.data = NULL,
	.data_count = 0,
	.total_bw_ddr = 0,
	.total_bw_llcc = 0,
	.calc_bw = NULL,
};

const int max_packets = 1000;
@@ -1041,6 +1044,7 @@ static int __vote_buses(struct venus_hfi_device *device,
	device->bus_vote.data = new_data;
	device->bus_vote.data_count = num_data;

	if (device->bus_vote.calc_bw)
		device->bus_vote.calc_bw(&device->bus_vote);

	venus_hfi_for_each_bus(device, bus) {