1 // SPDX-License-Identifier: GPL-2.0+
2 // powercolor-real-angel.h - Keytable for powercolor_real_angel Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
12 * Remote control for Powercolor Real Angel 330
13 * Daniel Fraga <fragabr@gmail.com>
16 static struct rc_map_table powercolor_real_angel
[] = {
17 { 0x38, KEY_SWITCHVIDEOMODE
}, /* switch inputs */
18 { 0x0c, KEY_MEDIA
}, /* Turn ON/OFF App */
29 { 0x0a, KEY_DIGITS
}, /* single, double, tripple digit */
30 { 0x29, KEY_PREVIOUS
}, /* previous channel */
31 { 0x12, KEY_BRIGHTNESSUP
},
32 { 0x13, KEY_BRIGHTNESSDOWN
},
33 { 0x2b, KEY_MODE
}, /* stereo/mono */
34 { 0x2c, KEY_TEXT
}, /* teletext */
35 { 0x20, KEY_CHANNELUP
}, /* channel up */
36 { 0x21, KEY_CHANNELDOWN
}, /* channel down */
37 { 0x10, KEY_VOLUMEUP
}, /* volume up */
38 { 0x11, KEY_VOLUMEDOWN
}, /* volume down */
44 { 0x27, KEY_FASTFORWARD
},
46 { 0x1e, KEY_SEARCH
}, /* autoscan */
47 { 0x0e, KEY_CAMERA
}, /* snapshot */
49 { 0x0f, KEY_SCREEN
}, /* full screen */
50 { 0x14, KEY_RADIO
}, /* FM radio */
51 { 0x25, KEY_POWER
}, /* power */
54 static struct rc_map_list powercolor_real_angel_map
= {
56 .scan
= powercolor_real_angel
,
57 .size
= ARRAY_SIZE(powercolor_real_angel
),
58 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
59 .name
= RC_MAP_POWERCOLOR_REAL_ANGEL
,
63 static int __init
init_rc_map_powercolor_real_angel(void)
65 return rc_map_register(&powercolor_real_angel_map
);
68 static void __exit
exit_rc_map_powercolor_real_angel(void)
70 rc_map_unregister(&powercolor_real_angel_map
);
73 module_init(init_rc_map_powercolor_real_angel
)
74 module_exit(exit_rc_map_powercolor_real_angel
)
76 MODULE_LICENSE("GPL");
77 MODULE_AUTHOR("Mauro Carvalho Chehab");