1 /* tbs-nec.h - Keytable for tbs_nec Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13 #include <media/rc-map.h>
14
15 static struct rc_map_table tbs_nec[] = {
16 { 0x84, KEY_POWER2}, /* power */
17 { 0x94, KEY_MUTE}, /* mute */
18 { 0x87, KEY_1},
19 { 0x86, KEY_2},
20 { 0x85, KEY_3},
21 { 0x8b, KEY_4},
22 { 0x8a, KEY_5},
23 { 0x89, KEY_6},
24 { 0x8f, KEY_7},
25 { 0x8e, KEY_8},
26 { 0x8d, KEY_9},
27 { 0x92, KEY_0},
28 { 0xc0, KEY_10CHANNELSUP}, /* 10+ */
29 { 0xd0, KEY_10CHANNELSDOWN}, /* 10- */
30 { 0x96, KEY_CHANNELUP}, /* ch+ */
31 { 0x91, KEY_CHANNELDOWN}, /* ch- */
32 { 0x93, KEY_VOLUMEUP}, /* vol+ */
33 { 0x8c, KEY_VOLUMEDOWN}, /* vol- */
34 { 0x83, KEY_RECORD}, /* rec */
35 { 0x98, KEY_PAUSE}, /* pause, yellow */
36 { 0x99, KEY_OK}, /* ok */
37 { 0x9a, KEY_CAMERA}, /* snapshot */
38 { 0x81, KEY_UP},
39 { 0x90, KEY_LEFT},
40 { 0x82, KEY_RIGHT},
41 { 0x88, KEY_DOWN},
42 { 0x95, KEY_FAVORITES}, /* blue */
43 { 0x97, KEY_SUBTITLE}, /* green */
44 { 0x9d, KEY_ZOOM},
45 { 0x9f, KEY_EXIT},
46 { 0x9e, KEY_MENU},
47 { 0x9c, KEY_EPG},
48 { 0x80, KEY_PREVIOUS}, /* red */
49 { 0x9b, KEY_MODE},
50 };
51
52 static struct rc_map_list tbs_nec_map = {
53 .map = {
54 .scan = tbs_nec,
55 .size = ARRAY_SIZE(tbs_nec),
56 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
57 .name = RC_MAP_TBS_NEC,
58 }
59 };
60
init_rc_map_tbs_nec(void)61 static int __init init_rc_map_tbs_nec(void)
62 {
63 return rc_map_register(&tbs_nec_map);
64 }
65
exit_rc_map_tbs_nec(void)66 static void __exit exit_rc_map_tbs_nec(void)
67 {
68 rc_map_unregister(&tbs_nec_map);
69 }
70
71 module_init(init_rc_map_tbs_nec)
72 module_exit(exit_rc_map_tbs_nec)
73
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
76