summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWayne Zou <b36644@freescale.com>2013-03-25 12:56:46 +0800
committerWayne Zou <b36644@freescale.com>2013-04-01 09:00:06 +0800
commitcdbbb76040b59f4167a289222241c0666921952a (patch)
tree267b4f0a88e31df610a6188c37a7d17550473cea /drivers
parentce9199e183fac4ce769e17389cb11e4b39955c8a (diff)
ENGR00256629 V4L2 output: Fix color bar issue on 1080p HDMI display
When doing video playback on video16, which is also the first framebuffer and used for fb console as well, there is a color bar on top of 1080p screen. We need to make sure the correct vmode when doing pan display. Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/mxc/output/mxc_vout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c
index a42100afa6c5..626bad59e151 100644
--- a/drivers/media/video/mxc/output/mxc_vout.c
+++ b/drivers/media/video/mxc/output/mxc_vout.c
@@ -545,12 +545,14 @@ static int show_buf(struct mxc_vout_output *vout, int idx,
fbi->var.yoffset = ipos->y + 1;
var.xoffset = ipos->x;
var.yoffset = ipos->y;
+ var.vmode |= FB_VMODE_YWRAP;
ret = fb_pan_display(fbi, &var);
fbi->fix.smem_start = fb_base;
console_unlock();
} else {
console_lock();
var.yoffset = idx * fbi->var.yres;
+ var.vmode &= ~FB_VMODE_YWRAP;
ret = fb_pan_display(fbi, &var);
console_unlock();
}