1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LeadTek Y04G0051 remote controller keytable
5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
8 #include <media/rc-map.h>
9 #include <linux/module.h>
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
},
19 { 0x0309, KEY_NUMERIC_4
},
20 { 0x030a, KEY_NUMERIC_5
},
21 { 0x030b, KEY_NUMERIC_6
},
23 { 0x030d, KEY_NUMERIC_7
},
24 { 0x030e, KEY_NUMERIC_8
},
25 { 0x030f, KEY_NUMERIC_9
},
27 { 0x0311, KEY_AGAIN
},
28 { 0x0312, KEY_NUMERIC_0
},
29 { 0x0313, KEY_OK
}, /* 1st ok */
31 { 0x0316, KEY_OK
}, /* 2nd ok */
32 { 0x031e, KEY_VIDEO
}, /* 2nd video */
33 { 0x031b, KEY_AUDIO
},
35 { 0x0340, KEY_SLEEP
},
37 { 0x0342, KEY_REWIND
},
39 { 0x0344, KEY_FASTFORWARD
},
41 { 0x0346, KEY_STOP
}, /* 2nd stop */
42 { 0x0347, KEY_RECORD
},
43 { 0x0348, KEY_CAMERA
},
47 { 0x034c, KEY_GREEN
},
48 { 0x034d, KEY_YELLOW
},
51 { 0x0350, KEY_STOP
}, /* 1st stop */
52 { 0x0351, KEY_CHANNEL
},
53 { 0x0352, KEY_VIDEO
}, /* 1st video */
55 { 0x0354, KEY_PREVIOUS
},
58 { 0x035a, KEY_VOLUMEDOWN
},
59 { 0x035b, KEY_CHANNELUP
},
60 { 0x035e, KEY_VOLUMEUP
},
61 { 0x035f, KEY_CHANNELDOWN
},
64 static struct rc_map_list leadtek_y04g0051_map
= {
66 .scan
= leadtek_y04g0051
,
67 .size
= ARRAY_SIZE(leadtek_y04g0051
),
68 .rc_proto
= RC_PROTO_NEC
,
69 .name
= RC_MAP_LEADTEK_Y04G0051
,
73 static int __init
init_rc_map_leadtek_y04g0051(void)
75 return rc_map_register(&leadtek_y04g0051_map
);
78 static void __exit
exit_rc_map_leadtek_y04g0051(void)
80 rc_map_unregister(&leadtek_y04g0051_map
);
83 module_init(init_rc_map_leadtek_y04g0051
)
84 module_exit(exit_rc_map_leadtek_y04g0051
)
86 MODULE_LICENSE("GPL");
87 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");