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: Mihir Ganu <mganu@codeaurora.org>
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
This commit is contained in:
Priyanka Gujjula
2021-07-01 09:17:13 +05:30
parent 892f8c6647
commit d388f8b5cd

View File

@@ -95,6 +95,13 @@ u64 msm_vidc_calc_freq_iris2(struct msm_vidc_inst *inst, u32 data_size)
if (fps == 480) if (fps == 480)
vpp_cycles += div_u64(vpp_cycles * 2, 100); 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 */ /* VSP */
/* bitrate is based on fps, scale it using operating rate */ /* bitrate is based on fps, scale it using operating rate */
operating_rate = inst->capabilities->cap[OPERATING_RATE].value >> 16; operating_rate = inst->capabilities->cap[OPERATING_RATE].value >> 16;