aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2011-01-25 15:08:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 19:32:18 -0400
commit2f2710bd4ee11a06e4c87956be4733566e288a2e (patch)
treea03e37ebf4724305c244acf4c63806f1c9e5647d /drivers/media/video/cx23885
parent702dd7903bda0b83f6f6cb66fdadc4e5bbb60646 (diff)
[media] cx23885, altera-ci: enable all PID's less than 0x20 in hardware PID filter
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 <liplianin@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r--drivers/media/video/cx23885/altera-ci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/cx23885/altera-ci.c b/drivers/media/video/cx23885/altera-ci.c
index e5c0873aca1..ad6cc68d4b0 100644
--- a/drivers/media/video/cx23885/altera-ci.c
+++ b/drivers/media/video/cx23885/altera-ci.c
@@ -521,7 +521,8 @@ static void altera_pid_control(struct netup_hw_pid_filter *pid_filt,
521 struct fpga_internal *inter = pid_filt->internal; 521 struct fpga_internal *inter = pid_filt->internal;
522 u8 store = 0; 522 u8 store = 0;
523 523
524 if (pid == 0x2000) 524 /* pid 0-0x1f always enabled, don't touch them */
525 if ((pid == 0x2000) || (pid < 0x20))
525 return; 526 return;
526 527
527 mutex_lock(&inter->fpga_mutex); 528 mutex_lock(&inter->fpga_mutex);
@@ -567,8 +568,9 @@ static void altera_toggle_fullts_streaming(struct netup_hw_pid_filter *pid_filt,
567 568
568 netup_fpga_op_rw(inter, NETUP_CI_PID_ADDR1, 569 netup_fpga_op_rw(inter, NETUP_CI_PID_ADDR1,
569 ((i >> 8) & 0x03) | (pid_filt->nr << 2), 0); 570 ((i >> 8) & 0x03) | (pid_filt->nr << 2), 0);
570 571 /* pid 0-0x1f always enabled */
571 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA, store, 0); 572 netup_fpga_op_rw(inter, NETUP_CI_PID_DATA,
573 (i > 3 ? store : 0), 0);
572 } 574 }
573 575
574 mutex_unlock(&inter->fpga_mutex); 576 mutex_unlock(&inter->fpga_mutex);