di: add protection for odd width
authorkele bai <kele.bai@amlogic.com>
Mon, 9 Apr 2018 02:36:12 +0000 (10:36 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 12 Apr 2018 06:51:57 +0000 (22:51 -0800)
PD#163274: di: enable protection for odd width

enable odd protection patch mask by g12a bringup

Change-Id: I74793acc664981c23c3bbf2f8e892c8b4c8d8b84
Signed-off-by: kele bai <kele.bai@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index d6a5027..5a4c28a 100644 (file)
@@ -3281,12 +3281,10 @@ jiffies_to_msecs(jiffies_64 - vframe->ready_jiffies64));
                                                        is_meson_gxl_cpu() ||
                                                        is_meson_gxm_cpu());
                width_roundup = bit10_pack_patch ? 16 : width_roundup;
-#if 0 //test for even width&height
                if (di_force_bit_mode == 10)
                        force_width = roundup(vframe->width, width_roundup);
                else
                        force_width = 0;
-#endif
                di_pre_stru.source_trans_fmt = vframe->trans_fmt;
                di_pre_stru.left_right = di_pre_stru.left_right ? 0 : 1;
                di_pre_stru.invert_flag =