V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / tbs-nec.h
1 /* tbs-nec.h - Keytable for tbs_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 tbs_nec[] = {
14         { 0x04, KEY_POWER2},    /*power*/
15         { 0x14, KEY_MUTE},      /*mute*/
16         { 0x07, KEY_1},
17         { 0x06, KEY_2},
18         { 0x05, KEY_3},
19         { 0x0b, KEY_4},
20         { 0x0a, KEY_5},
21         { 0x09, KEY_6},
22         { 0x0f, KEY_7},
23         { 0x0e, KEY_8},
24         { 0x0d, KEY_9},
25         { 0x12, KEY_0},
26         { 0x16, KEY_CHANNELUP}, /*ch+*/
27         { 0x11, KEY_CHANNELDOWN},/*ch-*/
28         { 0x13, KEY_VOLUMEUP},  /*vol+*/
29         { 0x0c, KEY_VOLUMEDOWN},/*vol-*/
30         { 0x03, KEY_RECORD},    /*rec*/
31         { 0x18, KEY_PAUSE},     /*pause*/
32         { 0x19, KEY_OK},        /*ok*/
33         { 0x1a, KEY_CAMERA},    /* snapshot */
34         { 0x01, KEY_UP},
35         { 0x10, KEY_LEFT},
36         { 0x02, KEY_RIGHT},
37         { 0x08, KEY_DOWN},
38         { 0x15, KEY_FAVORITES},
39         { 0x17, KEY_SUBTITLE},
40         { 0x1d, KEY_ZOOM},
41         { 0x1f, KEY_EXIT},
42         { 0x1e, KEY_MENU},
43         { 0x1c, KEY_EPG},
44         { 0x00, KEY_PREVIOUS},
45         { 0x1b, KEY_MODE},
46 };
47 DEFINE_LEGACY_IR_KEYTABLE(tbs_nec);
48 #else
49 DECLARE_IR_KEYTABLE(tbs_nec);
50 #endif