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

Commit a8222c13 authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: consider pipeline overhead factor for clock calculation



Consider pipeline overhead factor for clock calculation if workroute
is more than one.

Change-Id: Idc38eae0353ac7c89a030307144e02804c23faa5
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent 1e5b6117
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -688,6 +688,10 @@ static unsigned long msm_vidc_calc_freq(struct msm_vidc_inst *inst,
		/* 21 / 20 is minimum overhead factor */
		vpp_cycles += max(vpp_cycles / 20, fw_vpp_cycles);

		/* 1.059 pipeline overhead factor */
		if (inst->clk_data.work_route > 1)
			vpp_cycles += vpp_cycles/17;

		vsp_cycles = mbs_per_second * inst->clk_data.entry->vsp_cycles;

		/* vsp perf is about 0.5 bits/cycle */