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

Commit d783d10a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Use Dcvs only when there is no resolution change"

parents 51cbb689 63f46930
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1201,6 +1201,8 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
			inst->prop.width[OUTPUT_PORT] = event_notify->width;
	}

	inst->seqchanged_count++;

	if (inst->session_type == MSM_VIDC_DECODER)
		msm_dcvs_init_load(inst);

+2 −1
Original line number Diff line number Diff line
@@ -619,7 +619,8 @@ static bool msm_dcvs_check_supported(struct msm_vidc_inst *inst)
		if (!is_codec_supported ||
			!IS_VALID_DCVS_SESSION(num_mbs_per_frame,
				res->dcvs_limit[inst->session_type].min_mbpf) ||
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit))
			!IS_VALID_DCVS_SESSION(instance_load, dcvs_limit) ||
			inst->seqchanged_count > 1)
			return false;

		if (!output_buf_req) {
+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ struct msm_vidc_inst {
	bool in_reconfig;
	u32 reconfig_width;
	u32 reconfig_height;
	u32 seqchanged_count;
	struct dentry *debugfs_root;
	void *priv;
	struct msm_vidc_debug debug;