From f193e14f82e377b85e0e697ed7ffd36419c1d81a Mon Sep 17 00:00:00 2001 From: Jihong Sui Date: Wed, 24 Jul 2019 17:12:27 +0800 Subject: [PATCH] deinterlace: add condition for force_prog [1/1] PD#SWPL-11550 Problem: force_prog only for progressive. Solution: add condition for force_prog Verify: TL1 Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f Signed-off-by: Jihong Sui --- drivers/amlogic/media/deinterlace/deinterlace.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/deinterlace/deinterlace.c b/drivers/amlogic/media/deinterlace/deinterlace.c index 1093533..49f7159 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace.c +++ b/drivers/amlogic/media/deinterlace/deinterlace.c @@ -3136,7 +3136,10 @@ static void config_di_mif(struct DI_MIF_s *di_mif, struct di_buf_s *di_buf) di_mif->chroma_y_end0 = di_buf->vframe->height / 2 - 1; } else { - di_mif->src_prog = force_prog?1:0; + if (di_pre_stru.cur_inp_type & VIDTYPE_INTERLACE) + di_mif->src_prog = 0; + else + di_mif->src_prog = force_prog?1:0; di_mif->src_field_mode = 1; if ( (di_buf->vframe->type & VIDTYPE_TYPEMASK) == -- 2.7.4