diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-01 21:43:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:48 -0400 |
commit | 77b7422d48cda9b8e5dabb7f4bc056861c5ed4fe (patch) | |
tree | aca1f3329b8d836973cc303081e24df66bac1c0d /include/media/keycodes/tevii-nec.h | |
parent | dce4a3e3b228fd31bcfd2d84e673bc08b553e6cc (diff) |
V4L/DVB: ir-common: move IR tables from ir-keymaps.c to a separate file
Instead of having one big file with lots of keytables, create one include
file for each IR keymap.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/keycodes/tevii-nec.h')
-rw-r--r-- | include/media/keycodes/tevii-nec.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/include/media/keycodes/tevii-nec.h b/include/media/keycodes/tevii-nec.h new file mode 100644 index 000000000000..6a8ea03a9be1 --- /dev/null +++ b/include/media/keycodes/tevii-nec.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* tevii-nec.h - Keytable for tevii_nec 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 | #ifdef IR_KEYMAPS | ||
13 | static struct ir_scancode tevii_nec[] = { | ||
14 | { 0x0a, KEY_POWER2}, | ||
15 | { 0x0c, KEY_MUTE}, | ||
16 | { 0x11, KEY_1}, | ||
17 | { 0x12, KEY_2}, | ||
18 | { 0x13, KEY_3}, | ||
19 | { 0x14, KEY_4}, | ||
20 | { 0x15, KEY_5}, | ||
21 | { 0x16, KEY_6}, | ||
22 | { 0x17, KEY_7}, | ||
23 | { 0x18, KEY_8}, | ||
24 | { 0x19, KEY_9}, | ||
25 | { 0x10, KEY_0}, | ||
26 | { 0x1c, KEY_MENU}, | ||
27 | { 0x0f, KEY_VOLUMEDOWN}, | ||
28 | { 0x1a, KEY_LAST}, | ||
29 | { 0x0e, KEY_OPEN}, | ||
30 | { 0x04, KEY_RECORD}, | ||
31 | { 0x09, KEY_VOLUMEUP}, | ||
32 | { 0x08, KEY_CHANNELUP}, | ||
33 | { 0x07, KEY_PVR}, | ||
34 | { 0x0b, KEY_TIME}, | ||
35 | { 0x02, KEY_RIGHT}, | ||
36 | { 0x03, KEY_LEFT}, | ||
37 | { 0x00, KEY_UP}, | ||
38 | { 0x1f, KEY_OK}, | ||
39 | { 0x01, KEY_DOWN}, | ||
40 | { 0x05, KEY_TUNER}, | ||
41 | { 0x06, KEY_CHANNELDOWN}, | ||
42 | { 0x40, KEY_PLAYPAUSE}, | ||
43 | { 0x1e, KEY_REWIND}, | ||
44 | { 0x1b, KEY_FAVORITES}, | ||
45 | { 0x1d, KEY_BACK}, | ||
46 | { 0x4d, KEY_FASTFORWARD}, | ||
47 | { 0x44, KEY_EPG}, | ||
48 | { 0x4c, KEY_INFO}, | ||
49 | { 0x41, KEY_AB}, | ||
50 | { 0x43, KEY_AUDIO}, | ||
51 | { 0x45, KEY_SUBTITLE}, | ||
52 | { 0x4a, KEY_LIST}, | ||
53 | { 0x46, KEY_F1}, | ||
54 | { 0x47, KEY_F2}, | ||
55 | { 0x5e, KEY_F3}, | ||
56 | { 0x5c, KEY_F4}, | ||
57 | { 0x52, KEY_F5}, | ||
58 | { 0x5a, KEY_F6}, | ||
59 | { 0x56, KEY_MODE}, | ||
60 | { 0x58, KEY_SWITCHVIDEOMODE}, | ||
61 | }; | ||
62 | DEFINE_LEGACY_IR_KEYTABLE(tevii_nec); | ||
63 | #else | ||
64 | DECLARE_IR_KEYTABLE(tevii_nec); | ||
65 | #endif | ||