aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps/rc-videomate-m1f.c
diff options
context:
space:
mode:
authorRamiro Morales <ramiro@rmorales.net>2010-12-26 16:13:30 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:17:17 -0500
commitb7a0f2e793a52b306e682a0e2e9a0b6f0f0a730e (patch)
tree137d0e3af908043048e1c08274762236ce637137 /drivers/media/rc/keymaps/rc-videomate-m1f.c
parent44c6e2a7c2ec76dd495a0f330f9beac572a2fdd7 (diff)
[media] saa7134: Add support for Compro VideoMate Vista M1F
Signed-off-by: Pavel Osnova <pvosnova@gmail.com> Signed-off-by: Ramiro Morales <ramiro@rmorales.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps/rc-videomate-m1f.c')
-rw-r--r--drivers/media/rc/keymaps/rc-videomate-m1f.c92
1 files changed, 92 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-videomate-m1f.c b/drivers/media/rc/keymaps/rc-videomate-m1f.c
new file mode 100644
index 000000000000..4994d405c0a1
--- /dev/null
+++ b/drivers/media/rc/keymaps/rc-videomate-m1f.c
@@ -0,0 +1,92 @@
1/* videomate-m1f.h - Keytable for videomate_m1f Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
5 * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.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
15static struct rc_map_table videomate_m1f[] = {
16 { 0x01, KEY_POWER },
17 { 0x31, KEY_TUNER },
18 { 0x33, KEY_VIDEO },
19 { 0x2f, KEY_RADIO },
20 { 0x30, KEY_CAMERA },
21 { 0x2d, KEY_NEW }, /* TV record button */
22 { 0x17, KEY_CYCLEWINDOWS },
23 { 0x2c, KEY_ANGLE },
24 { 0x2b, KEY_LANGUAGE },
25 { 0x32, KEY_SEARCH }, /* '...' button */
26 { 0x11, KEY_UP },
27 { 0x13, KEY_LEFT },
28 { 0x15, KEY_OK },
29 { 0x14, KEY_RIGHT },
30 { 0x12, KEY_DOWN },
31 { 0x16, KEY_BACKSPACE },
32 { 0x02, KEY_ZOOM }, /* WIN key */
33 { 0x04, KEY_INFO },
34 { 0x05, KEY_VOLUMEUP },
35 { 0x03, KEY_MUTE },
36 { 0x07, KEY_CHANNELUP },
37 { 0x06, KEY_VOLUMEDOWN },
38 { 0x08, KEY_CHANNELDOWN },
39 { 0x0c, KEY_RECORD },
40 { 0x0e, KEY_STOP },
41 { 0x0a, KEY_BACK },
42 { 0x0b, KEY_PLAY },
43 { 0x09, KEY_FORWARD },
44 { 0x10, KEY_PREVIOUS },
45 { 0x0d, KEY_PAUSE },
46 { 0x0f, KEY_NEXT },
47 { 0x1e, KEY_1 },
48 { 0x1f, KEY_2 },
49 { 0x20, KEY_3 },
50 { 0x21, KEY_4 },
51 { 0x22, KEY_5 },
52 { 0x23, KEY_6 },
53 { 0x24, KEY_7 },
54 { 0x25, KEY_8 },
55 { 0x26, KEY_9 },
56 { 0x2a, KEY_NUMERIC_STAR }, /* * key */
57 { 0x1d, KEY_0 },
58 { 0x29, KEY_SUBTITLE }, /* # key */
59 { 0x27, KEY_CLEAR },
60 { 0x34, KEY_SCREEN },
61 { 0x28, KEY_ENTER },
62 { 0x19, KEY_RED },
63 { 0x1a, KEY_GREEN },
64 { 0x1b, KEY_YELLOW },
65 { 0x1c, KEY_BLUE },
66 { 0x18, KEY_TEXT },
67};
68
69static struct rc_map_list videomate_m1f_map = {
70 .map = {
71 .scan = videomate_m1f,
72 .size = ARRAY_SIZE(videomate_m1f),
73 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
74 .name = RC_MAP_VIDEOMATE_M1F,
75 }
76};
77
78static int __init init_rc_map_videomate_m1f(void)
79{
80 return rc_map_register(&videomate_m1f_map);
81}
82
83static void __exit exit_rc_map_videomate_m1f(void)
84{
85 rc_map_unregister(&videomate_m1f_map);
86}
87
88module_init(init_rc_map_videomate_m1f)
89module_exit(exit_rc_map_videomate_m1f)
90
91MODULE_LICENSE("GPL");
92MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>");