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

Commit b494ac9a 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 the future w/h for calculating DCVS load if in reconfig"

parents 0568fd93 e91c8504
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -28,8 +28,14 @@ static inline int msm_dcvs_get_mbs_per_frame(struct msm_vidc_inst *inst)
{
	int height, width;

	if (!inst->in_reconfig) {
		height = inst->prop.height[CAPTURE_PORT];
		width = inst->prop.width[CAPTURE_PORT];
	} else {
		height = inst->reconfig_height;
		width = inst->reconfig_width;
	}

	return NUM_MBS_PER_FRAME(height, width);
}