video: driver: bump clockrate and bandwidth for 960FPS

increase clockrate and bandwidth by 25percent for
960fps decode session and disable dcvs.

Change-Id: I40aef0a9b8f0950b559ee301549869e20e881a40
Signed-off-by: Darshana Patil <darshana@codeaurora.org>
This commit is contained in:
Darshana Patil
2021-09-27 15:37:59 -07:00
parent 68c66ecacf
commit 9f22d1b8bc
2 changed files with 18 additions and 0 deletions

View File

@@ -2629,6 +2629,7 @@ void msm_vidc_allow_dcvs(struct msm_vidc_inst *inst)
{
bool allow = false;
struct msm_vidc_core *core;
u32 fps;
if (!inst || !inst->core) {
d_vpr_e("%s: Invalid args: %pK\n", __func__, inst);
@@ -2684,6 +2685,13 @@ void msm_vidc_allow_dcvs(struct msm_vidc_inst *inst)
goto exit;
}
fps = msm_vidc_get_fps(inst);
if (is_decode_session(inst) && fps >= MAXIMUM_FPS) {
allow = false;
i_vpr_h(inst, "%s: unsupported fps %d\n", __func__, fps);
goto exit;
}
exit:
i_vpr_hp(inst, "%s: dcvs: %s\n", __func__, allow ? "enabled" : "disabled");