From: Dezhi Kong Date: Thu, 1 Feb 2018 12:27:57 +0000 (+0800) Subject: di: fix flash black issue X-Git-Tag: khadas-vims-v0.9.6-release~2553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecc1113666f2721c3c25b0fe8dfb6caff27eaf64;p=platform%2Fkernel%2Flinux-amlogic.git di: fix flash black issue PD#159372: di: fix flash black issue Change-Id: Ib37b257ba1ce88d6923f68341a4782b1924ac4c6 Signed-off-by: Dezhi Kong --- diff --git a/drivers/amlogic/media/deinterlace/deinterlace.c b/drivers/amlogic/media/deinterlace/deinterlace.c index 8d23b9a..e1e5915 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace.c +++ b/drivers/amlogic/media/deinterlace/deinterlace.c @@ -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