V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / encore-enltv.h
1 /* encore-enltv.h - Keytable for encore_enltv 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 /* Encore ENLTV-FM  - black plastic, white front cover with white glowing buttons
12     Juan Pablo Sormani <sorman@gmail.com> */
13
14 #ifdef IR_KEYMAPS
15 static struct ir_scancode encore_enltv[] = {
16
17         /* Power button does nothing, neither in Windows app,
18          although it sends data (used for BIOS wakeup?) */
19         { 0x0d, KEY_MUTE },
20
21         { 0x1e, KEY_TV },
22         { 0x00, KEY_VIDEO },
23         { 0x01, KEY_AUDIO },            /* music */
24         { 0x02, KEY_MHP },              /* picture */
25
26         { 0x1f, KEY_1 },
27         { 0x03, KEY_2 },
28         { 0x04, KEY_3 },
29         { 0x05, KEY_4 },
30         { 0x1c, KEY_5 },
31         { 0x06, KEY_6 },
32         { 0x07, KEY_7 },
33         { 0x08, KEY_8 },
34         { 0x1d, KEY_9 },
35         { 0x0a, KEY_0 },
36
37         { 0x09, KEY_LIST },             /* -/-- */
38         { 0x0b, KEY_LAST },             /* recall */
39
40         { 0x14, KEY_HOME },             /* win start menu */
41         { 0x15, KEY_EXIT },             /* exit */
42         { 0x16, KEY_CHANNELUP },        /* UP */
43         { 0x12, KEY_CHANNELDOWN },      /* DOWN */
44         { 0x0c, KEY_VOLUMEUP },         /* RIGHT */
45         { 0x17, KEY_VOLUMEDOWN },       /* LEFT */
46
47         { 0x18, KEY_ENTER },            /* OK */
48
49         { 0x0e, KEY_ESC },
50         { 0x13, KEY_CYCLEWINDOWS },     /* desktop */
51         { 0x11, KEY_TAB },
52         { 0x19, KEY_SWITCHVIDEOMODE },  /* switch */
53
54         { 0x1a, KEY_MENU },
55         { 0x1b, KEY_ZOOM },             /* fullscreen */
56         { 0x44, KEY_TIME },             /* time shift */
57         { 0x40, KEY_MODE },             /* source */
58
59         { 0x5a, KEY_RECORD },
60         { 0x42, KEY_PLAY },             /* play/pause */
61         { 0x45, KEY_STOP },
62         { 0x43, KEY_CAMERA },           /* camera icon */
63
64         { 0x48, KEY_REWIND },
65         { 0x4a, KEY_FASTFORWARD },
66         { 0x49, KEY_PREVIOUS },
67         { 0x4b, KEY_NEXT },
68
69         { 0x4c, KEY_FAVORITES },        /* tv wall */
70         { 0x4d, KEY_SOUND },            /* DVD sound */
71         { 0x4e, KEY_LANGUAGE },         /* DVD lang */
72         { 0x4f, KEY_TEXT },             /* DVD text */
73
74         { 0x50, KEY_SLEEP },            /* shutdown */
75         { 0x51, KEY_MODE },             /* stereo > main */
76         { 0x52, KEY_SELECT },           /* stereo > sap */
77         { 0x53, KEY_PROG1 },            /* teletext */
78
79
80         { 0x59, KEY_RED },              /* AP1 */
81         { 0x41, KEY_GREEN },            /* AP2 */
82         { 0x47, KEY_YELLOW },           /* AP3 */
83         { 0x57, KEY_BLUE },             /* AP4 */
84 };
85 DEFINE_LEGACY_IR_KEYTABLE(encore_enltv);
86 #else
87 DECLARE_IR_KEYTABLE(encore_enltv);
88 #endif