deinterlace: add condition for force_prog [1/1]
authorJihong Sui <jihong.sui@amlogic.com>
Wed, 24 Jul 2019 09:12:27 +0000 (17:12 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 25 Jul 2019 05:39:05 +0000 (22:39 -0700)
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 <jihong.sui@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 1093533..49f7159 100644 (file)
@@ -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) ==