V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / norwood.h
1 /* norwood.h - Keytable for norwood 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 /* Norwood Micro (non-Pro) TV Tuner
12    By Peter Naulls <peter@chocky.org>
13    Key comments are the functions given in the manual */
14
15 #ifdef IR_KEYMAPS
16 static struct ir_scancode norwood[] = {
17         /* Keys 0 to 9 */
18         { 0x20, KEY_0 },
19         { 0x21, KEY_1 },
20         { 0x22, KEY_2 },
21         { 0x23, KEY_3 },
22         { 0x24, KEY_4 },
23         { 0x25, KEY_5 },
24         { 0x26, KEY_6 },
25         { 0x27, KEY_7 },
26         { 0x28, KEY_8 },
27         { 0x29, KEY_9 },
28
29         { 0x78, KEY_TUNER },            /* Video Source        */
30         { 0x2c, KEY_EXIT },             /* Open/Close software */
31         { 0x2a, KEY_SELECT },           /* 2 Digit Select      */
32         { 0x69, KEY_AGAIN },            /* Recall              */
33
34         { 0x32, KEY_BRIGHTNESSUP },     /* Brightness increase */
35         { 0x33, KEY_BRIGHTNESSDOWN },   /* Brightness decrease */
36         { 0x6b, KEY_KPPLUS },           /* (not named >>>>>)   */
37         { 0x6c, KEY_KPMINUS },          /* (not named <<<<<)   */
38
39         { 0x2d, KEY_MUTE },             /* Mute                */
40         { 0x30, KEY_VOLUMEUP },         /* Volume up           */
41         { 0x31, KEY_VOLUMEDOWN },       /* Volume down         */
42         { 0x60, KEY_CHANNELUP },        /* Channel up          */
43         { 0x61, KEY_CHANNELDOWN },      /* Channel down        */
44
45         { 0x3f, KEY_RECORD },           /* Record              */
46         { 0x37, KEY_PLAY },             /* Play                */
47         { 0x36, KEY_PAUSE },            /* Pause               */
48         { 0x2b, KEY_STOP },             /* Stop                */
49         { 0x67, KEY_FASTFORWARD },      /* Foward              */
50         { 0x66, KEY_REWIND },           /* Rewind              */
51         { 0x3e, KEY_SEARCH },           /* Auto Scan           */
52         { 0x2e, KEY_CAMERA },           /* Capture Video       */
53         { 0x6d, KEY_MENU },             /* Show/Hide Control   */
54         { 0x2f, KEY_ZOOM },             /* Full Screen         */
55         { 0x34, KEY_RADIO },            /* FM                  */
56         { 0x65, KEY_POWER },            /* Computer power      */
57 };
58 DEFINE_LEGACY_IR_KEYTABLE(norwood);
59 #else
60 DECLARE_IR_KEYTABLE(norwood);
61 #endif