Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142403
b: refs/heads/master
c: 3956fef
h: refs/heads/master
i:
  142401: 3162b8a
  142399: 39b1fa6
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent 8429298 commit c2bc290
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dcd14f414f6e5ab739e9738a7a18d4d8503a9798
refs/heads/master: 3956fefc593c45a480466c76fdbfee5063d766bf
24 changes: 23 additions & 1 deletion trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,21 @@ static int af9015_read_config(struct usb_device *udev)
if (ret)
err("eeprom read failed:%d", ret);

/* AverMedia AVerTV Volar Black HD (A850) device have bad EEPROM
content :-( Override some wrong values here. */
if (le16_to_cpu(udev->descriptor.idVendor) == USB_VID_AVERMEDIA &&
le16_to_cpu(udev->descriptor.idProduct) == USB_PID_AVERMEDIA_A850) {
deb_info("%s: AverMedia A850: overriding config\n", __func__);
/* disable dual mode */
af9015_config.dual_mode = 0;
/* disable 2nd adapter */
for (i = 0; i < af9015_properties_count; i++)
af9015_properties[i].num_adapters = 1;

/* set correct IF */
af9015_af9013_config[0].tuner_if = 4570;
}

return ret;
}

Expand Down Expand Up @@ -1249,6 +1264,7 @@ static struct usb_device_id af9015_usb_table[] = {
{USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_395U_2)},
{USB_DEVICE(USB_VID_KWORLD_2, USB_PID_KWORLD_395U_3)},
{USB_DEVICE(USB_VID_AFATECH, USB_PID_TREKSTOR_DVBT)},
{USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_A850)},
{0},
};
MODULE_DEVICE_TABLE(usb, af9015_usb_table);
Expand Down Expand Up @@ -1413,7 +1429,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {

.i2c_algo = &af9015_i2c_algo,

.num_device_descs = 8,
.num_device_descs = 9,
.devices = {
{
.name = "Xtensions XD-380",
Expand Down Expand Up @@ -1458,6 +1474,12 @@ static struct dvb_usb_device_properties af9015_properties[] = {
.cold_ids = {&af9015_usb_table[19], NULL},
.warm_ids = {NULL},
},
{
.name = "AverMedia AVerTV Volar Black HD " \
"(A850)",
.cold_ids = {&af9015_usb_table[20], NULL},
.warm_ids = {NULL},
},
}
}
};
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#define USB_PID_AVERMEDIA_VOLAR_X_2 0x8150
#define USB_PID_AVERMEDIA_A309 0xa309
#define USB_PID_AVERMEDIA_A310 0xa310
#define USB_PID_AVERMEDIA_A850 0x850a
#define USB_PID_TECHNOTREND_CONNECT_S2400 0x3006
#define USB_PID_TERRATEC_CINERGY_DT_XS_DIVERSITY 0x005a
#define USB_PID_TERRATEC_CINERGY_DT_XS_DIVERSITY_2 0x0081
Expand Down

0 comments on commit c2bc290

Please sign in to comment.