Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181631
b: refs/heads/master
c: e3a0cc6
h: refs/heads/master
i:
  181629: e8675ec
  181627: 305d624
  181623: 63b60f7
  181615: 35ba6f9
  181599: ac6cf28
  181567: 989827e
  181503: 0b9295f
v: v3
  • Loading branch information
Jiri Slaby authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 0ff1881 commit f5c6fd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 26c3b8b060b3a06f912e5c50bc8ef6ed96195458
refs/heads/master: e3a0cc62c80a997512295d8f714ee09fafbb4c99
14 changes: 12 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,13 @@ static const struct af9015_setup af9015_setup_usbids[] = {
{ }
};

static const struct af9015_setup af9015_setup_hashes[] = {
{ 0xb8feb708,
af9015_rc_keys_msi, ARRAY_SIZE(af9015_rc_keys_msi),
af9015_ir_table_msi, ARRAY_SIZE(af9015_ir_table_msi) },
{ }
};

static void af9015_set_remote_config(struct usb_device *udev,
struct dvb_usb_device_properties *props)
{
Expand All @@ -800,7 +807,10 @@ static void af9015_set_remote_config(struct usb_device *udev,
} else {
u16 vendor = le16_to_cpu(udev->descriptor.idVendor);

if (vendor == USB_VID_AFATECH) {
table = af9015_setup_match(af9015_config.eeprom_sum,
af9015_setup_hashes);

if (!table && vendor == USB_VID_AFATECH) {
/* Check USB manufacturer and product strings and try
to determine correct remote in case of chip vendor
reference IDs are used.
Expand Down Expand Up @@ -831,7 +841,7 @@ static void af9015_set_remote_config(struct usb_device *udev,
ARRAY_SIZE(af9015_ir_table_trekstor)
};
}
} else
} else if (!table)
table = af9015_setup_match(vendor, af9015_setup_usbids);
}

Expand Down

0 comments on commit f5c6fd6

Please sign in to comment.