diff options
Diffstat (limited to 'include/media/keycodes/behold.h')
-rw-r--r-- | include/media/keycodes/behold.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/include/media/keycodes/behold.h b/include/media/keycodes/behold.h new file mode 100644 index 000000000000..57a2dae49b6c --- /dev/null +++ b/include/media/keycodes/behold.h | |||
@@ -0,0 +1,117 @@ | |||
1 | /* behold.h - Keytable for behold Remote Controller | ||
2 | * | ||
3 | * Imported from ir-keymaps.c | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | */ | ||
10 | |||
11 | /* | ||
12 | * Igor Kuznetsov <igk72@ya.ru> | ||
13 | * Andrey J. Melnikov <temnota@kmv.ru> | ||
14 | * | ||
15 | * Keytable is used by BeholdTV 60x series, M6 series at | ||
16 | * least, and probably other cards too. | ||
17 | * The "ascii-art picture" below (in comments, first row | ||
18 | * is the keycode in hex, and subsequent row(s) shows | ||
19 | * the button labels (several variants when appropriate) | ||
20 | * helps to descide which keycodes to assign to the buttons. | ||
21 | */ | ||
22 | |||
23 | #ifdef IR_KEYMAPS | ||
24 | static struct ir_scancode behold[] = { | ||
25 | |||
26 | /* 0x1c 0x12 * | ||
27 | * TV/FM POWER * | ||
28 | * */ | ||
29 | { 0x1c, KEY_TUNER }, /* XXX KEY_TV / KEY_RADIO */ | ||
30 | { 0x12, KEY_POWER }, | ||
31 | |||
32 | /* 0x01 0x02 0x03 * | ||
33 | * 1 2 3 * | ||
34 | * * | ||
35 | * 0x04 0x05 0x06 * | ||
36 | * 4 5 6 * | ||
37 | * * | ||
38 | * 0x07 0x08 0x09 * | ||
39 | * 7 8 9 * | ||
40 | * */ | ||
41 | { 0x01, KEY_1 }, | ||
42 | { 0x02, KEY_2 }, | ||
43 | { 0x03, KEY_3 }, | ||
44 | { 0x04, KEY_4 }, | ||
45 | { 0x05, KEY_5 }, | ||
46 | { 0x06, KEY_6 }, | ||
47 | { 0x07, KEY_7 }, | ||
48 | { 0x08, KEY_8 }, | ||
49 | { 0x09, KEY_9 }, | ||
50 | |||
51 | /* 0x0a 0x00 0x17 * | ||
52 | * RECALL 0 MODE * | ||
53 | * */ | ||
54 | { 0x0a, KEY_AGAIN }, | ||
55 | { 0x00, KEY_0 }, | ||
56 | { 0x17, KEY_MODE }, | ||
57 | |||
58 | /* 0x14 0x10 * | ||
59 | * ASPECT FULLSCREEN * | ||
60 | * */ | ||
61 | { 0x14, KEY_SCREEN }, | ||
62 | { 0x10, KEY_ZOOM }, | ||
63 | |||
64 | /* 0x0b * | ||
65 | * Up * | ||
66 | * * | ||
67 | * 0x18 0x16 0x0c * | ||
68 | * Left Ok Right * | ||
69 | * * | ||
70 | * 0x015 * | ||
71 | * Down * | ||
72 | * */ | ||
73 | { 0x0b, KEY_CHANNELUP }, | ||
74 | { 0x18, KEY_VOLUMEDOWN }, | ||
75 | { 0x16, KEY_OK }, /* XXX KEY_ENTER */ | ||
76 | { 0x0c, KEY_VOLUMEUP }, | ||
77 | { 0x15, KEY_CHANNELDOWN }, | ||
78 | |||
79 | /* 0x11 0x0d * | ||
80 | * MUTE INFO * | ||
81 | * */ | ||
82 | { 0x11, KEY_MUTE }, | ||
83 | { 0x0d, KEY_INFO }, | ||
84 | |||
85 | /* 0x0f 0x1b 0x1a * | ||
86 | * RECORD PLAY/PAUSE STOP * | ||
87 | * * | ||
88 | * 0x0e 0x1f 0x1e * | ||
89 | *TELETEXT AUDIO SOURCE * | ||
90 | * RED YELLOW * | ||
91 | * */ | ||
92 | { 0x0f, KEY_RECORD }, | ||
93 | { 0x1b, KEY_PLAYPAUSE }, | ||
94 | { 0x1a, KEY_STOP }, | ||
95 | { 0x0e, KEY_TEXT }, | ||
96 | { 0x1f, KEY_RED }, /*XXX KEY_AUDIO */ | ||
97 | { 0x1e, KEY_YELLOW }, /*XXX KEY_SOURCE */ | ||
98 | |||
99 | /* 0x1d 0x13 0x19 * | ||
100 | * SLEEP PREVIEW DVB * | ||
101 | * GREEN BLUE * | ||
102 | * */ | ||
103 | { 0x1d, KEY_SLEEP }, | ||
104 | { 0x13, KEY_GREEN }, | ||
105 | { 0x19, KEY_BLUE }, /* XXX KEY_SAT */ | ||
106 | |||
107 | /* 0x58 0x5c * | ||
108 | * FREEZE SNAPSHOT * | ||
109 | * */ | ||
110 | { 0x58, KEY_SLOW }, | ||
111 | { 0x5c, KEY_CAMERA }, | ||
112 | |||
113 | }; | ||
114 | DEFINE_LEGACY_IR_KEYTABLE(behold); | ||
115 | #else | ||
116 | DECLARE_IR_KEYTABLE(behold); | ||
117 | #endif | ||