From cc037ae3dedef82f3b6cfb23481e998cda59fecc Mon Sep 17 00:00:00 2001 From: Vikash Garodia Date: Wed, 19 May 2021 14:10:06 +0530 Subject: [PATCH] waipio: driver: Fix decoder log during low latency In low latency mode, for a decode session, low latency is being configured properly. But the log still indicates that low latency is not enabled. The change fixes the same. Change-Id: I65a88fb6dff639dd78522316e839fc05d43ec39c Signed-off-by: Vikash Garodia --- driver/variant/iris2/src/msm_vidc_iris2.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/driver/variant/iris2/src/msm_vidc_iris2.c b/driver/variant/iris2/src/msm_vidc_iris2.c index 15b52c4b45..53f71c9c61 100644 --- a/driver/variant/iris2/src/msm_vidc_iris2.c +++ b/driver/variant/iris2/src/msm_vidc_iris2.c @@ -518,7 +518,6 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst) struct v4l2_format* inp_f; u32 width, height; bool res_ok = false; - bool lowlatency = false; if (!inst || !inst->capabilities) { d_vpr_e("%s: invalid params\n", __func__); @@ -552,13 +551,10 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst) if (res_ok && (inst->capabilities->cap[LOWLATENCY_MODE].value)) { work_mode = MSM_VIDC_STAGE_1; - /* For WORK_MODE_1, set Low Latency mode by default */ - lowlatency = true; } if (inst->capabilities->cap[LOSSLESS].value) { /*TODO Set 2 stage in case of ALL INTRA */ work_mode = MSM_VIDC_STAGE_2; - lowlatency = false; } } else { @@ -568,13 +564,9 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst) exit: i_vpr_h(inst, "Configuring work mode = %u low latency = %u", - work_mode, lowlatency); + work_mode, inst->capabilities->cap[LOWLATENCY_MODE].value); msm_vidc_update_cap_value(inst, STAGE, work_mode, __func__); - /* TODO If Encode then Set Low Latency (Enable/Disable) - * and Update internal cap struct - */ - return 0; }