diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-14 07:39:19 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-24 19:03:25 +0200 |
commit | c180604a87c5abb0a117998009d01a4499d58653 (patch) | |
tree | 8865e36d61afdbddce9171cafb05eae5ddd58b05 /drivers/media/video/mt9v011.c | |
parent | V4L/DVB (12240): mt9v011: add a function to calculate frames per second rate (diff) | |
download | linux-c180604a87c5abb0a117998009d01a4499d58653.tar.xz linux-c180604a87c5abb0a117998009d01a4499d58653.zip |
V4L/DVB (12241): mt9v011: Fix vstart
vstart calculus were wrong. Fix it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9v011.c')
-rw-r--r-- | drivers/media/video/mt9v011.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mt9v011.c b/drivers/media/video/mt9v011.c index f7b5279a7d5a..d7b15dd836e6 100644 --- a/drivers/media/video/mt9v011.c +++ b/drivers/media/video/mt9v011.c @@ -202,7 +202,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); |