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 <vgarodia@codeaurora.org>
This commit is contained in:
Vikash Garodia
2021-05-19 14:10:06 +05:30
parent 6a6a3cba5c
commit cc037ae3de

View File

@@ -518,7 +518,6 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst)
struct v4l2_format* inp_f; struct v4l2_format* inp_f;
u32 width, height; u32 width, height;
bool res_ok = false; bool res_ok = false;
bool lowlatency = false;
if (!inst || !inst->capabilities) { if (!inst || !inst->capabilities) {
d_vpr_e("%s: invalid params\n", __func__); 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 && if (res_ok &&
(inst->capabilities->cap[LOWLATENCY_MODE].value)) { (inst->capabilities->cap[LOWLATENCY_MODE].value)) {
work_mode = MSM_VIDC_STAGE_1; work_mode = MSM_VIDC_STAGE_1;
/* For WORK_MODE_1, set Low Latency mode by default */
lowlatency = true;
} }
if (inst->capabilities->cap[LOSSLESS].value) { if (inst->capabilities->cap[LOSSLESS].value) {
/*TODO Set 2 stage in case of ALL INTRA */ /*TODO Set 2 stage in case of ALL INTRA */
work_mode = MSM_VIDC_STAGE_2; work_mode = MSM_VIDC_STAGE_2;
lowlatency = false;
} }
} }
else { else {
@@ -568,13 +564,9 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst)
exit: exit:
i_vpr_h(inst, "Configuring work mode = %u low latency = %u", 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__); 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; return 0;
} }