diff options
author | Alfredo Jesús Delaiti <alfredodelaiti@netscape.net> | 2012-11-08 14:14:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-23 16:42:14 -0500 |
commit | 36cb26a4a67cdc186a2a5ec5e49063ea635969ee (patch) | |
tree | 65191cae4cb26c1067559c219a915ced2d86c1eb | |
parent | 8b2aea7878f64814544d0527c659011949d52358 (diff) |
[media] rc/keymaps: add RC keytable for MyGica X8507
Add RC-5 remote keytable definition for MyGica X8507.
[mchehab@redhat.com: fixed whitespacing - it seems that Alfredo's emailer mangled
it]
Signed-off-by: Alfredo J. Delaiti <alfredodelaiti@netscape.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/rc/keymaps/Makefile | 1 | ||||
-rw-r--r-- | drivers/media/rc/keymaps/rc-total-media-in-hand-02.c | 86 | ||||
-rw-r--r-- | include/media/rc-map.h | 1 |
3 files changed, 88 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile index ab84d66c67c1..778661971aed 100644 --- a/drivers/media/rc/keymaps/Makefile +++ b/drivers/media/rc/keymaps/Makefile | |||
@@ -88,6 +88,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \ | |||
88 | rc-tevii-nec.o \ | 88 | rc-tevii-nec.o \ |
89 | rc-tivo.o \ | 89 | rc-tivo.o \ |
90 | rc-total-media-in-hand.o \ | 90 | rc-total-media-in-hand.o \ |
91 | rc-total-media-in-hand-02.o \ | ||
91 | rc-trekstor.o \ | 92 | rc-trekstor.o \ |
92 | rc-tt-1500.o \ | 93 | rc-tt-1500.o \ |
93 | rc-twinhan1027.o \ | 94 | rc-twinhan1027.o \ |
diff --git a/drivers/media/rc/keymaps/rc-total-media-in-hand-02.c b/drivers/media/rc/keymaps/rc-total-media-in-hand-02.c new file mode 100644 index 000000000000..47270f72ebf0 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-total-media-in-hand-02.c | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | * Total Media In Hand_02 remote controller keytable for Mygica X8507 | ||
3 | * | ||
4 | * Copyright (C) 2012 Alfredo J. Delaiti <alfredodelaiti@netscape.net> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | |||
21 | #include <media/rc-map.h> | ||
22 | #include <linux/module.h> | ||
23 | |||
24 | |||
25 | static struct rc_map_table total_media_in_hand_02[] = { | ||
26 | { 0x0000, KEY_0 }, | ||
27 | { 0x0001, KEY_1 }, | ||
28 | { 0x0002, KEY_2 }, | ||
29 | { 0x0003, KEY_3 }, | ||
30 | { 0x0004, KEY_4 }, | ||
31 | { 0x0005, KEY_5 }, | ||
32 | { 0x0006, KEY_6 }, | ||
33 | { 0x0007, KEY_7 }, | ||
34 | { 0x0008, KEY_8 }, | ||
35 | { 0x0009, KEY_9 }, | ||
36 | { 0x000a, KEY_MUTE }, | ||
37 | { 0x000b, KEY_STOP }, /* Stop */ | ||
38 | { 0x000c, KEY_POWER2 }, /* Turn on/off application */ | ||
39 | { 0x000d, KEY_OK }, /* OK */ | ||
40 | { 0x000e, KEY_CAMERA }, /* Snapshot */ | ||
41 | { 0x000f, KEY_ZOOM }, /* Full Screen/Restore */ | ||
42 | { 0x0010, KEY_RIGHT }, /* Right arrow */ | ||
43 | { 0x0011, KEY_LEFT }, /* Left arrow */ | ||
44 | { 0x0012, KEY_CHANNELUP }, | ||
45 | { 0x0013, KEY_CHANNELDOWN }, | ||
46 | { 0x0014, KEY_SHUFFLE }, | ||
47 | { 0x0016, KEY_PAUSE }, | ||
48 | { 0x0017, KEY_PLAY }, /* Play */ | ||
49 | { 0x001e, KEY_TIME }, /* Time Shift */ | ||
50 | { 0x001f, KEY_RECORD }, | ||
51 | { 0x0020, KEY_UP }, | ||
52 | { 0x0021, KEY_DOWN }, | ||
53 | { 0x0025, KEY_POWER }, /* Turn off computer */ | ||
54 | { 0x0026, KEY_REWIND }, /* FR << */ | ||
55 | { 0x0027, KEY_FASTFORWARD }, /* FF >> */ | ||
56 | { 0x0029, KEY_ESC }, | ||
57 | { 0x002b, KEY_VOLUMEUP }, | ||
58 | { 0x002c, KEY_VOLUMEDOWN }, | ||
59 | { 0x002d, KEY_CHANNEL }, /* CH Surfing */ | ||
60 | { 0x0038, KEY_VIDEO }, /* TV/AV/S-Video/YPbPr */ | ||
61 | }; | ||
62 | |||
63 | static struct rc_map_list total_media_in_hand_02_map = { | ||
64 | .map = { | ||
65 | .scan = total_media_in_hand_02, | ||
66 | .size = ARRAY_SIZE(total_media_in_hand_02), | ||
67 | .rc_type = RC_TYPE_RC5, | ||
68 | .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02, | ||
69 | } | ||
70 | }; | ||
71 | |||
72 | static int __init init_rc_map_total_media_in_hand_02(void) | ||
73 | { | ||
74 | return rc_map_register(&total_media_in_hand_02_map); | ||
75 | } | ||
76 | |||
77 | static void __exit exit_rc_map_total_media_in_hand_02(void) | ||
78 | { | ||
79 | rc_map_unregister(&total_media_in_hand_02_map); | ||
80 | } | ||
81 | |||
82 | module_init(init_rc_map_total_media_in_hand_02) | ||
83 | module_exit(exit_rc_map_total_media_in_hand_02) | ||
84 | |||
85 | MODULE_LICENSE("GPL"); | ||
86 | MODULE_AUTHOR(" Alfredo J. Delaiti <alfredodelaiti@netscape.net>"); | ||
diff --git a/include/media/rc-map.h b/include/media/rc-map.h index 74f55a3f14eb..f74ee6f89711 100644 --- a/include/media/rc-map.h +++ b/include/media/rc-map.h | |||
@@ -182,6 +182,7 @@ void rc_map_init(void); | |||
182 | #define RC_MAP_TEVII_NEC "rc-tevii-nec" | 182 | #define RC_MAP_TEVII_NEC "rc-tevii-nec" |
183 | #define RC_MAP_TIVO "rc-tivo" | 183 | #define RC_MAP_TIVO "rc-tivo" |
184 | #define RC_MAP_TOTAL_MEDIA_IN_HAND "rc-total-media-in-hand" | 184 | #define RC_MAP_TOTAL_MEDIA_IN_HAND "rc-total-media-in-hand" |
185 | #define RC_MAP_TOTAL_MEDIA_IN_HAND_02 "rc-total-media-in-hand-02" | ||
185 | #define RC_MAP_TREKSTOR "rc-trekstor" | 186 | #define RC_MAP_TREKSTOR "rc-trekstor" |
186 | #define RC_MAP_TT_1500 "rc-tt-1500" | 187 | #define RC_MAP_TT_1500 "rc-tt-1500" |
187 | #define RC_MAP_TWINHAN_VP1027_DVBS "rc-twinhan1027" | 188 | #define RC_MAP_TWINHAN_VP1027_DVBS "rc-twinhan1027" |