From 343e1966ff029444aed563f0515422aa010c68eb Mon Sep 17 00:00:00 2001 From: Govindaraj Rajagopal Date: Sat, 14 Mar 2020 15:46:28 +0530 Subject: [PATCH] msm: vidc: update dpb buffer requirements buffer counts(min_cnt, min_host, actual_cnt) is updated in hal_buffer_requirements only for internal buffers. Currently for dpb, we are updating only actual_cnt, due to that msm_vidc_verify_buffer_counts check is failing. So updated all 3 variables (min_cnt, min_host, actual) for dpb. Change-Id: Ib6e476fae57407a2b5fb55b1b73986dfca410ae6 Signed-off-by: Govindaraj Rajagopal --- msm/vidc/msm_vidc_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msm/vidc/msm_vidc_common.c b/msm/vidc/msm_vidc_common.c index 0edf1ad8913f..90a4d7931aed 100644 --- a/msm/vidc/msm_vidc_common.c +++ b/msm/vidc/msm_vidc_common.c @@ -3193,6 +3193,7 @@ int msm_comm_update_dpb_bufreqs(struct msm_vidc_inst *inst) fmt = &inst->fmts[OUTPUT_PORT]; /* For DPB buffers, Always use min count */ + req->buffer_count_min = req->buffer_count_min_host = req->buffer_count_actual = fmt->count_min; hfi_fmt = msm_comm_convert_color_fmt(inst->clk_data.dpb_fourcc,