[media] rc-videomate-m1f.c Rename to match remote controler name
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / media / rc / keymaps / rc-videomate-m1f.c
blob23ee05e539498ebd6d87e7fc515f2f75fc109ecf
1 /* videomate-k100.h - Keytable for videomate_k100 Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.com>
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.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 static struct rc_map_table videomate_k100[] = {
17 { 0x01, KEY_POWER },
18 { 0x31, KEY_TUNER },
19 { 0x33, KEY_VIDEO },
20 { 0x2f, KEY_RADIO },
21 { 0x30, KEY_CAMERA },
22 { 0x2d, KEY_NEW }, /* TV record button */
23 { 0x17, KEY_CYCLEWINDOWS },
24 { 0x2c, KEY_ANGLE },
25 { 0x2b, KEY_LANGUAGE },
26 { 0x32, KEY_SEARCH }, /* '...' button */
27 { 0x11, KEY_UP },
28 { 0x13, KEY_LEFT },
29 { 0x15, KEY_OK },
30 { 0x14, KEY_RIGHT },
31 { 0x12, KEY_DOWN },
32 { 0x16, KEY_BACKSPACE },
33 { 0x02, KEY_ZOOM }, /* WIN key */
34 { 0x04, KEY_INFO },
35 { 0x05, KEY_VOLUMEUP },
36 { 0x03, KEY_MUTE },
37 { 0x07, KEY_CHANNELUP },
38 { 0x06, KEY_VOLUMEDOWN },
39 { 0x08, KEY_CHANNELDOWN },
40 { 0x0c, KEY_RECORD },
41 { 0x0e, KEY_STOP },
42 { 0x0a, KEY_BACK },
43 { 0x0b, KEY_PLAY },
44 { 0x09, KEY_FORWARD },
45 { 0x10, KEY_PREVIOUS },
46 { 0x0d, KEY_PAUSE },
47 { 0x0f, KEY_NEXT },
48 { 0x1e, KEY_1 },
49 { 0x1f, KEY_2 },
50 { 0x20, KEY_3 },
51 { 0x21, KEY_4 },
52 { 0x22, KEY_5 },
53 { 0x23, KEY_6 },
54 { 0x24, KEY_7 },
55 { 0x25, KEY_8 },
56 { 0x26, KEY_9 },
57 { 0x2a, KEY_NUMERIC_STAR }, /* * key */
58 { 0x1d, KEY_0 },
59 { 0x29, KEY_SUBTITLE }, /* # key */
60 { 0x27, KEY_CLEAR },
61 { 0x34, KEY_SCREEN },
62 { 0x28, KEY_ENTER },
63 { 0x19, KEY_RED },
64 { 0x1a, KEY_GREEN },
65 { 0x1b, KEY_YELLOW },
66 { 0x1c, KEY_BLUE },
67 { 0x18, KEY_TEXT },
70 static struct rc_map_list videomate_k100_map = {
71 .map = {
72 .scan = videomate_k100,
73 .size = ARRAY_SIZE(videomate_k100),
74 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
75 .name = RC_MAP_VIDEOMATE_K100,
79 static int __init init_rc_map_videomate_k100(void)
81 return rc_map_register(&videomate_k100_map);
84 static void __exit exit_rc_map_videomate_k100(void)
86 rc_map_unregister(&videomate_k100_map);
89 module_init(init_rc_map_videomate_k100)
90 module_exit(exit_rc_map_videomate_k100)
92 MODULE_LICENSE("GPL");
93 MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>");