From 9f7ecd37d61c448af29ab4d9b46fceec70359f3a Mon Sep 17 00:00:00 2001 From: Manish Patel Date: Fri, 13 Feb 2015 12:58:32 +0530 Subject: Fix framebuffer corruption issue during boot Signed-off-by: Manish Patel --- drivers/video/wmt/wmtfb.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/video/wmt/wmtfb.c b/drivers/video/wmt/wmtfb.c index 533b1d89..2d608163 100644 --- a/drivers/video/wmt/wmtfb.c +++ b/drivers/video/wmt/wmtfb.c @@ -1997,6 +1997,7 @@ int vpp_set_par(struct fb_info *info) vout_info_t *vo_info; unsigned int mask; int i; + static int count = 2; if (g_vpp.hdmi_certify_flag) return 0; @@ -2026,8 +2027,11 @@ for (i = 0; i < VPP_VOUT_INFO_NUM; i++) { vpp_show_framebuf("cur", &vo_info->fb); vpp_show_framebuf("new", &fb); #endif - vo_info->fb = fb; - vout_set_framebuffer(mask, &vo_info->fb); + if (count < 0) { + vo_info->fb = fb; + vout_set_framebuffer(mask, &vo_info->fb); + } + count--; } } @@ -2066,8 +2070,8 @@ for (i = 0; i < VPP_VOUT_INFO_NUM; i++) { vpp_show_timing("cur", &cur, 0); vpp_show_timing("new", &var, 0); #endif - } vout_config(mask, vo_info, &var); + } } } vpp_set_mutex(info->node, 0); -- cgit