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

Commit 8af383ec authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: update capability for quality mode"

parents d0aac49b 0e594de0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1709,16 +1709,12 @@ int msm_vidc_decide_core_and_power_mode_iris2(struct msm_vidc_inst *inst)

	inst->clk_data.core_id = VIDC_CORE_ID_1;

	/* Power saving always disabled for CQ and LOSSLESS RC modes. */
	mbpf = msm_vidc_get_mbs_per_frame(inst);
	mbps = mbpf * msm_vidc_get_fps(inst);
	max_hq_mbpf = inst->core->resources.max_hq_mbs_per_frame;
	max_hq_mbps = inst->core->resources.max_hq_mbs_per_sec;

	if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ ||
		inst->rc_type == RATE_CONTROL_LOSSLESS ||
		inst->all_intra ||
		(mbpf <= max_hq_mbpf && mbps <= max_hq_mbps))
	if (mbpf <= max_hq_mbpf && mbps <= max_hq_mbps)
		enable = false;

	rc = msm_vidc_power_save_mode_enable(inst, enable);
+2 −2
Original line number Diff line number Diff line
@@ -1195,11 +1195,11 @@ static struct msm_vidc_common_data kona_common_data[] = {
	},
	{
		.key = "qcom,max-hq-mbs-per-frame",
		.value = 34816,		/* 4096x2176 */
		.value = 8160, /* ((1920x1088)/256) */
	},
	{
		.key = "qcom,max-hq-mbs-per-sec",
		.value = 1044480,	/* 4096x2176@30fps */
		.value = 489600, /* ((1920x1088)/256)@60fps */
	},
	{
		.key = "qcom,max-b-frame-mbs-per-frame",