From: Jackie Li <[email protected]>

Recent code merge has removed a previous patch for resolving page flip issue on 
dual mipi display. this will lead to display error on mipiC while running a 
fullscreen application with page flip enabled.

Re-applied previous patch to make sure planeA/planeC surface address registers 
were updated correctly while doing page flip.

Signed-off-by: Jackie Li <[email protected]>
---
 .../linux_framebuffer_mrst/mrstlfb_linux.c         |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git 
a/drivers/staging/mrst/pvr/services4/3rdparty/linux_framebuffer_mrst/mrstlfb_linux.c
 
b/drivers/staging/mrst/pvr/services4/3rdparty/linux_framebuffer_mrst/mrstlfb_linux.c
index 9132ede..dd6a4a4 100644
--- 
a/drivers/staging/mrst/pvr/services4/3rdparty/linux_framebuffer_mrst/mrstlfb_linux.c
+++ 
b/drivers/staging/mrst/pvr/services4/3rdparty/linux_framebuffer_mrst/mrstlfb_linux.c
@@ -160,6 +160,15 @@ void MRSTLFBFlipToSurface(MRSTLFB_DEVINFO *psDevInfo,  
unsigned long uiAddr)
        {
                if (IS_MRST(psDevInfo->psDrmDevice)) {
                        MRSTLFBVSyncWriteReg(psDevInfo, dspsurf, uiAddr);
+               } else if (IS_MDFLD(psDevInfo->psDrmDevice)) {
+                       dspsurf = DSPASURF;
+                       MRSTLFBVSyncWriteReg(psDevInfo, dspsurf, uiAddr);
+#if defined(CONFIG_MDFD_DUAL_MIPI)
+                       dspsurf = DSPCSURF;
+                       MRSTLFBVSyncWriteReg(psDevInfo, dspsurf, uiAddr);
+#endif
+                       /*TODO: Add plane B flip here*/
+
                } else {
                        MRSTLFBVSyncWriteReg(psDevInfo, dspbase, uiAddr);
                }
-- 
1.7.1

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to