From patchwork Thu Jun 2 15:17:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Obermaier X-Patchwork-Id: 843912 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 p52FCUh2024642 for ; Thu, 2 Jun 2011 15:12:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614Ab1FBPMO (ORCPT ); Thu, 2 Jun 2011 11:12:14 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:53100 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035Ab1FBPMO (ORCPT ); Thu, 2 Jun 2011 11:12:14 -0400 Received: by bwz15 with SMTP id 15so1005625bwz.19 for ; Thu, 02 Jun 2011 08:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=YtoXP3Ob2mhqNJczbEzYqyRBM8vAa7kO40LPlLQV/xo=; b=ZOpog6UrpIHRtiCFqK8IAZGfyZTvZozl/g4YJeRkPXXYoP3lu4mUgxdDUZXkn9bXGz +e06teGLzKyHB5Qfd9hEk4iBs9MJrvqeFouOMU74ixXqIzNHvmCdLqbGsYFBbet1ivfk pOCsGSYIau4dbYpgJuBWKf7uY4VL0cTJ8zukw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=jOl63Oy+tBCd/LNCngOyfdgzoFLg3Dda0ZzuSsRAwneVcExXKBB0sMwbpP/F92K3Gk HB7O4+6eLdzbAP+4wAVEqBsqh5it66XIBSbBhYS03w3kVUaOOpgWRnd2KUV06botvy/5 wz/MgT8QXNhyE99WXr/DbonsrIjTkLyq0nhw0= Received: by 10.204.73.157 with SMTP id q29mr831549bkj.101.1307027532659; Thu, 02 Jun 2011 08:12:12 -0700 (PDT) Received: from localhost.localdomain (p5498B625.dip.t-dialin.net [84.152.182.37]) by mx.google.com with ESMTPS id 16sm531609bkm.2.2011.06.02.08.12.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Jun 2011 08:12:11 -0700 (PDT) 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:17:51 +0200 Message-Id: <1307027871-30401-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 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:12:31 +0000 (UTC) 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);