From patchwork Sun Jan 2 12:08:00 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: 5407 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sun, 02 Jan 2011 10:49:03 -0200 Received: from mchehab by gaivota with local (Exim 4.72) (envelope-from ) id 1PZNMs-0007SE-Tx for mchehab@gaivota; Sun, 02 Jan 2011 10:49:03 -0200 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.17) for (single-drop); Sun, 02 Jan 2011 10:49:02 -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 1PZNFK-0000mg-II; Sun, 02 Jan 2011 12:41:14 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754330Ab1ABMkx (ORCPT + 1 other); Sun, 2 Jan 2011 07:40:53 -0500 Received: from mail-ey0-f194.google.com ([209.85.215.194]:44106 "EHLO mail-ey0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754261Ab1ABMkq (ORCPT ); Sun, 2 Jan 2011 07:40:46 -0500 Received: by mail-ey0-f194.google.com with SMTP id 28so1832069eya.1 for ; Sun, 02 Jan 2011 04:40:45 -0800 (PST) Received: by 10.213.7.17 with SMTP id b17mr16465469ebb.44.1293972045251; Sun, 02 Jan 2011 04:40:45 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id b52sm13899177eei.7.2011.01.02.04.40.43 (version=SSLv3 cipher=RC4-MD5); Sun, 02 Jan 2011 04:40:44 -0800 (PST) Message-ID: <4d20724c.cc7e0e0a.6f59.376d@mx.google.com> From: "Igor M. Liplianin" Date: Sun, 2 Jan 2011 14:08:00 +0200 Subject: [PATCH 9/9 v2] cx23885, altera-ci: enable all PID's less than 0x20 in hardware PID filter. To: , , 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(-) diff --git a/drivers/media/video/cx23885/altera-ci.c b/drivers/media/video/cx23885/altera-ci.c index 019797b..e2c9fee 100644 --- a/drivers/media/video/cx23885/altera-ci.c +++ b/drivers/media/video/cx23885/altera-ci.c @@ -646,8 +646,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); } mutex_unlock(&inter->fpga_mutex); @@ -724,8 +725,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);