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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user