From 45bbd0d1cd5b05ef976194774c2a95f4bc4a0888 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Thu, 19 Dec 2019 15:59:35 +0800 Subject: [PATCH] di: if not support afbc, do not set the afbc type [1/1] PD#SWPL-18701 Problem: Even if the DI module does not support afbc format, it still sets the afbc type in vframe. Solution: Add afbc support checking Verify: Verified by p212 Change-Id: I29fe433f38c80c8c66209556f8cb6b88a015a2de Signed-off-by: Brian Zhu --- drivers/amlogic/media/deinterlace/deinterlace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/deinterlace/deinterlace.c b/drivers/amlogic/media/deinterlace/deinterlace.c index 825cf08cbcd6..7f5655d4e229 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace.c +++ b/drivers/amlogic/media/deinterlace/deinterlace.c @@ -4180,7 +4180,8 @@ static unsigned char pre_de_buf_config(void) /*for support compress from dec*/ if (IS_COMP_MODE(vframe->type) && - !is_bypass(vframe)) { + !is_bypass(vframe) && + afbc_is_supported()) { is_afbc_mode = true; if (IS_VDIN_SRC(vframe->source_type) && IS_I_SRC(vframe->type)) {