1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // asus-pc39.h - Keytable for asus_pc39 Remote Controller
3688c73c6SMauro Carvalho Chehab //
4688c73c6SMauro Carvalho Chehab // keymap imported from ir-keymaps.c
5688c73c6SMauro Carvalho Chehab //
6688c73c6SMauro Carvalho Chehab // Copyright (c) 2010 by Mauro Carvalho Chehab
732cf86f6SMauro Carvalho Chehab
832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
97a707b89SPaul Gortmaker #include <linux/module.h>
1032cf86f6SMauro Carvalho Chehab
1132cf86f6SMauro Carvalho Chehab /*
1232cf86f6SMauro Carvalho Chehab * Marc Fargas <telenieko@telenieko.com>
1332cf86f6SMauro Carvalho Chehab * this is the remote control that comes with the asus p7131
1432cf86f6SMauro Carvalho Chehab * which has a label saying is "Model PC-39"
1532cf86f6SMauro Carvalho Chehab */
1632cf86f6SMauro Carvalho Chehab
172f4f58d6SMauro Carvalho Chehab static struct rc_map_table asus_pc39[] = {
1832cf86f6SMauro Carvalho Chehab /* Keys 0 to 9 */
19*1910ea42SBastien Nocera { 0x082a, KEY_NUMERIC_0 },
20*1910ea42SBastien Nocera { 0x0816, KEY_NUMERIC_1 },
21*1910ea42SBastien Nocera { 0x0812, KEY_NUMERIC_2 },
22*1910ea42SBastien Nocera { 0x0814, KEY_NUMERIC_3 },
23*1910ea42SBastien Nocera { 0x0836, KEY_NUMERIC_4 },
24*1910ea42SBastien Nocera { 0x0832, KEY_NUMERIC_5 },
25*1910ea42SBastien Nocera { 0x0834, KEY_NUMERIC_6 },
26*1910ea42SBastien Nocera { 0x080e, KEY_NUMERIC_7 },
27*1910ea42SBastien Nocera { 0x080a, KEY_NUMERIC_8 },
28*1910ea42SBastien Nocera { 0x080c, KEY_NUMERIC_9 },
2932cf86f6SMauro Carvalho Chehab
3032cf86f6SMauro Carvalho Chehab { 0x0801, KEY_RADIO }, /* radio */
3132cf86f6SMauro Carvalho Chehab { 0x083c, KEY_MENU }, /* dvd/menu */
3232cf86f6SMauro Carvalho Chehab { 0x0815, KEY_VOLUMEUP },
3332cf86f6SMauro Carvalho Chehab { 0x0826, KEY_VOLUMEDOWN },
3432cf86f6SMauro Carvalho Chehab { 0x0808, KEY_UP },
3532cf86f6SMauro Carvalho Chehab { 0x0804, KEY_DOWN },
3632cf86f6SMauro Carvalho Chehab { 0x0818, KEY_LEFT },
3732cf86f6SMauro Carvalho Chehab { 0x0810, KEY_RIGHT },
3832cf86f6SMauro Carvalho Chehab { 0x081a, KEY_VIDEO }, /* video */
3932cf86f6SMauro Carvalho Chehab { 0x0806, KEY_AUDIO }, /* music */
4032cf86f6SMauro Carvalho Chehab
4132cf86f6SMauro Carvalho Chehab { 0x081e, KEY_TV }, /* tv */
4232cf86f6SMauro Carvalho Chehab { 0x0822, KEY_EXIT }, /* back */
4332cf86f6SMauro Carvalho Chehab { 0x0835, KEY_CHANNELUP }, /* channel / program + */
4432cf86f6SMauro Carvalho Chehab { 0x0824, KEY_CHANNELDOWN }, /* channel / program - */
4532cf86f6SMauro Carvalho Chehab { 0x0825, KEY_ENTER }, /* enter */
4632cf86f6SMauro Carvalho Chehab
4732cf86f6SMauro Carvalho Chehab { 0x0839, KEY_PAUSE }, /* play/pause */
4832cf86f6SMauro Carvalho Chehab { 0x0821, KEY_PREVIOUS }, /* rew */
4932cf86f6SMauro Carvalho Chehab { 0x0819, KEY_NEXT }, /* forward */
5032cf86f6SMauro Carvalho Chehab { 0x0831, KEY_REWIND }, /* backward << */
5132cf86f6SMauro Carvalho Chehab { 0x0805, KEY_FASTFORWARD }, /* forward >> */
5232cf86f6SMauro Carvalho Chehab { 0x0809, KEY_STOP },
5332cf86f6SMauro Carvalho Chehab { 0x0811, KEY_RECORD }, /* recording */
5432cf86f6SMauro Carvalho Chehab { 0x0829, KEY_POWER }, /* the button that reads "close" */
5532cf86f6SMauro Carvalho Chehab
5632cf86f6SMauro Carvalho Chehab { 0x082e, KEY_ZOOM }, /* full screen */
5732cf86f6SMauro Carvalho Chehab { 0x082c, KEY_MACRO }, /* recall */
5832cf86f6SMauro Carvalho Chehab { 0x081c, KEY_HOME }, /* home */
5932cf86f6SMauro Carvalho Chehab { 0x083a, KEY_PVR }, /* picture */
6032cf86f6SMauro Carvalho Chehab { 0x0802, KEY_MUTE }, /* mute */
6132cf86f6SMauro Carvalho Chehab { 0x083e, KEY_DVD }, /* dvd */
6232cf86f6SMauro Carvalho Chehab };
6332cf86f6SMauro Carvalho Chehab
64d100e659SMauro Carvalho Chehab static struct rc_map_list asus_pc39_map = {
6532cf86f6SMauro Carvalho Chehab .map = {
6632cf86f6SMauro Carvalho Chehab .scan = asus_pc39,
6732cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(asus_pc39),
686d741bfeSSean Young .rc_proto = RC_PROTO_RC5,
6932cf86f6SMauro Carvalho Chehab .name = RC_MAP_ASUS_PC39,
7032cf86f6SMauro Carvalho Chehab }
7132cf86f6SMauro Carvalho Chehab };
7232cf86f6SMauro Carvalho Chehab
init_rc_map_asus_pc39(void)7332cf86f6SMauro Carvalho Chehab static int __init init_rc_map_asus_pc39(void)
7432cf86f6SMauro Carvalho Chehab {
75d100e659SMauro Carvalho Chehab return rc_map_register(&asus_pc39_map);
7632cf86f6SMauro Carvalho Chehab }
7732cf86f6SMauro Carvalho Chehab
exit_rc_map_asus_pc39(void)7832cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_asus_pc39(void)
7932cf86f6SMauro Carvalho Chehab {
80d100e659SMauro Carvalho Chehab rc_map_unregister(&asus_pc39_map);
8132cf86f6SMauro Carvalho Chehab }
8232cf86f6SMauro Carvalho Chehab
8332cf86f6SMauro Carvalho Chehab module_init(init_rc_map_asus_pc39)
8432cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_asus_pc39)
8532cf86f6SMauro Carvalho Chehab
8632cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
8737e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
88