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

Commit afe3c010 authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Disable bitrate scaling if DCVS is enabled



Bitrate scaling will try to bump up Venus clock frequency
if there is a bitrate spike, whereas DCVS tries to bring down
the Venus clock frequency to save power. Hence, disable
bitrate scaling when DCVS is enabled.

Change-Id: I91361382803eb7e46c1db44b9cd5960d07e45a3d
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 65bdd3d2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3266,9 +3266,12 @@ static void log_frame(struct msm_vidc_inst *inst, struct vidc_frame_data *data,
		msm_vidc_debugfs_update(inst, MSM_VIDC_DEBUGFS_EVENT_ETB);

		if (msm_vidc_bitrate_clock_scaling &&
			inst->session_type == MSM_VIDC_DECODER)
			inst->session_type == MSM_VIDC_DECODER &&
			!inst->dcvs_mode)
				inst->instant_bitrate =
					data->filled_len * 8 * inst->prop.fps;
		else
			inst->instant_bitrate = 0;
	} else if (type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
		dprintk(VIDC_DBG,
				"Sending ftb (%pa) to hal: size: %d, ts: %lld, flags = %#x\n",