Commit | Line | Data |
---|---|---|
0963119f | 1 | /* videomate-k100.h - Keytable for videomate_k100 Remote Controller |
b7a0f2e7 RM |
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> | |
7a707b89 | 14 | #include <linux/module.h> |
b7a0f2e7 | 15 | |
0963119f | 16 | static struct rc_map_table videomate_k100[] = { |
b7a0f2e7 RM |
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 }, | |
68 | }; | |
69 | ||
0963119f | 70 | static struct rc_map_list videomate_k100_map = { |
b7a0f2e7 | 71 | .map = { |
0963119f SR |
72 | .scan = videomate_k100, |
73 | .size = ARRAY_SIZE(videomate_k100), | |
b7a0f2e7 | 74 | .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ |
0963119f | 75 | .name = RC_MAP_VIDEOMATE_K100, |
b7a0f2e7 RM |
76 | } |
77 | }; | |
78 | ||
0963119f | 79 | static int __init init_rc_map_videomate_k100(void) |
b7a0f2e7 | 80 | { |
0963119f | 81 | return rc_map_register(&videomate_k100_map); |
b7a0f2e7 RM |
82 | } |
83 | ||
0963119f | 84 | static void __exit exit_rc_map_videomate_k100(void) |
b7a0f2e7 | 85 | { |
0963119f | 86 | rc_map_unregister(&videomate_k100_map); |
b7a0f2e7 RM |
87 | } |
88 | ||
0963119f SR |
89 | module_init(init_rc_map_videomate_k100) |
90 | module_exit(exit_rc_map_videomate_k100) | |
b7a0f2e7 RM |
91 | |
92 | MODULE_LICENSE("GPL"); | |
93 | MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>"); |