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

Commit fd041360 authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal
Browse files

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



Automation scripts expects work_mode and low_latency config
related debug prints to evaluate testcase pass/fail. So
added debug prints for holi.

Change-Id: I8ab051e0efbb8c8e78a9085e2fc79e7fe43e9c99
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent ebf596ab
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;