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

Commit d037a293 authored by Shivendra Kakrania's avatar Shivendra Kakrania
Browse files

msm: vidc: Enable 4K@120fps Video Playback



Fixed load calculation to enable 4K@120fps video playback.

CRs-Fixed: 2223586
Change-Id: I3bc06e0b60409b659224d7933510f4500a41eec4
Signed-off-by: default avatarShivendra Kakrania <shiven@codeaurora.org>
parent 75958773
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1308,11 +1308,11 @@ int msm_vidc_decide_core_and_power_mode(struct msm_vidc_inst *inst)
		min_lp_load = core0_lp_load;
	}

	current_inst_load = msm_comm_get_inst_load(inst, LOAD_CALC_NO_QUIRKS) *
		inst->clk_data.entry->vpp_cycles;
	current_inst_load = (msm_comm_get_inst_load(inst, LOAD_CALC_NO_QUIRKS) *
		inst->clk_data.entry->vpp_cycles)/inst->clk_data.work_route;

	current_inst_lp_load = msm_comm_get_inst_load(inst,
		LOAD_CALC_NO_QUIRKS) * lp_cycles;
	current_inst_lp_load = (msm_comm_get_inst_load(inst,
		LOAD_CALC_NO_QUIRKS) * lp_cycles)/inst->clk_data.work_route;

	dprintk(VIDC_DBG, "Core 0 RT Load = %d Core 1 RT Load = %d\n",
		 core0_load, core1_load);
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ static struct msm_vidc_common_data sm8150_common_data[] = {
	},
	{
		.key = "qcom,max-hw-load",
		.value = 3110400,	/* 4096x2160@90 */
		.value = 4147200,	/* 4096x2160/256 MBs@120fps */
	},
	{
		.key = "qcom,max-hq-mbs-per-frame",