blob: 18e1a2679c20eee7a2425388fc6153929961b472 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* em-terratec.h - Keytable for em_terratec Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -02005 * Copyright (c) 2010 by Mauro Carvalho Chehab
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13#include <media/rc-map.h>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030016static struct rc_map_table em_terratec[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030017 { 0x01, KEY_CHANNEL },
18 { 0x02, KEY_SELECT },
19 { 0x03, KEY_MUTE },
20 { 0x04, KEY_POWER },
21 { 0x05, KEY_1 },
22 { 0x06, KEY_2 },
23 { 0x07, KEY_3 },
24 { 0x08, KEY_CHANNELUP },
25 { 0x09, KEY_4 },
26 { 0x0a, KEY_5 },
27 { 0x0b, KEY_6 },
28 { 0x0c, KEY_CHANNELDOWN },
29 { 0x0d, KEY_7 },
30 { 0x0e, KEY_8 },
31 { 0x0f, KEY_9 },
32 { 0x10, KEY_VOLUMEUP },
33 { 0x11, KEY_0 },
34 { 0x12, KEY_MENU },
35 { 0x13, KEY_PRINT },
36 { 0x14, KEY_VOLUMEDOWN },
37 { 0x16, KEY_PAUSE },
38 { 0x18, KEY_RECORD },
39 { 0x19, KEY_REWIND },
40 { 0x1a, KEY_PLAY },
41 { 0x1b, KEY_FORWARD },
42 { 0x1c, KEY_BACKSPACE },
43 { 0x1e, KEY_STOP },
44 { 0x40, KEY_ZOOM },
45};
46
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030047static struct rc_map_list em_terratec_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030048 .map = {
Sean Young6d741bf2017-08-07 16:20:58 -040049 .scan = em_terratec,
50 .size = ARRAY_SIZE(em_terratec),
51 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
52 .name = RC_MAP_EM_TERRATEC,
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030053 }
54};
55
56static int __init init_rc_map_em_terratec(void)
57{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030058 return rc_map_register(&em_terratec_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030059}
60
61static void __exit exit_rc_map_em_terratec(void)
62{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030063 rc_map_unregister(&em_terratec_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030064}
65
66module_init(init_rc_map_em_terratec)
67module_exit(exit_rc_map_em_terratec)
68
69MODULE_LICENSE("GPL");
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -020070MODULE_AUTHOR("Mauro Carvalho Chehab");