aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2011-12-30 16:48:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 08:53:47 -0500
commited3189cf989128fe283d6dbffbbae08b67d9e5bd (patch)
treea2fb45004dc01ab168f02801f3790a0956a30e1f /drivers
parentd2f7a1a2467c01b569d2a7fbf10e8894a3f0e496 (diff)
[media] it913x ver 1.18 Turn pid filter off by caps option only
Turn the pid filter off by caps option only. This is so the full stream is passed to demuxer and not limited by pid count. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/dvb-usb/it913x.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-usb/it913x.c b/drivers/media/dvb/dvb-usb/it913x.c
index 4c8ad279c0a8..635429522e97 100644
--- a/drivers/media/dvb/dvb-usb/it913x.c
+++ b/drivers/media/dvb/dvb-usb/it913x.c
@@ -280,9 +280,6 @@ static int it913x_pid_filter(struct dvb_usb_adapter *adap,
280 int ret = 0; 280 int ret = 0;
281 u8 pro = (adap->id == 0) ? DEV_0_DMOD : DEV_1_DMOD; 281 u8 pro = (adap->id == 0) ? DEV_0_DMOD : DEV_1_DMOD;
282 282
283 if (pid_filter > 0)
284 return 0;
285
286 if (mutex_lock_interruptible(&adap->dev->i2c_mutex) < 0) 283 if (mutex_lock_interruptible(&adap->dev->i2c_mutex) < 0)
287 return -EAGAIN; 284 return -EAGAIN;
288 deb_info(1, "PID_F (%02x)", onoff); 285 deb_info(1, "PID_F (%02x)", onoff);
@@ -475,17 +472,23 @@ static int it913x_identify_state(struct usb_device *udev,
475 info("Dual mode=%x Remote=%x Tuner Type=%x", it913x_config.dual_mode 472 info("Dual mode=%x Remote=%x Tuner Type=%x", it913x_config.dual_mode
476 , remote, it913x_config.tuner_id_0); 473 , remote, it913x_config.tuner_id_0);
477 474
478 /* Select Stream Buffer Size */ 475 /* Select Stream Buffer Size and pid filter option*/
479 if (pid_filter) 476 if (pid_filter) {
480 props->adapter[0].fe[0].stream.u.bulk.buffersize = 477 props->adapter[0].fe[0].stream.u.bulk.buffersize =
481 TS_BUFFER_SIZE_MAX; 478 TS_BUFFER_SIZE_MAX;
482 else 479 props->adapter[0].fe[0].caps &=
480 ~DVB_USB_ADAP_NEED_PID_FILTERING;
481 } else
483 props->adapter[0].fe[0].stream.u.bulk.buffersize = 482 props->adapter[0].fe[0].stream.u.bulk.buffersize =
484 TS_BUFFER_SIZE_PID; 483 TS_BUFFER_SIZE_PID;
484
485 if (it913x_config.dual_mode) { 485 if (it913x_config.dual_mode) {
486 props->adapter[1].fe[0].stream.u.bulk.buffersize = 486 props->adapter[1].fe[0].stream.u.bulk.buffersize =
487 props->adapter[0].fe[0].stream.u.bulk.buffersize; 487 props->adapter[0].fe[0].stream.u.bulk.buffersize;
488 props->num_adapters = 2; 488 props->num_adapters = 2;
489 if (pid_filter)
490 props->adapter[1].fe[0].caps =
491 props->adapter[0].fe[0].caps;
489 } else 492 } else
490 props->num_adapters = 1; 493 props->num_adapters = 1;
491 494
@@ -836,5 +839,5 @@ module_exit(it913x_module_exit);
836 839
837MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); 840MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
838MODULE_DESCRIPTION("it913x USB 2 Driver"); 841MODULE_DESCRIPTION("it913x USB 2 Driver");
839MODULE_VERSION("1.17"); 842MODULE_VERSION("1.18");
840MODULE_LICENSE("GPL"); 843MODULE_LICENSE("GPL");