di: fix flash black issue
authorDezhi Kong <dezhi.kong@amlogic.com>
Thu, 1 Feb 2018 12:27:57 +0000 (20:27 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 2 Feb 2018 08:03:56 +0000 (00:03 -0800)
PD#159372: di: fix flash black issue

Change-Id: Ib37b257ba1ce88d6923f68341a4782b1924ac4c6
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 8d23b9a..e1e5915 100644 (file)
@@ -4316,9 +4316,6 @@ de_post_process(void *arg, unsigned int zoom_start_x_lines,
 
        get_vscale_skip_count(zoom_start_x_lines);
 
-       if (!di_post_stru.toggle_flag)
-               return 0;
-
        if (IS_ERR_OR_NULL(di_buf))
                return 0;
        else if (IS_ERR_OR_NULL(di_buf->di_buf_dup_p[0]))
@@ -5645,7 +5642,7 @@ static void di_pre_size_change(unsigned short width,
        RDMA_WR(DI_PRE_SIZE, (width - 1) |
                ((height - 1) << 16));
        if (mcpre_en) {
-               blkhsize = (width + 3) / 5;
+               blkhsize = (width + 4) / 5;
                RDMA_WR(MCDI_HV_SIZEIN, height
                        | (width << 16));
                RDMA_WR(MCDI_HV_BLKSIZEIN, (overturn ? 3 : 0) << 30