aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-12-17 12:39:29 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:17:00 -0500
commit12007419b766b316998499bd07c6586928230729 (patch)
tree145153db892dc38ec6f7f1203f9c3bcf8cf1d250 /drivers/media/rc
parente330289ed40f76819d6a13e682203c6fc9a86304 (diff)
[media] Add a keymap for Pixelview 002-T remote
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/keymaps/Makefile1
-rw-r--r--drivers/media/rc/keymaps/rc-pixelview-002t.c77
2 files changed, 78 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile
index 3194d391bbd4..148900f443d2 100644
--- a/drivers/media/rc/keymaps/Makefile
+++ b/drivers/media/rc/keymaps/Makefile
@@ -62,6 +62,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
62 rc-pinnacle-pctv-hd.o \ 62 rc-pinnacle-pctv-hd.o \
63 rc-pixelview.o \ 63 rc-pixelview.o \
64 rc-pixelview-mk12.o \ 64 rc-pixelview-mk12.o \
65 rc-pixelview-002t.o \
65 rc-pixelview-new.o \ 66 rc-pixelview-new.o \
66 rc-powercolor-real-angel.o \ 67 rc-powercolor-real-angel.o \
67 rc-proteus-2309.o \ 68 rc-proteus-2309.o \
diff --git a/drivers/media/rc/keymaps/rc-pixelview-002t.c b/drivers/media/rc/keymaps/rc-pixelview-002t.c
new file mode 100644
index 000000000000..e5ab071f635a
--- /dev/null
+++ b/drivers/media/rc/keymaps/rc-pixelview-002t.c
@@ -0,0 +1,77 @@
1/* rc-pixelview-mk12.h - Keytable for pixelview 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/*
16 * Keytable for 002-T IR remote provided together with Pixelview
17 * SBTVD Hybrid Remote Controller. Uses NEC extended format.
18 */
19static struct rc_map_table pixelview_002t[] = {
20 { 0x866b13, KEY_MUTE },
21 { 0x866b12, KEY_POWER2 }, /* power */
22
23 { 0x866b01, KEY_1 },
24 { 0x866b02, KEY_2 },
25 { 0x866b03, KEY_3 },
26 { 0x866b04, KEY_4 },
27 { 0x866b05, KEY_5 },
28 { 0x866b06, KEY_6 },
29 { 0x866b07, KEY_7 },
30 { 0x866b08, KEY_8 },
31 { 0x866b09, KEY_9 },
32 { 0x866b00, KEY_0 },
33
34 { 0x866b0d, KEY_CHANNELUP },
35 { 0x866b19, KEY_CHANNELDOWN },
36 { 0x866b10, KEY_VOLUMEUP }, /* vol + */
37 { 0x866b0c, KEY_VOLUMEDOWN }, /* vol - */
38
39 { 0x866b0a, KEY_CAMERA }, /* snapshot */
40 { 0x866b0b, KEY_ZOOM }, /* zoom */
41
42 { 0x866b1b, KEY_BACKSPACE },
43 { 0x866b15, KEY_ENTER },
44
45 { 0x866b1d, KEY_UP },
46 { 0x866b1e, KEY_DOWN },
47 { 0x866b0e, KEY_LEFT },
48 { 0x866b0f, KEY_RIGHT },
49
50 { 0x866b18, KEY_RECORD },
51 { 0x866b1a, KEY_STOP },
52};
53
54static struct rc_map_list pixelview_map = {
55 .map = {
56 .scan = pixelview_002t,
57 .size = ARRAY_SIZE(pixelview_002t),
58 .rc_type = RC_TYPE_NEC,
59 .name = RC_MAP_PIXELVIEW_002T,
60 }
61};
62
63static int __init init_rc_map_pixelview(void)
64{
65 return rc_map_register(&pixelview_map);
66}
67
68static void __exit exit_rc_map_pixelview(void)
69{
70 rc_map_unregister(&pixelview_map);
71}
72
73module_init(init_rc_map_pixelview)
74module_exit(exit_rc_map_pixelview)
75
76MODULE_LICENSE("GPL");
77MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");