From patchwork Sat Jan 1 13:52:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 5405 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sat, 01 Jan 2011 12:02:42 -0200 Received: from mchehab by gaivota with local (Exim 4.72) (envelope-from ) id 1PZ22c-0004gf-38 for mchehab@gaivota; Sat, 01 Jan 2011 12:02:42 -0200 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.17) for (single-drop); Sat, 01 Jan 2011 12:02:42 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PZ1un-0000VU-Mq; Sat, 01 Jan 2011 13:54:38 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905Ab1AANxi (ORCPT + 1 other); Sat, 1 Jan 2011 08:53:38 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:43504 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793Ab1AANxh (ORCPT ); Sat, 1 Jan 2011 08:53:37 -0500 Received: by eye27 with SMTP id 27so5493235eye.19 for ; Sat, 01 Jan 2011 05:53:36 -0800 (PST) Received: by 10.213.36.2 with SMTP id r2mr6373275ebd.51.1293890016202; Sat, 01 Jan 2011 05:53:36 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id u1sm13119403eeh.22.2011.01.01.05.53.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 01 Jan 2011 05:53:35 -0800 (PST) From: "Igor M. Liplianin" Date: Sat, 1 Jan 2011 15:52:02 +0200 Subject: [PATCH 18/18] cx23885, altera-ci: enable all PID's less than 0x20 in hardware PID filter. To: mchehab@infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-Id: <201101011552.02481.liplianin@netup.ru> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab It takes too long time to scan due to low symbol rate PID's like PAT, PMT, CAT, NIT. For that matter we enabled permanently all PID's less 0x20 in hardware PID filter for NetUP Dual DVB-T/C CI RF card to combine rates. Signed-off-by: Igor M. Liplianin --- drivers/media/video/cx23885/altera-ci.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) mutex_unlock(&inter->fpga_mutex); @@ -730,8 +731,8 @@ static void altera_pid_control(struct netup_hw_pid_filter *pid_filt, { struct fpga_internal *inter = pid_filt->internal; u8 store = 0; - - if (pid == 0x2000) + /* pid 0-0x1f always enabled, don't touch them */ + if ((pid == 0x2000) || (pid < 0x20)) return; mutex_lock(&inter->fpga_mutex); diff --git a/drivers/media/video/cx23885/altera-ci.c b/drivers/media/video/cx23885/altera-ci.c index 90147d6..aa67a33 100644 --- a/drivers/media/video/cx23885/altera-ci.c +++ b/drivers/media/video/cx23885/altera-ci.c @@ -652,8 +652,9 @@ static void altera_toggle_fullts_streaming(struct netup_hw_pid_filter *pid_filt, netup_fpga_op_rw(inter, NETUP_CI_PID_ADDR1, ((i >> 8) & 0x03) | (pid_filt->nr << 2), 0); - - netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 0); + /* pid 0-0x1f always enabled */ + netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, + (i > 3 ? store : 0), 0); }