From fd0413602c2ed4570e2d23ec4da97a8f346d6097 Mon Sep 17 00:00:00 2001 From: Govindaraj Rajagopal Date: Wed, 27 Jan 2021 14:02:03 +0530 Subject: [PATCH] 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 --- msm/vidc/msm_vidc_clocks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/msm/vidc/msm_vidc_clocks.c b/msm/vidc/msm_vidc_clocks.c index 271178a1e1a0..68841ff06206 100644 --- a/msm/vidc/msm_vidc_clocks.c +++ b/msm/vidc/msm_vidc_clocks.c @@ -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;