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: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal 2021-01-27 14:02:03 +05:30
commit fd0413602c

View file

@ -1282,6 +1282,7 @@ decision_done:
/* 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 @@ decision_done:
(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;