1 // SPDX-License-Identifier: GPL-2.0+
2 // avertv-303.h - Keytable for avertv_303 Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11 /* AVERTV STUDIO 303 Remote */
12
13 static struct rc_map_table avertv_303[] = {
14 { 0x2a, KEY_NUMERIC_1 },
15 { 0x32, KEY_NUMERIC_2 },
16 { 0x3a, KEY_NUMERIC_3 },
17 { 0x4a, KEY_NUMERIC_4 },
18 { 0x52, KEY_NUMERIC_5 },
19 { 0x5a, KEY_NUMERIC_6 },
20 { 0x6a, KEY_NUMERIC_7 },
21 { 0x72, KEY_NUMERIC_8 },
22 { 0x7a, KEY_NUMERIC_9 },
23 { 0x0e, KEY_NUMERIC_0 },
24
25 { 0x02, KEY_POWER },
26 { 0x22, KEY_VIDEO },
27 { 0x42, KEY_AUDIO },
28 { 0x62, KEY_ZOOM },
29 { 0x0a, KEY_TV },
30 { 0x12, KEY_CD },
31 { 0x1a, KEY_TEXT },
32
33 { 0x16, KEY_SUBTITLE },
34 { 0x1e, KEY_REWIND },
35 { 0x06, KEY_PRINT },
36
37 { 0x2e, KEY_SEARCH },
38 { 0x36, KEY_SLEEP },
39 { 0x3e, KEY_SHUFFLE },
40 { 0x26, KEY_MUTE },
41
42 { 0x4e, KEY_RECORD },
43 { 0x56, KEY_PAUSE },
44 { 0x5e, KEY_STOP },
45 { 0x46, KEY_PLAY },
46
47 { 0x6e, KEY_RED },
48 { 0x0b, KEY_GREEN },
49 { 0x66, KEY_YELLOW },
50 { 0x03, KEY_BLUE },
51
52 { 0x76, KEY_LEFT },
53 { 0x7e, KEY_RIGHT },
54 { 0x13, KEY_DOWN },
55 { 0x1b, KEY_UP },
56 };
57
58 static struct rc_map_list avertv_303_map = {
59 .map = {
60 .scan = avertv_303,
61 .size = ARRAY_SIZE(avertv_303),
62 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
63 .name = RC_MAP_AVERTV_303,
64 }
65 };
66
init_rc_map_avertv_303(void)67 static int __init init_rc_map_avertv_303(void)
68 {
69 return rc_map_register(&avertv_303_map);
70 }
71
exit_rc_map_avertv_303(void)72 static void __exit exit_rc_map_avertv_303(void)
73 {
74 rc_map_unregister(&avertv_303_map);
75 }
76
77 module_init(init_rc_map_avertv_303)
78 module_exit(exit_rc_map_avertv_303)
79
80 MODULE_LICENSE("GPL");
81 MODULE_AUTHOR("Mauro Carvalho Chehab");
82