WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-npgtech.c
blob98a755e8bc181adaed20ec9105ef0976d1058373
1 // SPDX-License-Identifier: GPL-2.0+
2 // npgtech.h - Keytable for npgtech Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table npgtech[] = {
12 { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */
13 { 0x2a, KEY_FRONT },
15 { 0x3e, KEY_NUMERIC_1 },
16 { 0x02, KEY_NUMERIC_2 },
17 { 0x06, KEY_NUMERIC_3 },
18 { 0x0a, KEY_NUMERIC_4 },
19 { 0x0e, KEY_NUMERIC_5 },
20 { 0x12, KEY_NUMERIC_6 },
21 { 0x16, KEY_NUMERIC_7 },
22 { 0x1a, KEY_NUMERIC_8 },
23 { 0x1e, KEY_NUMERIC_9 },
24 { 0x3a, KEY_NUMERIC_0 },
25 { 0x22, KEY_NUMLOCK }, /* -/-- */
26 { 0x20, KEY_REFRESH },
28 { 0x03, KEY_BRIGHTNESSDOWN },
29 { 0x28, KEY_AUDIO },
30 { 0x3c, KEY_CHANNELUP },
31 { 0x3f, KEY_VOLUMEDOWN },
32 { 0x2e, KEY_MUTE },
33 { 0x3b, KEY_VOLUMEUP },
34 { 0x00, KEY_CHANNELDOWN },
35 { 0x07, KEY_BRIGHTNESSUP },
36 { 0x2c, KEY_TEXT },
38 { 0x37, KEY_RECORD },
39 { 0x17, KEY_PLAY },
40 { 0x13, KEY_PAUSE },
41 { 0x26, KEY_STOP },
42 { 0x18, KEY_FASTFORWARD },
43 { 0x14, KEY_REWIND },
44 { 0x33, KEY_ZOOM },
45 { 0x32, KEY_KEYBOARD },
46 { 0x30, KEY_GOTO }, /* Pointing arrow */
47 { 0x36, KEY_MACRO }, /* Maximize/Minimize (yellow) */
48 { 0x0b, KEY_RADIO },
49 { 0x10, KEY_POWER },
53 static struct rc_map_list npgtech_map = {
54 .map = {
55 .scan = npgtech,
56 .size = ARRAY_SIZE(npgtech),
57 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
58 .name = RC_MAP_NPGTECH,
62 static int __init init_rc_map_npgtech(void)
64 return rc_map_register(&npgtech_map);
67 static void __exit exit_rc_map_npgtech(void)
69 rc_map_unregister(&npgtech_map);
72 module_init(init_rc_map_npgtech)
73 module_exit(exit_rc_map_npgtech)
75 MODULE_LICENSE("GPL");
76 MODULE_AUTHOR("Mauro Carvalho Chehab");