1 /* ITE Generic remotes Version 1
3 * Copyright (C) 2012 Malcolm Priestley (tvboxspy@gmail.com)
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
15 static struct rc_map_table it913x_v1_rc[] = {
17 { 0x61d601, KEY_VIDEO }, /* Source */
19 { 0x61d603, KEY_POWER }, /* ShutDown */
23 { 0x61d607, KEY_CHANNELDOWN }, /* CH- */
25 { 0x61d609, KEY_CHANNELUP }, /* CH+ */
27 { 0x61d60b, KEY_ZOOM }, /* Zoom */
30 { 0x61d60e, KEY_VOLUMEUP }, /* Vol+ */
32 { 0x61d610, KEY_ESC }, /* [back up arrow] */
34 { 0x61d612, KEY_OK }, /* [enter arrow] */
35 { 0x61d613, KEY_VOLUMEDOWN }, /* Vol- */
36 { 0x61d614, KEY_RECORD }, /* Rec */
37 { 0x61d615, KEY_STOP }, /* Stop */
38 { 0x61d616, KEY_PLAY }, /* Play */
39 { 0x61d617, KEY_MUTE }, /* Mute */
41 { 0x61d619, KEY_DOWN },
42 { 0x61d61a, KEY_LEFT },
43 { 0x61d61b, KEY_RIGHT },
44 { 0x61d61c, KEY_RED },
45 { 0x61d61d, KEY_GREEN },
46 { 0x61d61e, KEY_YELLOW },
47 { 0x61d61f, KEY_BLUE },
48 { 0x61d643, KEY_POWER2 }, /* [red power button] */
49 /* Type 2 - 20 buttons */
60 { 0x807f12, KEY_POWER },
61 { 0x807f01, KEY_MEDIA_REPEAT}, /* Recall */
62 { 0x807f19, KEY_PAUSE }, /* Timeshift */
63 { 0x807f1e, KEY_VOLUMEUP }, /* 2 x -/+ Keys not marked */
64 { 0x807f03, KEY_VOLUMEDOWN }, /* Volume defined as right hand*/
65 { 0x807f1a, KEY_CHANNELUP },
66 { 0x807f02, KEY_CHANNELDOWN },
67 { 0x807f0c, KEY_ZOOM },
68 { 0x807f00, KEY_RECORD },
69 { 0x807f0e, KEY_STOP },
72 static struct rc_map_list it913x_v1_map = {
75 .size = ARRAY_SIZE(it913x_v1_rc),
76 .rc_type = RC_TYPE_NEC,
77 .name = RC_MAP_IT913X_V1,
81 static int __init init_rc_it913x_v1_map(void)
83 return rc_map_register(&it913x_v1_map);
86 static void __exit exit_rc_it913x_v1_map(void)
88 rc_map_unregister(&it913x_v1_map);
91 module_init(init_rc_it913x_v1_map)
92 module_exit(exit_rc_it913x_v1_map)
94 MODULE_LICENSE("GPL");
95 MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");