Linux 4.16.11
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-em-terratec.c
blobcbbba21484fbbc4b21e66b9d20b8fa18d22a0aac
1 // SPDX-License-Identifier: GPL-2.0+
2 // em-terratec.h - Keytable for em_terratec 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 em_terratec[] = {
12 { 0x01, KEY_CHANNEL },
13 { 0x02, KEY_SELECT },
14 { 0x03, KEY_MUTE },
15 { 0x04, KEY_POWER },
16 { 0x05, KEY_1 },
17 { 0x06, KEY_2 },
18 { 0x07, KEY_3 },
19 { 0x08, KEY_CHANNELUP },
20 { 0x09, KEY_4 },
21 { 0x0a, KEY_5 },
22 { 0x0b, KEY_6 },
23 { 0x0c, KEY_CHANNELDOWN },
24 { 0x0d, KEY_7 },
25 { 0x0e, KEY_8 },
26 { 0x0f, KEY_9 },
27 { 0x10, KEY_VOLUMEUP },
28 { 0x11, KEY_0 },
29 { 0x12, KEY_MENU },
30 { 0x13, KEY_PRINT },
31 { 0x14, KEY_VOLUMEDOWN },
32 { 0x16, KEY_PAUSE },
33 { 0x18, KEY_RECORD },
34 { 0x19, KEY_REWIND },
35 { 0x1a, KEY_PLAY },
36 { 0x1b, KEY_FORWARD },
37 { 0x1c, KEY_BACKSPACE },
38 { 0x1e, KEY_STOP },
39 { 0x40, KEY_ZOOM },
42 static struct rc_map_list em_terratec_map = {
43 .map = {
44 .scan = em_terratec,
45 .size = ARRAY_SIZE(em_terratec),
46 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
47 .name = RC_MAP_EM_TERRATEC,
51 static int __init init_rc_map_em_terratec(void)
53 return rc_map_register(&em_terratec_map);
56 static void __exit exit_rc_map_em_terratec(void)
58 rc_map_unregister(&em_terratec_map);
61 module_init(init_rc_map_em_terratec)
62 module_exit(exit_rc_map_em_terratec)
64 MODULE_LICENSE("GPL");
65 MODULE_AUTHOR("Mauro Carvalho Chehab");