Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321037
b: refs/heads/master
c: 16ca21c
h: refs/heads/master
i:
  321035: 40aa406
v: v3
  • Loading branch information
Laurent Pinchart committed Jul 19, 2012
1 parent 74a26ae commit 67f62a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c75c4e073a8ec35bfd6c8adcceb2b896f2063e2
refs/heads/master: 16ca21c9a9f64577221c47d8d2f00d13b880aefa
16 changes: 8 additions & 8 deletions trunk/drivers/video/sh_mobile_lcdcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,9 @@ static int sh_mobile_lcdc_overlay_set_par(struct fb_info *info)
ovl->yres_virtual = info->var.yres_virtual;

if (ovl->format->yuv)
ovl->pitch = info->var.xres;
ovl->pitch = info->var.xres_virtual;
else
ovl->pitch = info->var.xres * ovl->format->bpp / 8;
ovl->pitch = info->var.xres_virtual * ovl->format->bpp / 8;

sh_mobile_lcdc_overlay_setup(ovl);

Expand Down Expand Up @@ -2024,9 +2024,9 @@ static int sh_mobile_lcdc_set_par(struct fb_info *info)
ch->yres_virtual = info->var.yres_virtual;

if (ch->format->yuv)
ch->pitch = info->var.xres;
ch->pitch = info->var.xres_virtual;
else
ch->pitch = info->var.xres * ch->format->bpp / 8;
ch->pitch = info->var.xres_virtual * ch->format->bpp / 8;

ret = sh_mobile_lcdc_start(ch->lcdc);
if (ret < 0)
Expand Down Expand Up @@ -2539,9 +2539,9 @@ sh_mobile_lcdc_overlay_init(struct sh_mobile_lcdc_priv *priv,
ovl->yres_virtual = ovl->yres * 2;

if (!format->yuv)
ovl->pitch = ovl->xres * format->bpp / 8;
ovl->pitch = ovl->xres_virtual * format->bpp / 8;
else
ovl->pitch = ovl->xres;
ovl->pitch = ovl->xres_virtual;

/* Allocate frame buffer memory. */
ovl->fb_size = ovl->cfg->max_xres * ovl->cfg->max_yres
Expand Down Expand Up @@ -2628,10 +2628,10 @@ sh_mobile_lcdc_channel_init(struct sh_mobile_lcdc_priv *priv,

if (!format->yuv) {
ch->colorspace = V4L2_COLORSPACE_SRGB;
ch->pitch = ch->xres * format->bpp / 8;
ch->pitch = ch->xres_virtual * format->bpp / 8;
} else {
ch->colorspace = V4L2_COLORSPACE_REC709;
ch->pitch = ch->xres;
ch->pitch = ch->xres_virtual;
}

ch->display.width = cfg->panel_cfg.width;
Expand Down

0 comments on commit 67f62a0

Please sign in to comment.