V4L/DVB: ir-core: Make use of the new IR keymap modules
[safe/jmp/linux-2.6] / include / media / keycodes / behold-columbus.h
1 /* behold-columbus.h - Keytable for behold_columbus 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 /* Beholder Intl. Ltd. 2008
12  * Dmitry Belimov d.belimov@google.com
13  * Keytable is used by BeholdTV Columbus
14  * The "ascii-art picture" below (in comments, first row
15  * is the keycode in hex, and subsequent row(s) shows
16  * the button labels (several variants when appropriate)
17  * helps to descide which keycodes to assign to the buttons.
18  */
19
20 #ifdef IR_KEYMAPS
21 static struct ir_scancode behold_columbus[] = {
22
23         /*  0x13   0x11   0x1C   0x12  *
24          *  Mute  Source  TV/FM  Power *
25          *                             */
26
27         { 0x13, KEY_MUTE },
28         { 0x11, KEY_PROPS },
29         { 0x1C, KEY_TUNER },    /* KEY_TV/KEY_RADIO     */
30         { 0x12, KEY_POWER },
31
32         /*  0x01    0x02    0x03  0x0D    *
33          *   1       2       3   Stereo   *
34          *                                *
35          *  0x04    0x05    0x06  0x19    *
36          *   4       5       6   Snapshot *
37          *                                *
38          *  0x07    0x08    0x09  0x10    *
39          *   7       8       9    Zoom    *
40          *                                */
41         { 0x01, KEY_1 },
42         { 0x02, KEY_2 },
43         { 0x03, KEY_3 },
44         { 0x0D, KEY_SETUP },      /* Setup key */
45         { 0x04, KEY_4 },
46         { 0x05, KEY_5 },
47         { 0x06, KEY_6 },
48         { 0x19, KEY_CAMERA },   /* Snapshot key */
49         { 0x07, KEY_7 },
50         { 0x08, KEY_8 },
51         { 0x09, KEY_9 },
52         { 0x10, KEY_ZOOM },
53
54         /*  0x0A    0x00    0x0B       0x0C   *
55          * RECALL    0    ChannelUp  VolumeUp *
56          *                                    */
57         { 0x0A, KEY_AGAIN },
58         { 0x00, KEY_0 },
59         { 0x0B, KEY_CHANNELUP },
60         { 0x0C, KEY_VOLUMEUP },
61
62         /*   0x1B      0x1D      0x15        0x18     *
63          * Timeshift  Record  ChannelDown  VolumeDown *
64          *                                            */
65
66         { 0x1B, KEY_TIME },
67         { 0x1D, KEY_RECORD },
68         { 0x15, KEY_CHANNELDOWN },
69         { 0x18, KEY_VOLUMEDOWN },
70
71         /*   0x0E   0x1E     0x0F     0x1A  *
72          *   Stop   Pause  Previouse  Next  *
73          *                                  */
74
75         { 0x0E, KEY_STOP },
76         { 0x1E, KEY_PAUSE },
77         { 0x0F, KEY_PREVIOUS },
78         { 0x1A, KEY_NEXT },
79
80 };
81 DEFINE_LEGACY_IR_KEYTABLE(behold_columbus);
82 #else
83 DECLARE_IR_KEYTABLE(behold_columbus);
84 #endif