aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-03-19 13:11:55 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 03:54:55 -0400
commit638b53f80ceb5a57b5c9b6c4a078f605a8cc2d71 (patch)
tree8f0ab697e268e6f3a707653901cc86cac94f8b56 /drivers/media/rc/keymaps
parent1e8750c2ac2bcbf2b084d3fa77cbb5eef33b3e7f (diff)
[media] add TerraTec remote
Remote used for TerraTec Cinergy T Stick RC. Keytable from Martin Groszhauser <mgroszhauser@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Cc: Martin Groszhauser <mgroszhauser@gmail.com> Cc: TerraTux <TerraTux@terratec.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps')
-rw-r--r--drivers/media/rc/keymaps/Makefile1
-rw-r--r--drivers/media/rc/keymaps/rc-terratec-slim-2.c72
2 files changed, 73 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile
index f0c80559b303..cb721216571c 100644
--- a/drivers/media/rc/keymaps/Makefile
+++ b/drivers/media/rc/keymaps/Makefile
@@ -77,6 +77,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
77 rc-technisat-usb2.o \ 77 rc-technisat-usb2.o \
78 rc-terratec-cinergy-xs.o \ 78 rc-terratec-cinergy-xs.o \
79 rc-terratec-slim.o \ 79 rc-terratec-slim.o \
80 rc-terratec-slim-2.o \
80 rc-tevii-nec.o \ 81 rc-tevii-nec.o \
81 rc-total-media-in-hand.o \ 82 rc-total-media-in-hand.o \
82 rc-trekstor.o \ 83 rc-trekstor.o \
diff --git a/drivers/media/rc/keymaps/rc-terratec-slim-2.c b/drivers/media/rc/keymaps/rc-terratec-slim-2.c
new file mode 100644
index 000000000000..44093918cf03
--- /dev/null
+++ b/drivers/media/rc/keymaps/rc-terratec-slim-2.c
@@ -0,0 +1,72 @@
1/*
2 * TerraTec remote controller keytable
3 *
4 * Copyright (C) 2011 Martin Groszhauser <mgroszhauser@gmail.com>
5 * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
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 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22#include <media/rc-map.h>
23
24/*
25 * TerraTec slim remote, 6 rows, 3 columns.
26 * Keytable from Martin Groszhauser <mgroszhauser@gmail.com>
27 */
28static struct rc_map_table terratec_slim_2[] = {
29 { 0x8001, KEY_MUTE }, /* MUTE */
30 { 0x8002, KEY_VOLUMEDOWN },
31 { 0x8003, KEY_CHANNELDOWN },
32 { 0x8004, KEY_1 },
33 { 0x8005, KEY_2 },
34 { 0x8006, KEY_3 },
35 { 0x8007, KEY_4 },
36 { 0x8008, KEY_5 },
37 { 0x8009, KEY_6 },
38 { 0x800a, KEY_7 },
39 { 0x800c, KEY_ZOOM }, /* [fullscreen] */
40 { 0x800d, KEY_0 },
41 { 0x800e, KEY_AGAIN }, /* [two arrows forming a circle] */
42 { 0x8012, KEY_POWER2 }, /* [red power button] */
43 { 0x801a, KEY_VOLUMEUP },
44 { 0x801b, KEY_8 },
45 { 0x801e, KEY_CHANNELUP },
46 { 0x801f, KEY_9 },
47};
48
49static struct rc_map_list terratec_slim_2_map = {
50 .map = {
51 .scan = terratec_slim_2,
52 .size = ARRAY_SIZE(terratec_slim_2),
53 .rc_type = RC_TYPE_NEC,
54 .name = RC_MAP_TERRATEC_SLIM_2,
55 }
56};
57
58static int __init init_rc_map_terratec_slim_2(void)
59{
60 return rc_map_register(&terratec_slim_2_map);
61}
62
63static void __exit exit_rc_map_terratec_slim_2(void)
64{
65 rc_map_unregister(&terratec_slim_2_map);
66}
67
68module_init(init_rc_map_terratec_slim_2)
69module_exit(exit_rc_map_terratec_slim_2)
70
71MODULE_LICENSE("GPL");
72MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");