1 /*
2 * Total Media In Hand_02 remote controller keytable for Mygica X8507
3 *
4 * Copyright (C) 2012 Alfredo J. Delaiti <alfredodelaiti@netscape.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #include <media/rc-map.h>
22 #include <linux/module.h>
23
24
25 static struct rc_map_table total_media_in_hand_02[] = {
26 { 0x0000, KEY_0 },
27 { 0x0001, KEY_1 },
28 { 0x0002, KEY_2 },
29 { 0x0003, KEY_3 },
30 { 0x0004, KEY_4 },
31 { 0x0005, KEY_5 },
32 { 0x0006, KEY_6 },
33 { 0x0007, KEY_7 },
34 { 0x0008, KEY_8 },
35 { 0x0009, KEY_9 },
36 { 0x000a, KEY_MUTE },
37 { 0x000b, KEY_STOP }, /* Stop */
38 { 0x000c, KEY_POWER2 }, /* Turn on/off application */
39 { 0x000d, KEY_OK }, /* OK */
40 { 0x000e, KEY_CAMERA }, /* Snapshot */
41 { 0x000f, KEY_ZOOM }, /* Full Screen/Restore */
42 { 0x0010, KEY_RIGHT }, /* Right arrow */
43 { 0x0011, KEY_LEFT }, /* Left arrow */
44 { 0x0012, KEY_CHANNELUP },
45 { 0x0013, KEY_CHANNELDOWN },
46 { 0x0014, KEY_SHUFFLE },
47 { 0x0016, KEY_PAUSE },
48 { 0x0017, KEY_PLAY }, /* Play */
49 { 0x001e, KEY_TIME }, /* Time Shift */
50 { 0x001f, KEY_RECORD },
51 { 0x0020, KEY_UP },
52 { 0x0021, KEY_DOWN },
53 { 0x0025, KEY_POWER }, /* Turn off computer */
54 { 0x0026, KEY_REWIND }, /* FR << */
55 { 0x0027, KEY_FASTFORWARD }, /* FF >> */
56 { 0x0029, KEY_ESC },
57 { 0x002b, KEY_VOLUMEUP },
58 { 0x002c, KEY_VOLUMEDOWN },
59 { 0x002d, KEY_CHANNEL }, /* CH Surfing */
60 { 0x0038, KEY_VIDEO }, /* TV/AV/S-Video/YPbPr */
61 };
62
63 static struct rc_map_list total_media_in_hand_02_map = {
64 .map = {
65 .scan = total_media_in_hand_02,
66 .size = ARRAY_SIZE(total_media_in_hand_02),
67 .rc_proto = RC_PROTO_RC5,
68 .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02,
69 }
70 };
71
init_rc_map_total_media_in_hand_02(void)72 static int __init init_rc_map_total_media_in_hand_02(void)
73 {
74 return rc_map_register(&total_media_in_hand_02_map);
75 }
76
exit_rc_map_total_media_in_hand_02(void)77 static void __exit exit_rc_map_total_media_in_hand_02(void)
78 {
79 rc_map_unregister(&total_media_in_hand_02_map);
80 }
81
82 module_init(init_rc_map_total_media_in_hand_02)
83 module_exit(exit_rc_map_total_media_in_hand_02)
84
85 MODULE_LICENSE("GPL");
86 MODULE_AUTHOR(" Alfredo J. Delaiti <alfredodelaiti@netscape.net>");
87