Commit | Line | Data |
---|---|---|
6686fa69 MCC |
1 | /* em-terratec.h - Keytable for em_terratec Remote Controller |
2 | * | |
3 | * keymap imported from ir-keymaps.c | |
4 | * | |
5 | * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> | |
6 | * | |
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> | |
14 | ||
15 | static struct ir_scancode em_terratec[] = { | |
16 | { 0x01, KEY_CHANNEL }, | |
17 | { 0x02, KEY_SELECT }, | |
18 | { 0x03, KEY_MUTE }, | |
19 | { 0x04, KEY_POWER }, | |
20 | { 0x05, KEY_1 }, | |
21 | { 0x06, KEY_2 }, | |
22 | { 0x07, KEY_3 }, | |
23 | { 0x08, KEY_CHANNELUP }, | |
24 | { 0x09, KEY_4 }, | |
25 | { 0x0a, KEY_5 }, | |
26 | { 0x0b, KEY_6 }, | |
27 | { 0x0c, KEY_CHANNELDOWN }, | |
28 | { 0x0d, KEY_7 }, | |
29 | { 0x0e, KEY_8 }, | |
30 | { 0x0f, KEY_9 }, | |
31 | { 0x10, KEY_VOLUMEUP }, | |
32 | { 0x11, KEY_0 }, | |
33 | { 0x12, KEY_MENU }, | |
34 | { 0x13, KEY_PRINT }, | |
35 | { 0x14, KEY_VOLUMEDOWN }, | |
36 | { 0x16, KEY_PAUSE }, | |
37 | { 0x18, KEY_RECORD }, | |
38 | { 0x19, KEY_REWIND }, | |
39 | { 0x1a, KEY_PLAY }, | |
40 | { 0x1b, KEY_FORWARD }, | |
41 | { 0x1c, KEY_BACKSPACE }, | |
42 | { 0x1e, KEY_STOP }, | |
43 | { 0x40, KEY_ZOOM }, | |
44 | }; | |
45 | ||
46 | static struct rc_keymap em_terratec_map = { | |
47 | .map = { | |
48 | .scan = em_terratec, | |
49 | .size = ARRAY_SIZE(em_terratec), | |
50 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | |
51 | .name = RC_MAP_EM_TERRATEC, | |
52 | } | |
53 | }; | |
54 | ||
55 | static int __init init_rc_map_em_terratec(void) | |
56 | { | |
57 | return ir_register_map(&em_terratec_map); | |
58 | } | |
59 | ||
60 | static void __exit exit_rc_map_em_terratec(void) | |
61 | { | |
62 | ir_unregister_map(&em_terratec_map); | |
63 | } | |
64 | ||
65 | module_init(init_rc_map_em_terratec) | |
66 | module_exit(exit_rc_map_em_terratec) | |
67 | ||
68 | MODULE_LICENSE("GPL"); | |
69 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); |