From patchwork Thu Apr 22 05:14:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bee Hock Goh X-Patchwork-Id: 94002 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3M5EkbL024669 for ; Thu, 22 Apr 2010 05:14:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372Ab0DVFOl (ORCPT ); Thu, 22 Apr 2010 01:14:41 -0400 Received: from mail-yw0-f194.google.com ([209.85.211.194]:35153 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750843Ab0DVFOk (ORCPT ); Thu, 22 Apr 2010 01:14:40 -0400 Received: by ywh32 with SMTP id 32so4601357ywh.33 for ; Wed, 21 Apr 2010 22:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=H8ZA8pPiDz06oiVGW8PdctfBXYcBMjx2lCw6bM22sQc=; b=R8sR5vpTpEBnVLe8H14b/7p6BtuByUbXWNazMm1DeLDAGe+XpQMmYIo+oQZAE0MD0X 5HiKlruLUPrHa9ijSn/m9CthWNRaH9G9d0HbujHvM3XBs686SLwbVgCRpq/W6obAmqXL dn7Y4QhIXSFmPayBlmKhoVFWb7YLtl9SszZOo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qIJx0GjRix13Q64O/SlImNDZw+tpKyZ+ZC0YVdPwlIXgsnnCrxqyQfYNFMiTgLIKCw QOXWsvSW0BTVS81R9J1sjvHnQY0OPkV8BnVO9u2yb0WTLXjbk/roBSJdtAytdbUmyhoy KZATZkY3P9YXM2xiwBrD7wdXwA8T1/hluz4RQ= MIME-Version: 1.0 Received: by 10.100.225.10 with HTTP; Wed, 21 Apr 2010 22:14:39 -0700 (PDT) Date: Thu, 22 Apr 2010 13:14:39 +0800 Received: by 10.101.211.15 with SMTP id n15mr440499anq.64.1271913279532; Wed, 21 Apr 2010 22:14:39 -0700 (PDT) Message-ID: Subject: tm6000: Patch that will fixed analog video (tested on tm5600) From: Bee Hock Goh To: LMML 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.3 (demeter.kernel.org [140.211.167.41]); Thu, 22 Apr 2010 05:14:47 +0000 (UTC) diff -r a539e5b68945 linux/drivers/staging/tm6000/tm6000-video.c --- a/linux/drivers/staging/tm6000/tm6000-video.c Sat Mar 27 23:09:47 2010 -0300 +++ b/linux/drivers/staging/tm6000/tm6000-video.c Thu Apr 22 13:08:19 2010 +0800 @@ -157,7 +157,7 @@ /* Cleans up buffer - Usefull for testing for frame/URB loss */ outp = videobuf_to_vmalloc(&(*buf)->vb); - memset(outp, 0, (*buf)->vb.size); +// memset(outp, 0, (*buf)->vb.size); #endif return; @@ -291,7 +291,8 @@ start_line=line; last_field=field; } - last_line=line; + if (cmd == TM6000_URB_MSG_VIDEO) + last_line=line; pktsize = TM6000_URB_MSG_LEN; } else { @@ -502,7 +503,7 @@ unsigned long copied; get_next_buf(dma_q, &buf); - if (!buf) + if (buf) outp = videobuf_to_vmalloc(&buf->vb); if (!outp)