1 // SPDX-License-Identifier: GPL-2.0+
2 // cinergy-1400.h - Keytable for cinergy_1400 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 /* Cinergy 1400 DVB-T */
12
13 static struct rc_map_table cinergy_1400[] = {
14 { 0x01, KEY_POWER },
15 { 0x02, KEY_NUMERIC_1 },
16 { 0x03, KEY_NUMERIC_2 },
17 { 0x04, KEY_NUMERIC_3 },
18 { 0x05, KEY_NUMERIC_4 },
19 { 0x06, KEY_NUMERIC_5 },
20 { 0x07, KEY_NUMERIC_6 },
21 { 0x08, KEY_NUMERIC_7 },
22 { 0x09, KEY_NUMERIC_8 },
23 { 0x0a, KEY_NUMERIC_9 },
24 { 0x0c, KEY_NUMERIC_0 },
25
26 { 0x0b, KEY_VIDEO },
27 { 0x0d, KEY_REFRESH },
28 { 0x0e, KEY_SELECT },
29 { 0x0f, KEY_EPG },
30 { 0x10, KEY_UP },
31 { 0x11, KEY_LEFT },
32 { 0x12, KEY_OK },
33 { 0x13, KEY_RIGHT },
34 { 0x14, KEY_DOWN },
35 { 0x15, KEY_TEXT },
36 { 0x16, KEY_INFO },
37
38 { 0x17, KEY_RED },
39 { 0x18, KEY_GREEN },
40 { 0x19, KEY_YELLOW },
41 { 0x1a, KEY_BLUE },
42
43 { 0x1b, KEY_CHANNELUP },
44 { 0x1c, KEY_VOLUMEUP },
45 { 0x1d, KEY_MUTE },
46 { 0x1e, KEY_VOLUMEDOWN },
47 { 0x1f, KEY_CHANNELDOWN },
48
49 { 0x40, KEY_PAUSE },
50 { 0x4c, KEY_PLAY },
51 { 0x58, KEY_RECORD },
52 { 0x54, KEY_PREVIOUS },
53 { 0x48, KEY_STOP },
54 { 0x5c, KEY_NEXT },
55 };
56
57 static struct rc_map_list cinergy_1400_map = {
58 .map = {
59 .scan = cinergy_1400,
60 .size = ARRAY_SIZE(cinergy_1400),
61 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
62 .name = RC_MAP_CINERGY_1400,
63 }
64 };
65
init_rc_map_cinergy_1400(void)66 static int __init init_rc_map_cinergy_1400(void)
67 {
68 return rc_map_register(&cinergy_1400_map);
69 }
70
exit_rc_map_cinergy_1400(void)71 static void __exit exit_rc_map_cinergy_1400(void)
72 {
73 rc_map_unregister(&cinergy_1400_map);
74 }
75
76 module_init(init_rc_map_cinergy_1400)
77 module_exit(exit_rc_map_cinergy_1400)
78
79 MODULE_LICENSE("GPL");
80 MODULE_AUTHOR("Mauro Carvalho Chehab");
81 MODULE_DESCRIPTION("Cinergy 1400 DVB-T remote controller keytable");
82