aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps
diff options
context:
space:
mode:
authorMariusz Białończyk <manio@skyboo.net>2010-11-15 13:50:13 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:55 -0500
commiteac8ae087ac66b21de94fee3e920210b43d43076 (patch)
treeebfd529289ef23c716bab568899cf94a20f332e7 /drivers/media/rc/keymaps
parent0e835087dfe7db19f1f072046f5e116d4ec6662b (diff)
[media] Fix rc-tbs-nec table after converting the cx88 driver to ir-core
The patch fixes the rc-tbs-nec table after converting drivers/media/video/cx88 to ir-core (commit ba7e90c9f878e0ac3c0614a5446fe5c62ccc33ec). It is also adds two missing buttons (10- and 10+) with its definition (KEY_10CHANNELSUP and KEY_10CHANNELSDOWN). [mchehab@redhat.com: move keycode numbers to 0x1b8/0x1b9 as requested by the input Maintainer] Signed-off-by: Mariusz Białończyk <manio@skyboo.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps')
-rw-r--r--drivers/media/rc/keymaps/rc-tbs-nec.c66
1 files changed, 34 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 = {