Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261591
b: refs/heads/master
c: b8f0d30
h: refs/heads/master
i:
  261589: 68e7fde
  261587: cc7950d
  261583: 8caa90e
v: v3
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent c4f132b commit a4a7a59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1752cd5d3e7ac53025e3010219d06d2b962e1395
refs/heads/master: b8f0d306b73162f9c9870ce5cd7b33b8204fcccc
14 changes: 14 additions & 0 deletions trunk/drivers/media/video/cx23885/cx23885-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "../../../staging/altera-stapl/altera.h"
#include "cx23885.h"
#include "tuner-xc2028.h"
#include "netup-eeprom.h"
#include "netup-init.h"
#include "altera-ci.h"
#include "xc4000.h"
Expand Down Expand Up @@ -1430,6 +1431,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
const struct firmware *fw;
const char *filename = "dvb-netup-altera-01.fw";
char *action = "configure";
static struct netup_card_info cinfo;
struct altera_config netup_config = {
.dev = dev,
.action = action,
Expand All @@ -1438,6 +1440,18 @@ void cx23885_card_setup(struct cx23885_dev *dev)

netup_initialize(dev);

netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo);
switch (cinfo.rev) {
case 0x4:
filename = "dvb-netup-altera-04.fw";
break;
default:
filename = "dvb-netup-altera-01.fw";
break;
}
printk(KERN_INFO "NetUP card rev=0x%x fw_filename=%s\n",
cinfo.rev, filename);

ret = request_firmware(&fw, filename, &dev->pci->dev);
if (ret != 0)
printk(KERN_ERR "did not find the firmware file. (%s) "
Expand Down

0 comments on commit a4a7a59

Please sign in to comment.