Skip to content

Commit

Permalink
[media] NetUP Dual DVB-T/C CI RF: force card hardware revision by mod…
Browse files Browse the repository at this point in the history
…ule 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>
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent e66131c commit 2d12421
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/media/video/cx23885/cx23885-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#include "xc5000.h"
#include "cx23888-ir.h"

static unsigned int netup_card_rev = 1;
module_param(netup_card_rev, int, 0644);
MODULE_PARM_DESC(netup_card_rev,
"NetUP Dual DVB-T/C CI card revision");
static unsigned int enable_885_ir;
module_param(enable_885_ir, int, 0644);
MODULE_PARM_DESC(enable_885_ir,
Expand Down Expand Up @@ -1441,6 +1445,9 @@ void cx23885_card_setup(struct cx23885_dev *dev)
netup_initialize(dev);

netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo);
if (netup_card_rev)
cinfo.rev = netup_card_rev;

switch (cinfo.rev) {
case 0x4:
filename = "dvb-netup-altera-04.fw";
Expand Down

0 comments on commit 2d12421

Please sign in to comment.