Commit 0f017212 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

V4L/DVB (13058): af9015: enable remote polling when eeprom contains 0x04

Looks like eeprom IR mode byte value 0x04 means there is remote
which should be polled. Patch enables polling also in case of 0x04.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e1a7ff84
...@@ -730,7 +730,7 @@ static int af9015_read_config(struct usb_device *udev) ...@@ -730,7 +730,7 @@ static int af9015_read_config(struct usb_device *udev)
goto error; goto error;
deb_info("%s: IR mode:%d\n", __func__, val); deb_info("%s: IR mode:%d\n", __func__, val);
for (i = 0; i < af9015_properties_count; i++) { for (i = 0; i < af9015_properties_count; i++) {
if (val == AF9015_IR_MODE_DISABLED || val == 0x04) { if (val == AF9015_IR_MODE_DISABLED) {
af9015_properties[i].rc_key_map = NULL; af9015_properties[i].rc_key_map = NULL;
af9015_properties[i].rc_key_map_size = 0; af9015_properties[i].rc_key_map_size = 0;
} else if (dvb_usb_af9015_remote) { } else if (dvb_usb_af9015_remote) {
......
...@@ -95,6 +95,7 @@ enum af9015_ir_mode { ...@@ -95,6 +95,7 @@ enum af9015_ir_mode {
AF9015_IR_MODE_HID, AF9015_IR_MODE_HID,
AF9015_IR_MODE_RLC, AF9015_IR_MODE_RLC,
AF9015_IR_MODE_RC6, AF9015_IR_MODE_RC6,
AF9015_IR_MODE_POLLING, /* just guess */
}; };
struct af9015_state { struct af9015_state {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment