2 * LeadTek Y04G0051 remote controller keytable
4 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
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.
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.
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.
21 #include <media/rc-map.h>
22 #include <linux/module.h>
24 static struct rc_map_table leadtek_y04g0051[] = {
25 { 0x0300, KEY_POWER2 },
26 { 0x0303, KEY_SCREEN },
27 { 0x0304, KEY_RIGHT },
40 { 0x0311, KEY_AGAIN },
42 { 0x0313, KEY_OK }, /* 1st ok */
44 { 0x0316, KEY_OK }, /* 2nd ok */
45 { 0x031e, KEY_VIDEO }, /* 2nd video */
46 { 0x031b, KEY_AUDIO },
48 { 0x0340, KEY_SLEEP },
50 { 0x0342, KEY_REWIND },
52 { 0x0344, KEY_FASTFORWARD },
54 { 0x0346, KEY_STOP }, /* 2nd stop */
55 { 0x0347, KEY_RECORD },
56 { 0x0348, KEY_CAMERA },
60 { 0x034c, KEY_GREEN },
61 { 0x034d, KEY_YELLOW },
64 { 0x0350, KEY_STOP }, /* 1st stop */
65 { 0x0351, KEY_CHANNEL },
66 { 0x0352, KEY_VIDEO }, /* 1st video */
68 { 0x0354, KEY_PREVIOUS },
71 { 0x035a, KEY_VOLUMEDOWN },
72 { 0x035b, KEY_CHANNELUP },
73 { 0x035e, KEY_VOLUMEUP },
74 { 0x035f, KEY_CHANNELDOWN },
77 static struct rc_map_list leadtek_y04g0051_map = {
79 .scan = leadtek_y04g0051,
80 .size = ARRAY_SIZE(leadtek_y04g0051),
81 .rc_type = RC_TYPE_NEC,
82 .name = RC_MAP_LEADTEK_Y04G0051,
86 static int __init init_rc_map_leadtek_y04g0051(void)
88 return rc_map_register(&leadtek_y04g0051_map);
91 static void __exit exit_rc_map_leadtek_y04g0051(void)
93 rc_map_unregister(&leadtek_y04g0051_map);
96 module_init(init_rc_map_leadtek_y04g0051)
97 module_exit(exit_rc_map_leadtek_y04g0051)
99 MODULE_LICENSE("GPL");
100 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");