From patchwork Tue Apr 28 09:41:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Belimov X-Patchwork-Id: 20540 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3SNf6Sq032675 for ; Tue, 28 Apr 2009 23:41:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750804AbZD1XlD (ORCPT ); Tue, 28 Apr 2009 19:41:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751019AbZD1XlD (ORCPT ); Tue, 28 Apr 2009 19:41:03 -0400 Received: from mail-ew0-f176.google.com ([209.85.219.176]:32852 "EHLO mail-ew0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750804AbZD1XlB (ORCPT ); Tue, 28 Apr 2009 19:41:01 -0400 Received: by ewy24 with SMTP id 24so930350ewy.37 for ; Tue, 28 Apr 2009 16:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type; bh=FoBlr37N50T1ymDBQFLIDJJFqnPRyUG08jy1yWkhp7M=; b=s98z1flU2/Gh3oMkLhCJ+W/gOl+pKhvqB1XRG/xWfn6vdL1jMdTCco5wxfjUUDEzvs 3/6qtC/tfRsnqaGxzWozvoIsKFZK9nPbC6btfy9EKWsEIdf4qVbwn9hbU/zOlpC+AD73 DBHeUOQs8To8Olst3Eycjhb7rfqq+3r4iZnrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=nkeCdiDIUTVqVUOxMhsxSQT7OQecOthPNmk0AD/ElxMYC+ndi2Nf+8pTHoxiKoPqsX p0zGsWQjDDoAmZa5goCoTqVNBSNkLhJgs9ivbPlqyEbE4k5GrGi4Nq7pBQg3qs6xxGOM DVaKA2xDbba6sD482H++EDCB+oEtcHmAwLeWc= Received: by 10.210.81.10 with SMTP id e10mr6419264ebb.46.1240962059814; Tue, 28 Apr 2009 16:40:59 -0700 (PDT) Received: from glory.loctelecom.ru (ns2.openhardware.ru [84.19.183.172]) by mx.google.com with ESMTPS id 23sm731102eya.19.2009.04.28.16.40.57 (version=SSLv3 cipher=RC4-MD5); Tue, 28 Apr 2009 16:40:59 -0700 (PDT) Date: Tue, 28 Apr 2009 19:41:08 +1000 From: Dmitri Belimov To: linux-media@vger.kernel.org, video4linux-list@redhat.com Subject: [PATCH 1/3 ] increase MPEG encoder timout Message-ID: <20090428194108.5bd76afd@glory.loctelecom.ru> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; i486-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi All. If video has a lot of changes in frame, MPEG encoder need more time for coding process. Add new bigger timeout for encoder. This is patch from our customer. I checked this. Signed-off-by: Alexey Osipov With my best regards, Dmitry. diff -r b40d628f830d linux/drivers/media/video/saa7134/saa7134-ts.c --- a/linux/drivers/media/video/saa7134/saa7134-ts.c Fri Apr 24 01:46:41 2009 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134-ts.c Tue Apr 28 05:26:09 2009 +1000 @@ -65,7 +65,7 @@ /* start DMA */ saa7134_set_dmabits(dev); - mod_timer(&dev->ts_q.timeout, jiffies+BUFFER_TIMEOUT); + mod_timer(&dev->ts_q.timeout, jiffies+TS_BUFFER_TIMEOUT); if (dev->ts_state == SAA7134_TS_BUFF_DONE) { /* Clear TS cache */ diff -r b40d628f830d linux/drivers/media/video/saa7134/saa7134.h --- a/linux/drivers/media/video/saa7134/saa7134.h Fri Apr 24 01:46:41 2009 -0300 +++ b/linux/drivers/media/video/saa7134/saa7134.h Tue Apr 28 05:26:09 2009 +1000 @@ -367,6 +367,7 @@ #define INTERLACE_OFF 2 #define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */ +#define TS_BUFFER_TIMEOUT msecs_to_jiffies(1000) /* 1 second */ struct saa7134_dev; struct saa7134_dma; Signed-off-by: Alexey Osipov