From patchwork Thu Jun 2 15:07:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Obermaier X-Patchwork-Id: 843882 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p52F8k68024214 for ; Thu, 2 Jun 2011 15:08:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751923Ab1FBPIa (ORCPT ); Thu, 2 Jun 2011 11:08:30 -0400 Received: from p5498B625.dip.t-dialin.net ([84.152.182.37]:54654 "EHLO obermaier-johannes.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751282Ab1FBPI3 (ORCPT ); Thu, 2 Jun 2011 11:08:29 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Jun 2011 15:08:47 +0000 (UTC) X-Greylist: delayed 387 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Jun 2011 11:08:28 EDT Received: by obermaier-johannes.de (Postfix, from userid 0) id 393B31513E; Thu, 2 Jun 2011 17:07:46 +0200 (CEST) From: Johannes Obermaier To: mchehab@infradead.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Obermaier Subject: [PATCH 1/1] V4L/DVB: mt9v011: Fixed incorrect value for the first valid column Date: Thu, 2 Jun 2011 17:07:35 +0200 Message-Id: <1307027255-30189-1-git-send-email-johannes.obermaier@gmail.com> X-Mailer: git-send-email 1.6.4.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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. Signed-off-by: Johannes Obermaier --- 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 4904d25..a6cf05a 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);