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/pinnacle-grey.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/pinnacle-grey.h')
-rw-r--r-- | include/media/keycodes/pinnacle-grey.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/include/media/keycodes/pinnacle-grey.h b/include/media/keycodes/pinnacle-grey.h new file mode 100644 index 000000000000..3fd250483ce4 --- /dev/null +++ b/include/media/keycodes/pinnacle-grey.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* pinnacle-grey.h - Keytable for pinnacle_grey 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 pinnacle_grey[] = { | ||
14 | { 0x3a, KEY_0 }, | ||
15 | { 0x31, KEY_1 }, | ||
16 | { 0x32, KEY_2 }, | ||
17 | { 0x33, KEY_3 }, | ||
18 | { 0x34, KEY_4 }, | ||
19 | { 0x35, KEY_5 }, | ||
20 | { 0x36, KEY_6 }, | ||
21 | { 0x37, KEY_7 }, | ||
22 | { 0x38, KEY_8 }, | ||
23 | { 0x39, KEY_9 }, | ||
24 | |||
25 | { 0x2f, KEY_POWER }, | ||
26 | |||
27 | { 0x2e, KEY_P }, | ||
28 | { 0x1f, KEY_L }, | ||
29 | { 0x2b, KEY_I }, | ||
30 | |||
31 | { 0x2d, KEY_SCREEN }, | ||
32 | { 0x1e, KEY_ZOOM }, | ||
33 | { 0x1b, KEY_VOLUMEUP }, | ||
34 | { 0x0f, KEY_VOLUMEDOWN }, | ||
35 | { 0x17, KEY_CHANNELUP }, | ||
36 | { 0x1c, KEY_CHANNELDOWN }, | ||
37 | { 0x25, KEY_INFO }, | ||
38 | |||
39 | { 0x3c, KEY_MUTE }, | ||
40 | |||
41 | { 0x3d, KEY_LEFT }, | ||
42 | { 0x3b, KEY_RIGHT }, | ||
43 | |||
44 | { 0x3f, KEY_UP }, | ||
45 | { 0x3e, KEY_DOWN }, | ||
46 | { 0x1a, KEY_ENTER }, | ||
47 | |||
48 | { 0x1d, KEY_MENU }, | ||
49 | { 0x19, KEY_AGAIN }, | ||
50 | { 0x16, KEY_PREVIOUSSONG }, | ||
51 | { 0x13, KEY_NEXTSONG }, | ||
52 | { 0x15, KEY_PAUSE }, | ||
53 | { 0x0e, KEY_REWIND }, | ||
54 | { 0x0d, KEY_PLAY }, | ||
55 | { 0x0b, KEY_STOP }, | ||
56 | { 0x07, KEY_FORWARD }, | ||
57 | { 0x27, KEY_RECORD }, | ||
58 | { 0x26, KEY_TUNER }, | ||
59 | { 0x29, KEY_TEXT }, | ||
60 | { 0x2a, KEY_MEDIA }, | ||
61 | { 0x18, KEY_EPG }, | ||
62 | }; | ||
63 | DEFINE_LEGACY_IR_KEYTABLE(pinnacle_grey); | ||
64 | #else | ||
65 | DECLARE_IR_KEYTABLE(pinnacle_grey); | ||
66 | #endif | ||