This source file includes following definitions.
- init_rc_map_leadtek_y04g0051
- exit_rc_map_leadtek_y04g0051
1
2
3
4
5
6
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11 static struct rc_map_table leadtek_y04g0051[] = {
12 { 0x0300, KEY_POWER2 },
13 { 0x0303, KEY_SCREEN },
14 { 0x0304, KEY_RIGHT },
15 { 0x0305, KEY_NUMERIC_1 },
16 { 0x0306, KEY_NUMERIC_2 },
17 { 0x0307, KEY_NUMERIC_3 },
18 { 0x0308, KEY_LEFT },
19 { 0x0309, KEY_NUMERIC_4 },
20 { 0x030a, KEY_NUMERIC_5 },
21 { 0x030b, KEY_NUMERIC_6 },
22 { 0x030c, KEY_UP },
23 { 0x030d, KEY_NUMERIC_7 },
24 { 0x030e, KEY_NUMERIC_8 },
25 { 0x030f, KEY_NUMERIC_9 },
26 { 0x0310, KEY_DOWN },
27 { 0x0311, KEY_AGAIN },
28 { 0x0312, KEY_NUMERIC_0 },
29 { 0x0313, KEY_OK },
30 { 0x0314, KEY_MUTE },
31 { 0x0316, KEY_OK },
32 { 0x031e, KEY_VIDEO },
33 { 0x031b, KEY_AUDIO },
34 { 0x031f, KEY_TEXT },
35 { 0x0340, KEY_SLEEP },
36 { 0x0341, KEY_DOT },
37 { 0x0342, KEY_REWIND },
38 { 0x0343, KEY_PLAY },
39 { 0x0344, KEY_FASTFORWARD },
40 { 0x0345, KEY_TIME },
41 { 0x0346, KEY_STOP },
42 { 0x0347, KEY_RECORD },
43 { 0x0348, KEY_CAMERA },
44 { 0x0349, KEY_ESC },
45 { 0x034a, KEY_NEW },
46 { 0x034b, KEY_RED },
47 { 0x034c, KEY_GREEN },
48 { 0x034d, KEY_YELLOW },
49 { 0x034e, KEY_BLUE },
50 { 0x034f, KEY_MENU },
51 { 0x0350, KEY_STOP },
52 { 0x0351, KEY_CHANNEL },
53 { 0x0352, KEY_VIDEO },
54 { 0x0353, KEY_EPG },
55 { 0x0354, KEY_PREVIOUS },
56 { 0x0355, KEY_NEXT },
57 { 0x0356, KEY_TV },
58 { 0x035a, KEY_VOLUMEDOWN },
59 { 0x035b, KEY_CHANNELUP },
60 { 0x035e, KEY_VOLUMEUP },
61 { 0x035f, KEY_CHANNELDOWN },
62 };
63
64 static struct rc_map_list leadtek_y04g0051_map = {
65 .map = {
66 .scan = leadtek_y04g0051,
67 .size = ARRAY_SIZE(leadtek_y04g0051),
68 .rc_proto = RC_PROTO_NEC,
69 .name = RC_MAP_LEADTEK_Y04G0051,
70 }
71 };
72
73 static int __init init_rc_map_leadtek_y04g0051(void)
74 {
75 return rc_map_register(&leadtek_y04g0051_map);
76 }
77
78 static void __exit exit_rc_map_leadtek_y04g0051(void)
79 {
80 rc_map_unregister(&leadtek_y04g0051_map);
81 }
82
83 module_init(init_rc_map_leadtek_y04g0051)
84 module_exit(exit_rc_map_leadtek_y04g0051)
85
86 MODULE_LICENSE("GPL");
87 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");