From b86105a840313cb92bb51d5baecc33cb59239eeb Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Fri, 8 Sep 2023 22:54:54 +0800 Subject: [PATCH] deinterlace: disable afbc support when post write mode with txhd2 [1/1] PD#SWPL-139488 Problem: playback freeze when seek Solution: TXHD2 not support afbc input with post write mode Verify: txhd2 Change-Id: Id9e3d976df1fe725b611be1911a910961b3894a1 Signed-off-by: Brian Zhu --- drivers/media/di_multi/di_afbc_v3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/di_multi/di_afbc_v3.c b/drivers/media/di_multi/di_afbc_v3.c index 2ebf957ec..58fc7ba0e 100644 --- a/drivers/media/di_multi/di_afbc_v3.c +++ b/drivers/media/di_multi/di_afbc_v3.c @@ -1097,7 +1097,8 @@ static bool afbc_is_supported(void) bool ret = false; struct afbcd_ctr_s *pafd_ctr = di_get_afd_ctr(); - if (!pafd_ctr || is_cfg(EAFBC_CFG_DISABLE)) { + /* TXHD2 not support afbc input with post write mode */ + if (!pafd_ctr || is_cfg(EAFBC_CFG_DISABLE) || DIM_IS_IC_TXHD2) { #ifdef PRINT_BASIC dim_print("%s:false\n", __func__); #endif