aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-06-20 20:34:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-23 02:14:25 -0400
commita4c473033b6a100773a4fd8b7ba1e45baeb1e692 (patch)
tree01465e084c65c49e0f2ea0586b83ef03385cdc84
parent19859229d7d98bc2d582ff45045dd7f73d649383 (diff)
V4L/DVB (12102): em28xx: add Remote control support for EVGA inDtube
Add an IR profile for the EVGA inDtube remote control (which is an NEC type remote) Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/common/ir-keymaps.c23
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c2
-rw-r--r--include/media/ir-common.h2
3 files changed, 27 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c
index 3fe158ac7bbf..4216328552f6 100644
--- a/drivers/media/common/ir-keymaps.c
+++ b/drivers/media/common/ir-keymaps.c
@@ -2750,3 +2750,26 @@ IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = {
2750 [0x1b] = KEY_B, /*recall*/ 2750 [0x1b] = KEY_B, /*recall*/
2751}; 2751};
2752EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec); 2752EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec);
2753
2754/* EVGA inDtube
2755 Devin Heitmueller <devin.heitmueller@gmail.com>
2756 */
2757IR_KEYTAB_TYPE ir_codes_evga_indtube[IR_KEYTAB_SIZE] = {
2758 [0x12] = KEY_POWER,
2759 [0x02] = KEY_MODE, /* TV */
2760 [0x14] = KEY_MUTE,
2761 [0x1a] = KEY_CHANNELUP,
2762 [0x16] = KEY_TV2, /* PIP */
2763 [0x1d] = KEY_VOLUMEUP,
2764 [0x05] = KEY_CHANNELDOWN,
2765 [0x0f] = KEY_PLAYPAUSE,
2766 [0x19] = KEY_VOLUMEDOWN,
2767 [0x1c] = KEY_REWIND,
2768 [0x0d] = KEY_RECORD,
2769 [0x18] = KEY_FORWARD,
2770 [0x1e] = KEY_PREVIOUS,
2771 [0x1b] = KEY_STOP,
2772 [0x1f] = KEY_NEXT,
2773 [0x13] = KEY_CAMERA,
2774};
2775EXPORT_SYMBOL_GPL(ir_codes_evga_indtube);
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index 972c4addc406..c43fdb9bc888 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -1472,9 +1472,11 @@ struct em28xx_board em28xx_boards[] = {
1472 .tuner_type = TUNER_XC2028, 1472 .tuner_type = TUNER_XC2028,
1473 .tuner_gpio = default_tuner_gpio, 1473 .tuner_gpio = default_tuner_gpio,
1474 .decoder = EM28XX_TVP5150, 1474 .decoder = EM28XX_TVP5150,
1475 .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */
1475 .mts_firmware = 1, 1476 .mts_firmware = 1,
1476 .has_dvb = 1, 1477 .has_dvb = 1,
1477 .dvb_gpio = evga_indtube_digital, 1478 .dvb_gpio = evga_indtube_digital,
1479 .ir_codes = ir_codes_evga_indtube,
1478 .input = { { 1480 .input = { {
1479 .type = EM28XX_VMUX_TELEVISION, 1481 .type = EM28XX_VMUX_TELEVISION,
1480 .vmux = TVP5150_COMPOSITE0, 1482 .vmux = TVP5150_COMPOSITE0,
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 7b5b91f60425..9dcb632f6083 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -162,6 +162,8 @@ extern IR_KEYTAB_TYPE ir_codes_ati_tv_wonder_hd_600[IR_KEYTAB_SIZE];
162extern IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_analog[IR_KEYTAB_SIZE]; 162extern IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_analog[IR_KEYTAB_SIZE];
163extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE]; 163extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE];
164extern IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE]; 164extern IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE];
165extern IR_KEYTAB_TYPE ir_codes_evga_indtube[IR_KEYTAB_SIZE];
166
165#endif 167#endif
166 168
167/* 169/*