Path: blob/master/drivers/media/rc/keymaps/rc-encore-enltv.c
15112 views
/* encore-enltv.h - Keytable for encore_enltv 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/* Encore ENLTV-FM - black plastic, white front cover with white glowing buttons15Juan Pablo Sormani <[email protected]> */1617static struct rc_map_table encore_enltv[] = {1819/* Power button does nothing, neither in Windows app,20although it sends data (used for BIOS wakeup?) */21{ 0x0d, KEY_MUTE },2223{ 0x1e, KEY_TV },24{ 0x00, KEY_VIDEO },25{ 0x01, KEY_AUDIO }, /* music */26{ 0x02, KEY_CAMERA }, /* picture */2728{ 0x1f, KEY_1 },29{ 0x03, KEY_2 },30{ 0x04, KEY_3 },31{ 0x05, KEY_4 },32{ 0x1c, KEY_5 },33{ 0x06, KEY_6 },34{ 0x07, KEY_7 },35{ 0x08, KEY_8 },36{ 0x1d, KEY_9 },37{ 0x0a, KEY_0 },3839{ 0x09, KEY_LIST }, /* -/-- */40{ 0x0b, KEY_LAST }, /* recall */4142{ 0x14, KEY_HOME }, /* win start menu */43{ 0x15, KEY_EXIT }, /* exit */44{ 0x16, KEY_CHANNELUP }, /* UP */45{ 0x12, KEY_CHANNELDOWN }, /* DOWN */46{ 0x0c, KEY_VOLUMEUP }, /* RIGHT */47{ 0x17, KEY_VOLUMEDOWN }, /* LEFT */4849{ 0x18, KEY_ENTER }, /* OK */5051{ 0x0e, KEY_ESC },52{ 0x13, KEY_CYCLEWINDOWS }, /* desktop */53{ 0x11, KEY_TAB },54{ 0x19, KEY_SWITCHVIDEOMODE }, /* switch */5556{ 0x1a, KEY_MENU },57{ 0x1b, KEY_ZOOM }, /* fullscreen */58{ 0x44, KEY_TIME }, /* time shift */59{ 0x40, KEY_MODE }, /* source */6061{ 0x5a, KEY_RECORD },62{ 0x42, KEY_PLAY }, /* play/pause */63{ 0x45, KEY_STOP },64{ 0x43, KEY_CAMERA }, /* camera icon */6566{ 0x48, KEY_REWIND },67{ 0x4a, KEY_FASTFORWARD },68{ 0x49, KEY_PREVIOUS },69{ 0x4b, KEY_NEXT },7071{ 0x4c, KEY_FAVORITES }, /* tv wall */72{ 0x4d, KEY_SOUND }, /* DVD sound */73{ 0x4e, KEY_LANGUAGE }, /* DVD lang */74{ 0x4f, KEY_TEXT }, /* DVD text */7576{ 0x50, KEY_SLEEP }, /* shutdown */77{ 0x51, KEY_MODE }, /* stereo > main */78{ 0x52, KEY_SELECT }, /* stereo > sap */79{ 0x53, KEY_TEXT }, /* teletext */808182{ 0x59, KEY_RED }, /* AP1 */83{ 0x41, KEY_GREEN }, /* AP2 */84{ 0x47, KEY_YELLOW }, /* AP3 */85{ 0x57, KEY_BLUE }, /* AP4 */86};8788static struct rc_map_list encore_enltv_map = {89.map = {90.scan = encore_enltv,91.size = ARRAY_SIZE(encore_enltv),92.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */93.name = RC_MAP_ENCORE_ENLTV,94}95};9697static int __init init_rc_map_encore_enltv(void)98{99return rc_map_register(&encore_enltv_map);100}101102static void __exit exit_rc_map_encore_enltv(void)103{104rc_map_unregister(&encore_enltv_map);105}106107module_init(init_rc_map_encore_enltv)108module_exit(exit_rc_map_encore_enltv)109110MODULE_LICENSE("GPL");111MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");112113114