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

Commit 50adf52c authored by Mihir Ganu's avatar Mihir Ganu
Browse files

msm: vidc: Increase vpp cycles for 960fps use case



Increase vpp cycles to bump frequency to 366MHz
for encoder 960fps use case.

Change-Id: If0f9d0f084dfcefa9f8614ec6774588dec6b7007
Signed-off-by: default avatarMihir Ganu <mganu@codeaurora.org>
parent c41612ec
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -726,6 +726,13 @@ static unsigned long msm_vidc_calc_freq_iris2(struct msm_vidc_inst *inst,
		if (fps == 480)
			vpp_cycles += div_u64(vpp_cycles * 2, 100);

		/*
		 * Add 5 percent extra for 720p@960fps use case
		 * to bump it to next level (366MHz).
		 */
		if (fps == 960)
			vpp_cycles += div_u64(vpp_cycles * 5, 100);

		/* VSP */
		/* bitrate is based on fps, scale it using operating rate */
		operating_rate = inst->clk_data.operating_rate >> 16;