From patchwork Fri Dec 24 05:40:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ang Way Chuang X-Patchwork-Id: 431771 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 oBO5kqha005387 for ; Fri, 24 Dec 2010 05:46:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750970Ab0LXFqu (ORCPT ); Fri, 24 Dec 2010 00:46:50 -0500 Received: from mail.sfc.wide.ad.jp ([203.178.142.146]:44323 "EHLO mail.sfc.wide.ad.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750804Ab0LXFqt (ORCPT ); Fri, 24 Dec 2010 00:46:49 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 24 Dec 2010 05:46:55 +0000 (UTC) X-Greylist: delayed 361 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Dec 2010 00:46:49 EST Received: from [IPv6:2001:d30:101:2:21b:24ff:fe82:6024] (unknown [IPv6:2001:d30:101:2:21b:24ff:fe82:6024]) by mail.sfc.wide.ad.jp (Postfix) with ESMTPSA id 167F32780A4; Fri, 24 Dec 2010 14:40:47 +0900 (JST) Message-ID: <4D14325E.9000505@sfc.wide.ad.jp> Date: Fri, 24 Dec 2010 14:40:46 +0900 From: Ang Way Chuang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Linux Media Mailing List , Achmad Husni Thamrin Subject: [PATCH] cx88-dvb.c: DVB net latency using Hauppauge HVR4000 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index 367a653..90717ee 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c @@ -67,6 +67,10 @@ static unsigned int debug; module_param(debug, int, 0644); MODULE_PARM_DESC(debug,"enable debug messages [dvb]"); +static unsigned int dvb_buf_tscnt = 32; +module_param(dvb_buf_tscnt, int, 0644); +MODULE_PARM_DESC(dvb_buf_tscnt, "DVB Buffer TS count [dvb]"); + DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); #define dprintk(level,fmt, arg...) if (debug >= level) \ @@ -80,10 +84,10 @@ static int dvb_buf_setup(struct videobuf_queue *q, struct cx8802_dev *dev = q->priv_data; dev->ts_packet_size = 188 * 4; - dev->ts_packet_count = 32; + dev->ts_packet_count = dvb_buf_tscnt; *size = dev->ts_packet_size * dev->ts_packet_count; - *count = 32; + *count = dvb_buf_tscnt; return 0; }