aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9v011.c
diff options
context:
space:
mode:
authorJohannes Obermaier <johannes.obermaier@gmail.com>2011-06-02 11:17:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:52:25 -0400
commit1048af2f810b3d08210c600ca3c8e84877edbbc7 (patch)
treecf88a3b5026cf230057d9492f27a019f9f380f07 /drivers/media/video/mt9v011.c
parentb87f2eddfaa2e74b51978f7c8671f3f4777af3fe (diff)
[media] mt9v011: Fixed incorrect value for the first valid column
According to the datasheet (page 8), the first optical clear pixel-column is not at position 14. The correct/recommended value is 20. Without this patch there is a dark line on the left side of the image. Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Johannes Obermaier <johannes.obermaier@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9v011.c')
-rw-r--r--drivers/media/video/mt9v011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mt9v011.c b/drivers/media/video/mt9v011.c
index 4904d25f689f..a6cf05aa4550 100644
--- a/drivers/media/video/mt9v011.c
+++ b/drivers/media/video/mt9v011.c
@@ -286,7 +286,7 @@ static void set_res(struct v4l2_subdev *sd)
286 * be missing. 286 * be missing.
287 */ 287 */
288 288
289 hstart = 14 + (640 - core->width) / 2; 289 hstart = 20 + (640 - core->width) / 2;
290 mt9v011_write(sd, R02_MT9V011_COLSTART, hstart); 290 mt9v011_write(sd, R02_MT9V011_COLSTART, hstart);
291 mt9v011_write(sd, R04_MT9V011_WIDTH, core->width); 291 mt9v011_write(sd, R04_MT9V011_WIDTH, core->width);
292 mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width); 292 mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width);