V4L/DVB (13058): af9015: enable remote polling when eeprom contains 0x04
authorAntti Palosaari <crope@iki.fi>
Tue, 22 Sep 2009 00:26:37 +0000 (21:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:06 +0000 (18:40 -0200)
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: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c
drivers/media/dvb/dvb-usb/af9015.h

index 5c898b07ae1e2aca2c608a18ec2d91590098d497..bad3e10f3724a7b7f723739427d40e48e30074bf 100644 (file)
@@ -730,7 +730,7 @@ static int af9015_read_config(struct usb_device *udev)
                goto error;
        deb_info("%s: IR mode:%d\n", __func__, val);
        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_size  = 0;
                } else if (dvb_usb_af9015_remote) {
index e237c4a0702d25ce071c87caf84e5e0e4b954a1e..931c8515830d65639ceb0f108cce58c2ddaeb194 100644 (file)
@@ -95,6 +95,7 @@ enum af9015_ir_mode {
        AF9015_IR_MODE_HID,
        AF9015_IR_MODE_RLC,
        AF9015_IR_MODE_RC6,
+       AF9015_IR_MODE_POLLING, /* just guess */
 };
 
 struct af9015_state {