1
2
3
4
5
6
7
8
9
10
11
12
13#include <media/rc-map.h>
14#include <linux/module.h>
15
16static struct rc_map_table purpletv[] = {
17 { 0x03, KEY_POWER },
18 { 0x6f, KEY_MUTE },
19 { 0x10, KEY_BACKSPACE },
20
21 { 0x11, KEY_0 },
22 { 0x04, KEY_1 },
23 { 0x05, KEY_2 },
24 { 0x06, KEY_3 },
25 { 0x08, KEY_4 },
26 { 0x09, KEY_5 },
27 { 0x0a, KEY_6 },
28 { 0x0c, KEY_7 },
29 { 0x0d, KEY_8 },
30 { 0x0e, KEY_9 },
31 { 0x12, KEY_DOT },
32
33 { 0x07, KEY_VOLUMEUP },
34 { 0x0b, KEY_VOLUMEDOWN },
35 { 0x1a, KEY_KPPLUS },
36 { 0x18, KEY_KPMINUS },
37 { 0x15, KEY_UP },
38 { 0x1d, KEY_DOWN },
39 { 0x0f, KEY_CHANNELUP },
40 { 0x13, KEY_CHANNELDOWN },
41 { 0x48, KEY_ZOOM },
42
43 { 0x1b, KEY_VIDEO },
44 { 0x1f, KEY_CAMERA },
45 { 0x49, KEY_LANGUAGE },
46 { 0x19, KEY_SEARCH },
47
48 { 0x4b, KEY_RECORD },
49 { 0x46, KEY_PLAY },
50 { 0x45, KEY_PAUSE },
51 { 0x44, KEY_STOP },
52 { 0x43, KEY_TIME },
53 { 0x17, KEY_CHANNEL },
54 { 0x40, KEY_FORWARD },
55 { 0x42, KEY_REWIND },
56
57};
58
59static struct rc_map_list purpletv_map = {
60 .map = {
61 .scan = purpletv,
62 .size = ARRAY_SIZE(purpletv),
63 .rc_type = RC_TYPE_UNKNOWN,
64 .name = RC_MAP_PURPLETV,
65 }
66};
67
68static int __init init_rc_map_purpletv(void)
69{
70 return rc_map_register(&purpletv_map);
71}
72
73static void __exit exit_rc_map_purpletv(void)
74{
75 rc_map_unregister(&purpletv_map);
76}
77
78module_init(init_rc_map_purpletv)
79module_exit(exit_rc_map_purpletv)
80
81MODULE_LICENSE("GPL");
82MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
83