Thread (1 message) 1 message, 1 author, 2012-03-15

Re: [PATCH] [#7001] framebuffer: old image of last app would retain for a while after starting new app

From: Wu, Aaron <hidden>
Date: 2012-03-15 09:23:50
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

Possibly related (same subject, not in this thread)


-----Original Message-----
From: Aaron Wu [mailto:Aaron.Wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org]
Sent: Tuesday, March 13, 2012 4:47 PM
To: linux-fbdev-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org; Wu, Aaron
Cc: Wu, Aaron
Subject: [PATCH] [#7001] framebuffer: old image of last app would retain for a while after starting new app

Old image of last application would retain for a while when starting a new application, this patch
clear the frambuffer before displaying every time the fb is opened.

Signed-off-by: Aaron Wu <redacted>
---
 drivers/video/bfin-lq035q1-fb.c  |    1 +
 drivers/video/bfin-t350mcqb-fb.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c
index c633068..676aa4e 100644
--- a/drivers/video/bfin-lq035q1-fb.c
+++ b/drivers/video/bfin-lq035q1-fb.c
@@ -399,6 +399,7 @@ static int bfin_lq035q1_fb_open(struct fb_info *info, int user)
                bfin_lq035q1_config_dma(fbi);
                bfin_lq035q1_config_ppi(fbi);
                bfin_lq035q1_init_timers(fbi);
+               memset(fbi->fb_buffer, 0, info->fix.smem_len);

                /* start dma */
                enable_dma(CH_PPI);
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
index d5e1267..37f2df1 100644
--- a/drivers/video/bfin-t350mcqb-fb.c
+++ b/drivers/video/bfin-t350mcqb-fb.c
@@ -216,6 +216,7 @@ static int bfin_t350mcqb_fb_open(struct fb_info *info, int user)
                bfin_t350mcqb_config_dma(fbi);
                bfin_t350mcqb_config_ppi(fbi);
                bfin_t350mcqb_init_timers();
+               memset(fbi->fb_buffer, 0, info->fix.smem_len);

                /* start dma */
                enable_dma(CH_PPI);
--
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help