[media, edac] Change my email address
[deliverable/linux.git] / drivers / media / rc / keymaps / rc-powercolor-real-angel.c
CommitLineData
6686fa69
MCC
1/* powercolor-real-angel.h - Keytable for powercolor_real_angel Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
37e59f87 5 * Copyright (c) 2010 by Mauro Carvalho Chehab
6686fa69
MCC
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>
7a707b89 14#include <linux/module.h>
6686fa69
MCC
15
16/*
17 * Remote control for Powercolor Real Angel 330
18 * Daniel Fraga <fragabr@gmail.com>
19 */
20
2f4f58d6 21static struct rc_map_table powercolor_real_angel[] = {
6686fa69
MCC
22 { 0x38, KEY_SWITCHVIDEOMODE }, /* switch inputs */
23 { 0x0c, KEY_MEDIA }, /* Turn ON/OFF App */
24 { 0x00, KEY_0 },
25 { 0x01, KEY_1 },
26 { 0x02, KEY_2 },
27 { 0x03, KEY_3 },
28 { 0x04, KEY_4 },
29 { 0x05, KEY_5 },
30 { 0x06, KEY_6 },
31 { 0x07, KEY_7 },
32 { 0x08, KEY_8 },
33 { 0x09, KEY_9 },
34 { 0x0a, KEY_DIGITS }, /* single, double, tripple digit */
35 { 0x29, KEY_PREVIOUS }, /* previous channel */
36 { 0x12, KEY_BRIGHTNESSUP },
37 { 0x13, KEY_BRIGHTNESSDOWN },
38 { 0x2b, KEY_MODE }, /* stereo/mono */
39 { 0x2c, KEY_TEXT }, /* teletext */
40 { 0x20, KEY_CHANNELUP }, /* channel up */
41 { 0x21, KEY_CHANNELDOWN }, /* channel down */
42 { 0x10, KEY_VOLUMEUP }, /* volume up */
43 { 0x11, KEY_VOLUMEDOWN }, /* volume down */
44 { 0x0d, KEY_MUTE },
45 { 0x1f, KEY_RECORD },
46 { 0x17, KEY_PLAY },
47 { 0x16, KEY_PAUSE },
48 { 0x0b, KEY_STOP },
49 { 0x27, KEY_FASTFORWARD },
50 { 0x26, KEY_REWIND },
51 { 0x1e, KEY_SEARCH }, /* autoscan */
52 { 0x0e, KEY_CAMERA }, /* snapshot */
53 { 0x2d, KEY_SETUP },
54 { 0x0f, KEY_SCREEN }, /* full screen */
55 { 0x14, KEY_RADIO }, /* FM radio */
56 { 0x25, KEY_POWER }, /* power */
57};
58
d100e659 59static struct rc_map_list powercolor_real_angel_map = {
6686fa69
MCC
60 .map = {
61 .scan = powercolor_real_angel,
62 .size = ARRAY_SIZE(powercolor_real_angel),
52b66144 63 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
6686fa69
MCC
64 .name = RC_MAP_POWERCOLOR_REAL_ANGEL,
65 }
66};
67
68static int __init init_rc_map_powercolor_real_angel(void)
69{
d100e659 70 return rc_map_register(&powercolor_real_angel_map);
6686fa69
MCC
71}
72
73static void __exit exit_rc_map_powercolor_real_angel(void)
74{
d100e659 75 rc_map_unregister(&powercolor_real_angel_map);
6686fa69
MCC
76}
77
78module_init(init_rc_map_powercolor_real_angel)
79module_exit(exit_rc_map_powercolor_real_angel)
80
81MODULE_LICENSE("GPL");
37e59f87 82MODULE_AUTHOR("Mauro Carvalho Chehab");
This page took 0.277264 seconds and 5 git commands to generate.