Commit c725ff69 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Mauro Carvalho Chehab

[media] it913x: support for NEC extended keys

Add support for NEC extended keys.

The default remote has now changed to RC_MAP_MSI_DIGIVOX_III
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 990f49af
...@@ -328,11 +328,13 @@ static int it913x_rc_query(struct dvb_usb_device *d) ...@@ -328,11 +328,13 @@ static int it913x_rc_query(struct dvb_usb_device *d)
if ((ibuf[2] + ibuf[3]) == 0xff) { if ((ibuf[2] + ibuf[3]) == 0xff) {
key = ibuf[2]; key = ibuf[2];
key += ibuf[0] << 8; key += ibuf[0] << 16;
deb_info(1, "INT Key =%08x", key); key += ibuf[1] << 8;
deb_info(1, "NEC Extended Key =%08x", key);
if (d->rc_dev != NULL) if (d->rc_dev != NULL)
rc_keydown(d->rc_dev, key, 0); rc_keydown(d->rc_dev, key, 0);
} }
mutex_unlock(&d->i2c_mutex); mutex_unlock(&d->i2c_mutex);
return ret; return ret;
...@@ -701,7 +703,7 @@ static struct dvb_usb_device_properties it913x_properties = { ...@@ -701,7 +703,7 @@ static struct dvb_usb_device_properties it913x_properties = {
.rc_query = it913x_rc_query, .rc_query = it913x_rc_query,
.rc_interval = IT913X_POLL, .rc_interval = IT913X_POLL,
.allowed_protos = RC_TYPE_NEC, .allowed_protos = RC_TYPE_NEC,
.rc_codes = RC_MAP_KWORLD_315U, .rc_codes = RC_MAP_MSI_DIGIVOX_III,
}, },
.i2c_algo = &it913x_i2c_algo, .i2c_algo = &it913x_i2c_algo,
.num_device_descs = 3, .num_device_descs = 3,
...@@ -748,5 +750,5 @@ module_exit(it913x_module_exit); ...@@ -748,5 +750,5 @@ module_exit(it913x_module_exit);
MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
MODULE_DESCRIPTION("it913x USB 2 Driver"); MODULE_DESCRIPTION("it913x USB 2 Driver");
MODULE_VERSION("1.09"); MODULE_VERSION("1.11");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
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