From 5de4c1dce46ec51c942869e66a790ee8064ddb94 Mon Sep 17 00:00:00 2001 From: Vikash Garodia Date: Thu, 4 Jun 2020 11:56:11 +0530 Subject: [PATCH] msm: vidc: configure work mode for 720p For 720p or lower, video hardware can run only in a specific work mode. Fix the condition, so that the work mode is configured as desired by firmware CRs-Fixed: 2699234 Change-Id: I8f9ad5030e7a83075a9d2d1bfe2fc39774f4aa56 Signed-off-by: Vikash Garodia --- msm/vidc/msm_vidc_clocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vidc_clocks.c b/msm/vidc/msm_vidc_clocks.c index 5f267bc951ae..7998c00e002c 100644 --- a/msm/vidc/msm_vidc_clocks.c +++ b/msm/vidc/msm_vidc_clocks.c @@ -1317,7 +1317,7 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst *inst) if (inst->session_type == MSM_VIDC_DECODER) { height = out_f->fmt.pix_mp.height; width = out_f->fmt.pix_mp.width; - res_ok = res_is_less_than(width, height, 1280, 720); + res_ok = res_is_less_than_or_equal_to(width, height, 1280, 720); if (inp_f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_MPEG2 || inst->pic_struct != MSM_VIDC_PIC_STRUCT_PROGRESSIVE || inst->clk_data.low_latency_mode || res_ok) {