From: Johannes Obermaier Date: Thu, 2 Jun 2011 15:17:51 +0000 (-0300) Subject: [media] mt9v011: Fixed incorrect value for the first valid column X-Git-Tag: MMI-PSA29.97-13-9~18729^2~396 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1048af2f810b3d08210c600ca3c8e84877edbbc7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: Johannes Obermaier Signed-off-by: Mauro Carvalho Chehab --- 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) * 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);