diff options
Diffstat (limited to 'include/media/keycodes/rc5-tv.h')
-rw-r--r-- | include/media/keycodes/rc5-tv.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/media/keycodes/rc5-tv.h b/include/media/keycodes/rc5-tv.h new file mode 100644 index 000000000000..a429a54e808c --- /dev/null +++ b/include/media/keycodes/rc5-tv.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* rc5-tv.h - Keytable for rc5_tv 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 | /* generic RC5 keytable */ | ||
12 | /* see http://users.pandora.be/nenya/electronics/rc5/codes00.htm */ | ||
13 | /* used by old (black) Hauppauge remotes */ | ||
14 | |||
15 | #ifdef IR_KEYMAPS | ||
16 | static struct ir_scancode rc5_tv[] = { | ||
17 | /* Keys 0 to 9 */ | ||
18 | { 0x00, KEY_0 }, | ||
19 | { 0x01, KEY_1 }, | ||
20 | { 0x02, KEY_2 }, | ||
21 | { 0x03, KEY_3 }, | ||
22 | { 0x04, KEY_4 }, | ||
23 | { 0x05, KEY_5 }, | ||
24 | { 0x06, KEY_6 }, | ||
25 | { 0x07, KEY_7 }, | ||
26 | { 0x08, KEY_8 }, | ||
27 | { 0x09, KEY_9 }, | ||
28 | |||
29 | { 0x0b, KEY_CHANNEL }, /* channel / program (japan: 11) */ | ||
30 | { 0x0c, KEY_POWER }, /* standby */ | ||
31 | { 0x0d, KEY_MUTE }, /* mute / demute */ | ||
32 | { 0x0f, KEY_TV }, /* display */ | ||
33 | { 0x10, KEY_VOLUMEUP }, | ||
34 | { 0x11, KEY_VOLUMEDOWN }, | ||
35 | { 0x12, KEY_BRIGHTNESSUP }, | ||
36 | { 0x13, KEY_BRIGHTNESSDOWN }, | ||
37 | { 0x1e, KEY_SEARCH }, /* search + */ | ||
38 | { 0x20, KEY_CHANNELUP }, /* channel / program + */ | ||
39 | { 0x21, KEY_CHANNELDOWN }, /* channel / program - */ | ||
40 | { 0x22, KEY_CHANNEL }, /* alt / channel */ | ||
41 | { 0x23, KEY_LANGUAGE }, /* 1st / 2nd language */ | ||
42 | { 0x26, KEY_SLEEP }, /* sleeptimer */ | ||
43 | { 0x2e, KEY_MENU }, /* 2nd controls (USA: menu) */ | ||
44 | { 0x30, KEY_PAUSE }, | ||
45 | { 0x32, KEY_REWIND }, | ||
46 | { 0x33, KEY_GOTO }, | ||
47 | { 0x35, KEY_PLAY }, | ||
48 | { 0x36, KEY_STOP }, | ||
49 | { 0x37, KEY_RECORD }, /* recording */ | ||
50 | { 0x3c, KEY_TEXT }, /* teletext submode (Japan: 12) */ | ||
51 | { 0x3d, KEY_SUSPEND }, /* system standby */ | ||
52 | |||
53 | }; | ||
54 | DEFINE_LEGACY_IR_KEYTABLE(rc5_tv); | ||
55 | #else | ||
56 | DECLARE_IR_KEYTABLE(rc5_tv); | ||
57 | #endif | ||