From patchwork Fri May 7 15:29:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 3343 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Fri, 07 May 2010 15:31:09 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Fri, 07 May 2010 12:35:13 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OAPW9-0005BY-5J; Fri, 07 May 2010 15:31:09 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756612Ab0EGPaq (ORCPT + 1 other); Fri, 7 May 2010 11:30:46 -0400 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:41879 "EHLO mail-in-04.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756567Ab0EGPap (ORCPT ); Fri, 7 May 2010 11:30:45 -0400 Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mx.arcor.de (Postfix) with ESMTP id 185EAAA1F6; Fri, 7 May 2010 17:30:43 +0200 (CEST) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 025E223D8E7; Fri, 7 May 2010 17:30:42 +0200 (CEST) Received: from localhost.localdomain (dslb-188-102-101-158.pools.arcor-ip.net [188.102.101.158]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-09.arcor-online.net (Postfix) with ESMTPA id A3F1D197A70; Fri, 7 May 2010 17:30:42 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net A3F1D197A70 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1273246242; bh=x4ZeDkFplbYSpWgznNaBjZXogEH9VvaYL99PmzvQ8a8=; h=From:To:Cc:Subject:Date:Message-Id; b=CTTUGHjaumAn9L8crPnOjBbxvO4EsnKBUD9a4xR1gJ+Zzd4ZErwM6O4t4cjTlTtD1 lb5E2fzdyM7Wtcwi11Q7G3KGgKhLxChv2+uMo2QFj2YYTbd2OKCue4n13sKQ2KOvNs gcwHDZxl6D+hVQbe+5wqvObjgX6uaSYW5qDKmti8= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, Stefan Ringel Subject: [PATCH] tm6000: bugfix image position Date: Fri, 7 May 2010 17:29:04 +0200 Message-Id: <1273246144-6876-1-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.7.0.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Stefan Ringel bugfix incorrect image and line position in videobuffer Signed-off-by: Stefan Ringel --- drivers/staging/tm6000/tm6000-video.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 9554472..f7248f0 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, * It should, instead, check if the user selected * entrelaced or non-entrelaced mode */ - pos= ((line<<1)+field)*linewidth + - block*TM6000_URB_MSG_LEN; + pos = ((line << 1) - field - 1) * linewidth + + block * TM6000_URB_MSG_LEN; /* Don't allow to write out of the buffer */ if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) {