From 6fe257d27f92762447d8c7c338e641c589f0c01c Mon Sep 17 00:00:00 2001 From: Shi Zhongbo Date: Thu, 5 Dec 2019 11:16:46 +0800 Subject: [PATCH] msm: venc: fix custom matrix enablement Fix to set 7 instead of 1 to firmware to enable all custom bias, matrix and limit. Change-Id: Idd8bf0f6036ef2919855f379fffa51d5339eba1d Signed-off-by: Shi Zhongbo --- msm/vidc/msm_venc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_venc.c b/msm/vidc/msm_venc.c index c0c3c1d795fc..1f25e4c65116 100644 --- a/msm/vidc/msm_venc.c +++ b/msm/vidc/msm_venc.c @@ -1261,7 +1261,7 @@ static int msm_venc_set_csc(struct msm_vidc_inst *inst, vpe_csc.input_color_primaries = color_primaries; /* Custom bias, matrix & limit */ - vpe_csc.custom_matrix_enabled = custom_matrix; + vpe_csc.custom_matrix_enabled = custom_matrix ? 7 : 0; if (vpe_csc.custom_matrix_enabled && bias_coeff != NULL && csc_limit != NULL && csc_matrix != NULL) {