omap4: fb: Adds missing display update call when panning
PATCH 1/1 omap4: fb: Adds missing display update call when panning
From: Gustavo Diaz Prado <[email protected]>
Adds the missing display update call when panning, this is needed for the DSI panel when the auto-update feature is not enabled.
--- drivers/video/omap2/omapfb/omapfb-main.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/video/omap2/omapfb/omapfb-main.c +7 -1
@@ -1068,7 +1068,8 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, {struct omapfb_info *ofbi =FB2OFB (fbi);struct fb_var_screeninfo new_var; -int r; +int r =0 ; +struct omap_dss_device *display =fb2display (fbi);DBG ("pan_display(%d)\n" ,FB2OFB (fbi)->id);
@@ -1086,6 +1087,11 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, r =omapfb_apply_changes (fbi,0 ); +if (display && display->driver->update && + display->driver->get_update_mode (display) + ==OMAP_DSS_UPDATE_MANUAL ) + display->driver->update (display,0 ,0 , var->xres, var->yres); +omapfb_put_mem_region (ofbi->region);return r;
Signature · 1 line
1.5.4.7
Quoted 37 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Janorkar, Mayuresh
Sent: Thursday, July 15, 2010 6:07 PM
To: [email protected]
Cc: [email protected]; Diaz Prado, Gustavo; Janorkar, Mayuresh
Subject: [PATCH] omap4: fb: Adds missing display update call when panningFrom: Gustavo Diaz Prado <[email protected]>
Adds the missing display update call when panning, this is needed for the DSI panel when the auto-update feature is not enabled.
Signed-off-by Gustavo Diaz Prado <[email protected]>Signed-off-by Mayuresh Janorkar <[email protected]>--- drivers/video/omap2/omapfb/omapfb-main.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)drivers/video/omap2/omapfb/omapfb-main.c +2
-1@@ -1068,7 +1068,8 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, {struct omapfb_info *ofbi =FB2OFB (fbi);struct fb_var_screeninfo new_var; -int r; +int r =0 ; +struct omap_dss_device *display =fb2display (fbi);DBG ("pan_display(%d)\n" ,FB2OFB (fbi)->id);
drivers/video/omap2/omapfb/omapfb-main.c static int omapfb_pan_display(struct · line 1093
Quoted 7 lines
drivers/video/omap2/omapfb/omapfb-main.c +3
-0@@ -1086,6 +1087,11 @@ static int omapfb_pan_display(structfb_var_screeninfo *var, r =omapfb_apply_changes (fbi,0 ); +if (display && display->driver->update && + display->driver->get_update_mode (display) + ==OMAP_DSS_UPDATE_MANUAL )
If the display dereference is checked, there is no need to check the base pointer (display), right ?
Quoted 12 lines
drivers/video/omap2/omapfb/omapfb-main.c +2
-0+ display->driver->update (display,0 ,0 , var->xres, var->yres); +omapfb_put_mem_region (ofbi->region);return r;
--
1.5.4.7--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 48 lines
-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, July 15, 2010 6:19 PM
To: Janorkar, Mayuresh; [email protected]
Cc: [email protected]; Diaz Prado, Gustavo
Subject: RE: [PATCH] omap4: fb: Adds missing display update call when panningQuoted 7 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Janorkar, Mayuresh
Sent: Thursday, July 15, 2010 6:07 PM
To: [email protected]
Cc: [email protected]; Diaz Prado, Gustavo; Janorkar, Mayuresh
Subject: [PATCH] omap4: fb: Adds missing display update call whenpanning
Quoted 32 lines
From: Gustavo Diaz Prado <[email protected]>
Adds the missing display update call when panning, this is needed for the DSI panel when the auto-update feature is not enabled.
Signed-off-by Gustavo Diaz Prado <[email protected]>Signed-off-by Mayuresh Janorkar <[email protected]>--- drivers/video/omap2/omapfb/omapfb-main.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)drivers/video/omap2/omapfb/omapfb-main.c +2
-1@@ -1068,7 +1068,8 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var, {struct omapfb_info *ofbi =FB2OFB (fbi);struct fb_var_screeninfo new_var; -int r; +int r =0 ; +struct omap_dss_device *display =fb2display (fbi);DBG ("pan_display(%d)\n" ,FB2OFB (fbi)->id);@@ -1086,6 +1087,11 @@ static int omapfb_pan_display(struct fb_var_screeninfo *var,
Quoted 7 lines
drivers/video/omap2/omapfb/omapfb-main.c static int omapfb_pan_display(struct fb_var_screeninfo *var, · line 1092
Quoted 5 lines
drivers/video/omap2/omapfb/omapfb-main.c +3
-0r =omapfb_apply_changes (fbi,0 ); +if (display && display->driver->update && + display->driver->get_update_mode (display) + ==OMAP_DSS_UPDATE_MANUAL )If the display dereference is checked, there is no need to check the base pointer (display), right ?
[Mayuresh]: That's correct. I would take it into account.
Quoted 4 lines
Quoted 4 lines
drivers/video/omap2/omapfb/omapfb-main.c +2
-0+ display->driver->update (display,0 ,0 , var->xres, var->yres); +omapfb_put_mem_region (ofbi->region);
Quoted 8 lines
Quoted 8 lines
return r;
--
1.5.4.7--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Are there any more comments?
If not can I resend the patch incorporating Santosh's comments?
-Thanks,
Mayuresh
Hi,
Quoted 5 lines · ext Mayuresh Janorkar
From: Gustavo Diaz Prado <[email protected]>
Adds the missing display update call when panning, this is needed for the DSI panel when the auto-update feature is not enabled.
The omapfb driver is not meant to make updates automatically, except on a few special cases (currently on initialization and when unblanking). It's the user space's responsibility to update the screen.
The reason for this should be obvious if you think of a use case where you have, say, all 3 overlays on the LCD, and you want to pan all of them.
Tomi
Hi Tomi,
Could you please provide me info on how to update the screen from user's space incase of manual update mode?
-Thanks,
Mayuresh
Quoted 27 lines
-----Original Message-----
From: Tomi Valkeinen [mailto:[email protected]]
Sent: Monday, July 26, 2010 1:17 PM
To: Janorkar, Mayuresh
Cc: [email protected]; Diaz Prado, Gustavo
Subject: Re: [PATCH] omap4: fb: Adds missing display update call when panningHi,
Quoted 5 lines · ext Mayuresh Janorkar
From: Gustavo Diaz Prado <[email protected]>
Adds the missing display update call when panning, this is needed for the DSI panel when the auto-update feature is not enabled.
The omapfb driver is not meant to make updates automatically, except on a few special cases (currently on initialization and when unblanking). It's the user space's responsibility to update the screen.
The reason for this should be obvious if you think of a use case where you have, say, all 3 overlays on the LCD, and you want to pan all of them.
Tomi
Hi,
Quoted 3 lines · Mayuresh
Hi Tomi,
Could you please provide me info on how to update the screen from user's space incase of manual update mode?
You can use OMAPFB_UPDATE_WINDOW ioctl.
Tomi