diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-26 16:36:55 +0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-07-29 05:17:07 +0400 |
commit | ac33a207b13a70bbca6e58094e28bd92b9fc1ff3 (patch) | |
tree | d362fbcb83e9490be672e2cd74c0f50ae1dbaa2e /drivers/video/sh_mobile_lcdcfb.c | |
parent | 91d1cfa8779e1929167a7cf1e5825462af7d6e4a (diff) | |
download | linux-ac33a207b13a70bbca6e58094e28bd92b9fc1ff3.tar.xz |
fbdev: sh_mobile_lcdc: Fix vertical panning step
Commit 15dede882e564601947f2ce4b647742c0351be6d added support for
horizontal panning but accidentally computes the Y pan step value
incorrectly for NV12/21 and NV16/61 formats. Fix this.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 8cb653b107cc..699487c287b2 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -1716,11 +1716,11 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl) info->fix.visual = FB_VISUAL_TRUECOLOR; switch (ovl->format->fourcc) { - case V4L2_PIX_FMT_NV16: - case V4L2_PIX_FMT_NV61: - info->fix.ypanstep = 2; case V4L2_PIX_FMT_NV12: case V4L2_PIX_FMT_NV21: + info->fix.ypanstep = 2; + case V4L2_PIX_FMT_NV16: + case V4L2_PIX_FMT_NV61: info->fix.xpanstep = 2; } @@ -2215,11 +2215,11 @@ sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch, info->fix.visual = FB_VISUAL_TRUECOLOR; switch (ch->format->fourcc) { - case V4L2_PIX_FMT_NV16: - case V4L2_PIX_FMT_NV61: - info->fix.ypanstep = 2; case V4L2_PIX_FMT_NV12: case V4L2_PIX_FMT_NV21: + info->fix.ypanstep = 2; + case V4L2_PIX_FMT_NV16: + case V4L2_PIX_FMT_NV61: info->fix.xpanstep = 2; } |