1 // SPDX-License-Identifier: GPL-2.0+
2 // pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller
4 // keymap imported from ir-keymaps.c
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 pinnacle_grey[] = {
12 { 0x3a, KEY_NUMERIC_0 },
13 { 0x31, KEY_NUMERIC_1 },
14 { 0x32, KEY_NUMERIC_2 },
15 { 0x33, KEY_NUMERIC_3 },
16 { 0x34, KEY_NUMERIC_4 },
17 { 0x35, KEY_NUMERIC_5 },
18 { 0x36, KEY_NUMERIC_6 },
19 { 0x37, KEY_NUMERIC_7 },
20 { 0x38, KEY_NUMERIC_8 },
21 { 0x39, KEY_NUMERIC_9 },
31 { 0x1b, KEY_VOLUMEUP },
32 { 0x0f, KEY_VOLUMEDOWN },
33 { 0x17, KEY_CHANNELUP },
34 { 0x1c, KEY_CHANNELDOWN },
48 { 0x16, KEY_PREVIOUSSONG },
49 { 0x13, KEY_NEXTSONG },
54 { 0x07, KEY_FORWARD },
62 static struct rc_map_list pinnacle_grey_map = {
64 .scan = pinnacle_grey,
65 .size = ARRAY_SIZE(pinnacle_grey),
66 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
67 .name = RC_MAP_PINNACLE_GREY,
71 static int __init init_rc_map_pinnacle_grey(void)
73 return rc_map_register(&pinnacle_grey_map);
76 static void __exit exit_rc_map_pinnacle_grey(void)
78 rc_map_unregister(&pinnacle_grey_map);
81 module_init(init_rc_map_pinnacle_grey)
82 module_exit(exit_rc_map_pinnacle_grey)
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab");