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

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

Merge "msm: vidc: add work_mode and latency debug info for holi"

parents 12a43821 fd041360
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1282,6 +1282,7 @@ static int msm_vidc_decide_work_mode_ar50_lt(struct msm_vidc_inst *inst)

	/* For WORK_MODE_1, set Low Latency mode by default to HW. */

	latency.enable = false;
	if (inst->session_type == MSM_VIDC_ENCODER &&
			inst->clk_data.work_mode == HFI_WORKMODE_1) {
		latency.enable = true;
@@ -1291,6 +1292,10 @@ static int msm_vidc_decide_work_mode_ar50_lt(struct msm_vidc_inst *inst)
			(void *)&latency, sizeof(latency));
	}

	s_vpr_h(inst->sid, "Configuring work mode = %u low latency = %u",
			pdata.video_work_mode,
			latency.enable);

	rc = msm_comm_scale_clocks_and_bus(inst, 1);

	return rc;