Path: blob/master/drivers/media/rc/keymaps/rc-asus-pc39.c
15157 views
/* asus-pc39.h - Keytable for asus_pc39 Remote Controller1*2* keymap imported from ir-keymaps.c3*4* Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*/1112#include <media/rc-map.h>1314/*15* Marc Fargas <[email protected]>16* this is the remote control that comes with the asus p713117* which has a label saying is "Model PC-39"18*/1920static struct rc_map_table asus_pc39[] = {21/* Keys 0 to 9 */22{ 0x082a, KEY_0 },23{ 0x0816, KEY_1 },24{ 0x0812, KEY_2 },25{ 0x0814, KEY_3 },26{ 0x0836, KEY_4 },27{ 0x0832, KEY_5 },28{ 0x0834, KEY_6 },29{ 0x080e, KEY_7 },30{ 0x080a, KEY_8 },31{ 0x080c, KEY_9 },3233{ 0x0801, KEY_RADIO }, /* radio */34{ 0x083c, KEY_MENU }, /* dvd/menu */35{ 0x0815, KEY_VOLUMEUP },36{ 0x0826, KEY_VOLUMEDOWN },37{ 0x0808, KEY_UP },38{ 0x0804, KEY_DOWN },39{ 0x0818, KEY_LEFT },40{ 0x0810, KEY_RIGHT },41{ 0x081a, KEY_VIDEO }, /* video */42{ 0x0806, KEY_AUDIO }, /* music */4344{ 0x081e, KEY_TV }, /* tv */45{ 0x0822, KEY_EXIT }, /* back */46{ 0x0835, KEY_CHANNELUP }, /* channel / program + */47{ 0x0824, KEY_CHANNELDOWN }, /* channel / program - */48{ 0x0825, KEY_ENTER }, /* enter */4950{ 0x0839, KEY_PAUSE }, /* play/pause */51{ 0x0821, KEY_PREVIOUS }, /* rew */52{ 0x0819, KEY_NEXT }, /* forward */53{ 0x0831, KEY_REWIND }, /* backward << */54{ 0x0805, KEY_FASTFORWARD }, /* forward >> */55{ 0x0809, KEY_STOP },56{ 0x0811, KEY_RECORD }, /* recording */57{ 0x0829, KEY_POWER }, /* the button that reads "close" */5859{ 0x082e, KEY_ZOOM }, /* full screen */60{ 0x082c, KEY_MACRO }, /* recall */61{ 0x081c, KEY_HOME }, /* home */62{ 0x083a, KEY_PVR }, /* picture */63{ 0x0802, KEY_MUTE }, /* mute */64{ 0x083e, KEY_DVD }, /* dvd */65};6667static struct rc_map_list asus_pc39_map = {68.map = {69.scan = asus_pc39,70.size = ARRAY_SIZE(asus_pc39),71.rc_type = RC_TYPE_RC5,72.name = RC_MAP_ASUS_PC39,73}74};7576static int __init init_rc_map_asus_pc39(void)77{78return rc_map_register(&asus_pc39_map);79}8081static void __exit exit_rc_map_asus_pc39(void)82{83rc_map_unregister(&asus_pc39_map);84}8586module_init(init_rc_map_asus_pc39)87module_exit(exit_rc_map_asus_pc39)8889MODULE_LICENSE("GPL");90MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");919293