Skip to content

Commit

Permalink
[media] mt9v011: Fixed incorrect value for the first valid column
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Obermaier authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent b87f2ed commit 1048af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/mt9v011.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static void set_res(struct v4l2_subdev *sd)
* be missing.
*/

hstart = 14 + (640 - core->width) / 2;
hstart = 20 + (640 - core->width) / 2;
mt9v011_write(sd, R02_MT9V011_COLSTART, hstart);
mt9v011_write(sd, R04_MT9V011_WIDTH, core->width);
mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width);
Expand Down

0 comments on commit 1048af2

Please sign in to comment.