aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/it913x.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2011-11-28 16:22:41 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-11 05:14:52 -0500
commitc725ff69737313647f981813e8f39a372c99b0f0 (patch)
treed457e186dfb09cc427e785c52b8077ae4ab2989b /drivers/media/dvb/dvb-usb/it913x.c
parent990f49af3f564b9a0f572e06f22e2ae34c79c37d (diff)
[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: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/it913x.c')
-rw-r--r--drivers/media/dvb/dvb-usb/it913x.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/it913x.c b/drivers/media/dvb/dvb-usb/it913x.c
index d57e0626369f..394bbf44e3d7 100644
--- a/drivers/media/dvb/dvb-usb/it913x.c
+++ b/drivers/media/dvb/dvb-usb/it913x.c
@@ -328,11 +328,13 @@ static int it913x_rc_query(struct dvb_usb_device *d)
328 328
329 if ((ibuf[2] + ibuf[3]) == 0xff) { 329 if ((ibuf[2] + ibuf[3]) == 0xff) {
330 key = ibuf[2]; 330 key = ibuf[2];
331 key += ibuf[0] << 8; 331 key += ibuf[0] << 16;
332 deb_info(1, "INT Key =%08x", key); 332 key += ibuf[1] << 8;
333 deb_info(1, "NEC Extended Key =%08x", key);
333 if (d->rc_dev != NULL) 334 if (d->rc_dev != NULL)
334 rc_keydown(d->rc_dev, key, 0); 335 rc_keydown(d->rc_dev, key, 0);
335 } 336 }
337
336 mutex_unlock(&d->i2c_mutex); 338 mutex_unlock(&d->i2c_mutex);
337 339
338 return ret; 340 return ret;
@@ -701,7 +703,7 @@ static struct dvb_usb_device_properties it913x_properties = {
701 .rc_query = it913x_rc_query, 703 .rc_query = it913x_rc_query,
702 .rc_interval = IT913X_POLL, 704 .rc_interval = IT913X_POLL,
703 .allowed_protos = RC_TYPE_NEC, 705 .allowed_protos = RC_TYPE_NEC,
704 .rc_codes = RC_MAP_KWORLD_315U, 706 .rc_codes = RC_MAP_MSI_DIGIVOX_III,
705 }, 707 },
706 .i2c_algo = &it913x_i2c_algo, 708 .i2c_algo = &it913x_i2c_algo,
707 .num_device_descs = 3, 709 .num_device_descs = 3,
@@ -748,5 +750,5 @@ module_exit(it913x_module_exit);
748 750
749MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>"); 751MODULE_AUTHOR("Malcolm Priestley <tvboxspy@gmail.com>");
750MODULE_DESCRIPTION("it913x USB 2 Driver"); 752MODULE_DESCRIPTION("it913x USB 2 Driver");
751MODULE_VERSION("1.09"); 753MODULE_VERSION("1.11");
752MODULE_LICENSE("GPL"); 754MODULE_LICENSE("GPL");