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

Commit 0e594de0 authored by Vikash Garodia's avatar Vikash Garodia
Browse files

msm: vidc: update capability for quality mode



Usecase like UHD encode is configured by driver in
high quality mode. But video firmware overwrites the
mode to performance mode.
Update the quality configuration to make them inline
with video firmware configuration.

Change-Id: I6f432bbf889c01d0a9b1f91bfb3d2dd2b9351b5b
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent 21b5e42b
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",