Path: blob/master/drivers/media/rc/keymaps/rc-encore-enltv2.c
15112 views
/* encore-enltv2.h - Keytable for encore_enltv2 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 ENLTV2-FM - silver plastic - "Wand Media" written at the botton15Mauro Carvalho Chehab <[email protected]> */1617static struct rc_map_table encore_enltv2[] = {18{ 0x4c, KEY_POWER2 },19{ 0x4a, KEY_TUNER },20{ 0x40, KEY_1 },21{ 0x60, KEY_2 },22{ 0x50, KEY_3 },23{ 0x70, KEY_4 },24{ 0x48, KEY_5 },25{ 0x68, KEY_6 },26{ 0x58, KEY_7 },27{ 0x78, KEY_8 },28{ 0x44, KEY_9 },29{ 0x54, KEY_0 },3031{ 0x64, KEY_LAST }, /* +100 */32{ 0x4e, KEY_AGAIN }, /* Recall */3334{ 0x6c, KEY_VIDEO }, /* Video Source */35{ 0x5e, KEY_MENU },36{ 0x56, KEY_SCREEN },37{ 0x7a, KEY_SETUP },3839{ 0x46, KEY_MUTE },40{ 0x5c, KEY_MODE }, /* Stereo */41{ 0x74, KEY_INFO },42{ 0x7c, KEY_CLEAR },4344{ 0x55, KEY_UP },45{ 0x49, KEY_DOWN },46{ 0x7e, KEY_LEFT },47{ 0x59, KEY_RIGHT },48{ 0x6a, KEY_ENTER },4950{ 0x42, KEY_VOLUMEUP },51{ 0x62, KEY_VOLUMEDOWN },52{ 0x52, KEY_CHANNELUP },53{ 0x72, KEY_CHANNELDOWN },5455{ 0x41, KEY_RECORD },56{ 0x51, KEY_CAMERA }, /* Snapshot */57{ 0x75, KEY_TIME }, /* Timeshift */58{ 0x71, KEY_TV2 }, /* PIP */5960{ 0x45, KEY_REWIND },61{ 0x6f, KEY_PAUSE },62{ 0x7d, KEY_FORWARD },63{ 0x79, KEY_STOP },64};6566static struct rc_map_list encore_enltv2_map = {67.map = {68.scan = encore_enltv2,69.size = ARRAY_SIZE(encore_enltv2),70.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */71.name = RC_MAP_ENCORE_ENLTV2,72}73};7475static int __init init_rc_map_encore_enltv2(void)76{77return rc_map_register(&encore_enltv2_map);78}7980static void __exit exit_rc_map_encore_enltv2(void)81{82rc_map_unregister(&encore_enltv2_map);83}8485module_init(init_rc_map_encore_enltv2)86module_exit(exit_rc_map_encore_enltv2)8788MODULE_LICENSE("GPL");89MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");909192