summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-14 02:39:19 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-14 02:39:19 -0300
commitbd8a28419f128638347a77d46de11461f0c17fd6 (patch)
tree47100f5c75fd5e98ae9cbc335fa215aec0f92a31 /linux
parent3c16945bd290ac09d7aa8a70c69d8f359eb53a09 (diff)
downloadmediapointer-dvb-s2-bd8a28419f128638347a77d46de11461f0c17fd6.tar.gz
mediapointer-dvb-s2-bd8a28419f128638347a77d46de11461f0c17fd6.tar.bz2
mt9v011: Fix vstart
From: Mauro Carvalho Chehab <mchehab@redhat.com> vstart calculus were wrong. Fix it. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/mt9v011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/mt9v011.c b/linux/drivers/media/video/mt9v011.c
index 43420d311..46b5a3cf5 100644
--- a/linux/drivers/media/video/mt9v011.c
+++ b/linux/drivers/media/video/mt9v011.c
@@ -212,7 +212,7 @@ static void set_res(struct v4l2_subdev *sd)
mt9v011_write(sd, R04_MT9V011_WIDTH, core->width);
mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width);
- vstart = 8 + (640 - core->height) / 2;
+ vstart = 8 + (480 - core->height) / 2;
mt9v011_write(sd, R01_MT9V011_ROWSTART, vstart);
mt9v011_write(sd, R03_MT9V011_HEIGHT, core->height);
mt9v011_write(sd, R06_MT9V011_VBLANK, 508 - core->height);