summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/omapfb/omapfb-main.c
diff options
context:
space:
mode:
authorEvan Wilson <evan@oliodevices.com>2014-11-10 22:27:22 -0800
committerEvan Wilson <evan@oliodevices.com>2014-11-25 18:54:51 -0800
commit06cbcb31321ecedaae0d363f9c9e8f2e7606109f (patch)
tree40c7ff769e33d968a4543772a65f7907dc0df823 /drivers/video/omap2/omapfb/omapfb-main.c
parent0171e9c4cdb86055838fd37b2dec4bb16bb61086 (diff)
downloadolio-linux-3.10-06cbcb31321ecedaae0d363f9c9e8f2e7606109f.tar.xz
olio-linux-3.10-06cbcb31321ecedaae0d363f9c9e8f2e7606109f.zip
omapfb: Patch to enable double buffering/page flipping
Change-Id: If55660d2250b60a5b8eaa58f2805f601e1469fd5
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-main.c')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 7464de4c93f..18a9429d686 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -393,7 +393,7 @@ static int check_fb_res_bounds(struct fb_var_screeninfo *var)
var->xres_virtual = var->xres;
if (var->yres_virtual == 0)
- var->yres_virtual = var->yres;
+ var->yres_virtual = 2 * var->yres;
if (var->xres_virtual < xres_min || var->yres_virtual < yres_min)
return -EINVAL;
@@ -1571,7 +1571,7 @@ static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size,
DBG("adjusting fb mem size for VRFB, %u -> %lu\n",
w * h * bytespp, size);
} else {
- size = w * h * bytespp;
+ size = 2 * w * h * bytespp;
}
}
@@ -1882,7 +1882,7 @@ static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
}
var->xres_virtual = var->xres;
- var->yres_virtual = var->yres;
+ var->yres_virtual = 2 * var->yres;
if (!var->bits_per_pixel) {
switch (omapfb_get_recommended_bpp(fbdev, display)) {
@@ -1903,7 +1903,7 @@ static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
var->xres = 320;
var->yres = 240;
var->xres_virtual = var->xres;
- var->yres_virtual = var->yres;
+ var->yres_virtual = 2 * var->yres;
if (!var->bits_per_pixel)
var->bits_per_pixel = 16;
}