]> bbs.cooldavid.org Git - net-next-2.6.git/blob - drivers/media/IR/keymaps/rc-powercolor-real-angel.c
V4L/DVB: Break Remote Controller keymaps into modules
[net-next-2.6.git] / drivers / media / IR / keymaps / rc-powercolor-real-angel.c
1 /* powercolor-real-angel.h - Keytable for powercolor_real_angel Remote Controller
2  *
3  * keymap imported from ir-keymaps.c
4  *
5  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  */
12
13 #include <media/rc-map.h>
14
15 /*
16  * Remote control for Powercolor Real Angel 330
17  * Daniel Fraga <fragabr@gmail.com>
18  */
19
20 static struct ir_scancode powercolor_real_angel[] = {
21         { 0x38, KEY_SWITCHVIDEOMODE },  /* switch inputs */
22         { 0x0c, KEY_MEDIA },            /* Turn ON/OFF App */
23         { 0x00, KEY_0 },
24         { 0x01, KEY_1 },
25         { 0x02, KEY_2 },
26         { 0x03, KEY_3 },
27         { 0x04, KEY_4 },
28         { 0x05, KEY_5 },
29         { 0x06, KEY_6 },
30         { 0x07, KEY_7 },
31         { 0x08, KEY_8 },
32         { 0x09, KEY_9 },
33         { 0x0a, KEY_DIGITS },           /* single, double, tripple digit */
34         { 0x29, KEY_PREVIOUS },         /* previous channel */
35         { 0x12, KEY_BRIGHTNESSUP },
36         { 0x13, KEY_BRIGHTNESSDOWN },
37         { 0x2b, KEY_MODE },             /* stereo/mono */
38         { 0x2c, KEY_TEXT },             /* teletext */
39         { 0x20, KEY_CHANNELUP },        /* channel up */
40         { 0x21, KEY_CHANNELDOWN },      /* channel down */
41         { 0x10, KEY_VOLUMEUP },         /* volume up */
42         { 0x11, KEY_VOLUMEDOWN },       /* volume down */
43         { 0x0d, KEY_MUTE },
44         { 0x1f, KEY_RECORD },
45         { 0x17, KEY_PLAY },
46         { 0x16, KEY_PAUSE },
47         { 0x0b, KEY_STOP },
48         { 0x27, KEY_FASTFORWARD },
49         { 0x26, KEY_REWIND },
50         { 0x1e, KEY_SEARCH },           /* autoscan */
51         { 0x0e, KEY_CAMERA },           /* snapshot */
52         { 0x2d, KEY_SETUP },
53         { 0x0f, KEY_SCREEN },           /* full screen */
54         { 0x14, KEY_RADIO },            /* FM radio */
55         { 0x25, KEY_POWER },            /* power */
56 };
57
58 static struct rc_keymap powercolor_real_angel_map = {
59         .map = {
60                 .scan    = powercolor_real_angel,
61                 .size    = ARRAY_SIZE(powercolor_real_angel),
62                 .ir_type = IR_TYPE_UNKNOWN,     /* Legacy IR type */
63                 .name    = RC_MAP_POWERCOLOR_REAL_ANGEL,
64         }
65 };
66
67 static int __init init_rc_map_powercolor_real_angel(void)
68 {
69         return ir_register_map(&powercolor_real_angel_map);
70 }
71
72 static void __exit exit_rc_map_powercolor_real_angel(void)
73 {
74         ir_unregister_map(&powercolor_real_angel_map);
75 }
76
77 module_init(init_rc_map_powercolor_real_angel)
78 module_exit(exit_rc_map_powercolor_real_angel)
79
80 MODULE_LICENSE("GPL");
81 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");