aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAbylay Ospan <aospan@netup.ru>2011-07-18 03:14:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:07 -0400
commit2d12421dd39e39f9cacd9c7a58359c0f85823343 (patch)
treefeb97dc550e3f8fc0b1e1cd7da9856adba6b75c1 /drivers/media
parente66131cee501ee720b7b58a4b87073b8fbaaaba6 (diff)
[media] NetUP Dual DVB-T/C CI RF: force card hardware revision by module param
Currently available two hardware revision: 0x1 firmware filename: dvb-netup-altera-01.fw 0x4 firmware filename: dvb-netup-altera-04.fw Signed-off-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index 9fa4db27ae4..76b7563de39 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -36,6 +36,10 @@
36#include "xc5000.h" 36#include "xc5000.h"
37#include "cx23888-ir.h" 37#include "cx23888-ir.h"
38 38
39static unsigned int netup_card_rev = 1;
40module_param(netup_card_rev, int, 0644);
41MODULE_PARM_DESC(netup_card_rev,
42 "NetUP Dual DVB-T/C CI card revision");
39static unsigned int enable_885_ir; 43static unsigned int enable_885_ir;
40module_param(enable_885_ir, int, 0644); 44module_param(enable_885_ir, int, 0644);
41MODULE_PARM_DESC(enable_885_ir, 45MODULE_PARM_DESC(enable_885_ir,
@@ -1441,6 +1445,9 @@ void cx23885_card_setup(struct cx23885_dev *dev)
1441 netup_initialize(dev); 1445 netup_initialize(dev);
1442 1446
1443 netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo); 1447 netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo);
1448 if (netup_card_rev)
1449 cinfo.rev = netup_card_rev;
1450
1444 switch (cinfo.rev) { 1451 switch (cinfo.rev) {
1445 case 0x4: 1452 case 0x4:
1446 filename = "dvb-netup-altera-04.fw"; 1453 filename = "dvb-netup-altera-04.fw";