aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/rc/keymaps/rc-tbs-nec.c66
-rw-r--r--include/linux/input.h2
2 files changed, 36 insertions, 32 deletions
diff --git a/drivers/media/rc/keymaps/rc-tbs-nec.c b/drivers/media/rc/keymaps/rc-tbs-nec.c
index 15b9a9b80767..7242ee66f6e0 100644
--- a/drivers/media/rc/keymaps/rc-tbs-nec.c
+++ b/drivers/media/rc/keymaps/rc-tbs-nec.c
@@ -13,38 +13,40 @@
13#include <media/rc-map.h> 13#include <media/rc-map.h>
14 14
15static struct rc_map_table tbs_nec[] = { 15static struct rc_map_table tbs_nec[] = {
16 { 0x04, KEY_POWER2}, /*power*/ 16 { 0x84, KEY_POWER2}, /* power */
17 { 0x14, KEY_MUTE}, /*mute*/ 17 { 0x94, KEY_MUTE}, /* mute */
18 { 0x07, KEY_1}, 18 { 0x87, KEY_1},
19 { 0x06, KEY_2}, 19 { 0x86, KEY_2},
20 { 0x05, KEY_3}, 20 { 0x85, KEY_3},
21 { 0x0b, KEY_4}, 21 { 0x8b, KEY_4},
22 { 0x0a, KEY_5}, 22 { 0x8a, KEY_5},
23 { 0x09, KEY_6}, 23 { 0x89, KEY_6},
24 { 0x0f, KEY_7}, 24 { 0x8f, KEY_7},
25 { 0x0e, KEY_8}, 25 { 0x8e, KEY_8},
26 { 0x0d, KEY_9}, 26 { 0x8d, KEY_9},
27 { 0x12, KEY_0}, 27 { 0x92, KEY_0},
28 { 0x16, KEY_CHANNELUP}, /*ch+*/ 28 { 0xc0, KEY_10CHANNELSUP}, /* 10+ */
29 { 0x11, KEY_CHANNELDOWN},/*ch-*/ 29 { 0xd0, KEY_10CHANNELSDOWN}, /* 10- */
30 { 0x13, KEY_VOLUMEUP}, /*vol+*/ 30 { 0x96, KEY_CHANNELUP}, /* ch+ */
31 { 0x0c, KEY_VOLUMEDOWN},/*vol-*/ 31 { 0x91, KEY_CHANNELDOWN}, /* ch- */
32 { 0x03, KEY_RECORD}, /*rec*/ 32 { 0x93, KEY_VOLUMEUP}, /* vol+ */
33 { 0x18, KEY_PAUSE}, /*pause*/ 33 { 0x8c, KEY_VOLUMEDOWN}, /* vol- */
34 { 0x19, KEY_OK}, /*ok*/ 34 { 0x83, KEY_RECORD}, /* rec */
35 { 0x1a, KEY_CAMERA}, /* snapshot */ 35 { 0x98, KEY_PAUSE}, /* pause, yellow */
36 { 0x01, KEY_UP}, 36 { 0x99, KEY_OK}, /* ok */
37 { 0x10, KEY_LEFT}, 37 { 0x9a, KEY_CAMERA}, /* snapshot */
38 { 0x02, KEY_RIGHT}, 38 { 0x81, KEY_UP},
39 { 0x08, KEY_DOWN}, 39 { 0x90, KEY_LEFT},
40 { 0x15, KEY_FAVORITES}, 40 { 0x82, KEY_RIGHT},
41 { 0x17, KEY_SUBTITLE}, 41 { 0x88, KEY_DOWN},
42 { 0x1d, KEY_ZOOM}, 42 { 0x95, KEY_FAVORITES}, /* blue */
43 { 0x1f, KEY_EXIT}, 43 { 0x97, KEY_SUBTITLE}, /* green */
44 { 0x1e, KEY_MENU}, 44 { 0x9d, KEY_ZOOM},
45 { 0x1c, KEY_EPG}, 45 { 0x9f, KEY_EXIT},
46 { 0x00, KEY_PREVIOUS}, 46 { 0x9e, KEY_MENU},
47 { 0x1b, KEY_MODE}, 47 { 0x9c, KEY_EPG},
48 { 0x80, KEY_PREVIOUS}, /* red */
49 { 0x9b, KEY_MODE},
48}; 50};
49 51
50static struct rc_map_list tbs_nec_map = { 52static struct rc_map_list tbs_nec_map = {
diff --git a/include/linux/input.h b/include/linux/input.h
index 9777668883be..f7a6e1966df3 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -590,6 +590,8 @@ struct input_keymap_entry {
590#define KEY_FRAMEFORWARD 0x1b5 590#define KEY_FRAMEFORWARD 0x1b5
591#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */ 591#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */
592#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */ 592#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */
593#define KEY_10CHANNELSUP 0x1b8 /* 10 channels up (10+) */
594#define KEY_10CHANNELSDOWN 0x1b9 /* 10 channels down (10-) */
593 595
594#define KEY_DEL_EOL 0x1c0 596#define KEY_DEL_EOL 0x1c0
595#define KEY_DEL_EOS 0x1c1 597#define KEY_DEL_EOS 0x1c1