diff options
author | Manish Patel | 2015-02-13 12:58:32 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-13 14:04:07 +0530 |
commit | 9f7ecd37d61c448af29ab4d9b46fceec70359f3a (patch) | |
tree | 0f7aa477d89ae06dc40e4d944c2a4493338e08ba | |
parent | aadf438d03463b8c3457dbb92f758bdf16678e92 (diff) | |
download | FOSSEE-netbook-kernel-source-9f7ecd37d61c448af29ab4d9b46fceec70359f3a.tar.gz FOSSEE-netbook-kernel-source-9f7ecd37d61c448af29ab4d9b46fceec70359f3a.tar.bz2 FOSSEE-netbook-kernel-source-9f7ecd37d61c448af29ab4d9b46fceec70359f3a.zip |
Fix framebuffer corruption issue during boot
Signed-off-by: Manish Patel <manish.patel@volansystech.com>
-rw-r--r-- | drivers/video/wmt/wmtfb.c | 10 |
1 files 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); |