V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / hauppauge-new.h
1 /* hauppauge-new.h - Keytable for hauppauge_new 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 /* Hauppauge: the newer, gray remotes (seems there are multiple
12  * slightly different versions), shipped with cx88+ivtv cards.
13  * almost rc5 coding, but some non-standard keys */
14
15 #ifdef IR_KEYMAPS
16 static struct ir_scancode hauppauge_new[] = {
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         { 0x0a, KEY_TEXT },             /* keypad asterisk as well */
30         { 0x0b, KEY_RED },              /* red button */
31         { 0x0c, KEY_RADIO },
32         { 0x0d, KEY_MENU },
33         { 0x0e, KEY_SUBTITLE },         /* also the # key */
34         { 0x0f, KEY_MUTE },
35         { 0x10, KEY_VOLUMEUP },
36         { 0x11, KEY_VOLUMEDOWN },
37         { 0x12, KEY_PREVIOUS },         /* previous channel */
38         { 0x14, KEY_UP },
39         { 0x15, KEY_DOWN },
40         { 0x16, KEY_LEFT },
41         { 0x17, KEY_RIGHT },
42         { 0x18, KEY_VIDEO },            /* Videos */
43         { 0x19, KEY_AUDIO },            /* Music */
44         /* 0x1a: Pictures - presume this means
45            "Multimedia Home Platform" -
46            no "PICTURES" key in input.h
47          */
48         { 0x1a, KEY_MHP },
49
50         { 0x1b, KEY_EPG },              /* Guide */
51         { 0x1c, KEY_TV },
52         { 0x1e, KEY_NEXTSONG },         /* skip >| */
53         { 0x1f, KEY_EXIT },             /* back/exit */
54         { 0x20, KEY_CHANNELUP },        /* channel / program + */
55         { 0x21, KEY_CHANNELDOWN },      /* channel / program - */
56         { 0x22, KEY_CHANNEL },          /* source (old black remote) */
57         { 0x24, KEY_PREVIOUSSONG },     /* replay |< */
58         { 0x25, KEY_ENTER },            /* OK */
59         { 0x26, KEY_SLEEP },            /* minimize (old black remote) */
60         { 0x29, KEY_BLUE },             /* blue key */
61         { 0x2e, KEY_GREEN },            /* green button */
62         { 0x30, KEY_PAUSE },            /* pause */
63         { 0x32, KEY_REWIND },           /* backward << */
64         { 0x34, KEY_FASTFORWARD },      /* forward >> */
65         { 0x35, KEY_PLAY },
66         { 0x36, KEY_STOP },
67         { 0x37, KEY_RECORD },           /* recording */
68         { 0x38, KEY_YELLOW },           /* yellow key */
69         { 0x3b, KEY_SELECT },           /* top right button */
70         { 0x3c, KEY_ZOOM },             /* full */
71         { 0x3d, KEY_POWER },            /* system power (green button) */
72 };
73 DEFINE_LEGACY_IR_KEYTABLE(hauppauge_new);
74 #else
75 DECLARE_IR_KEYTABLE(hauppauge_new);
76 #endif