1 // SPDX-License-Identifier: GPL-2.0+ 2 // encore-enltv.h - Keytable for encore_enltv Remote Controller 3 // 4 // keymap imported from ir-keymaps.c 5 // 6 // Copyright (c) 2010 by Mauro Carvalho Chehab 7 8 #include <media/rc-map.h> 9 #include <linux/module.h> 10 11 /* Encore ENLTV-FM - black plastic, white front cover with white glowing buttons 12 Juan Pablo Sormani <sorman@gmail.com> */ 13 14 static struct rc_map_table encore_enltv[] = { 15 16 /* Power button does nothing, neither in Windows app, 17 although it sends data (used for BIOS wakeup?) */ 18 { 0x0d, KEY_MUTE }, 19 20 { 0x1e, KEY_TV }, 21 { 0x00, KEY_VIDEO }, 22 { 0x01, KEY_AUDIO }, /* music */ 23 { 0x02, KEY_CAMERA }, /* picture */ 24 25 { 0x1f, KEY_NUMERIC_1 }, 26 { 0x03, KEY_NUMERIC_2 }, 27 { 0x04, KEY_NUMERIC_3 }, 28 { 0x05, KEY_NUMERIC_4 }, 29 { 0x1c, KEY_NUMERIC_5 }, 30 { 0x06, KEY_NUMERIC_6 }, 31 { 0x07, KEY_NUMERIC_7 }, 32 { 0x08, KEY_NUMERIC_8 }, 33 { 0x1d, KEY_NUMERIC_9 }, 34 { 0x0a, KEY_NUMERIC_0 }, 35 36 { 0x09, KEY_LIST }, /* -/-- */ 37 { 0x0b, KEY_LAST }, /* recall */ 38 39 { 0x14, KEY_HOME }, /* win start menu */ 40 { 0x15, KEY_EXIT }, /* exit */ 41 { 0x16, KEY_CHANNELUP }, /* UP */ 42 { 0x12, KEY_CHANNELDOWN }, /* DOWN */ 43 { 0x0c, KEY_VOLUMEUP }, /* RIGHT */ 44 { 0x17, KEY_VOLUMEDOWN }, /* LEFT */ 45 46 { 0x18, KEY_ENTER }, /* OK */ 47 48 { 0x0e, KEY_ESC }, 49 { 0x13, KEY_CYCLEWINDOWS }, /* desktop */ 50 { 0x11, KEY_TAB }, 51 { 0x19, KEY_SWITCHVIDEOMODE }, /* switch */ 52 53 { 0x1a, KEY_MENU }, 54 { 0x1b, KEY_ZOOM }, /* fullscreen */ 55 { 0x44, KEY_TIME }, /* time shift */ 56 { 0x40, KEY_MODE }, /* source */ 57 58 { 0x5a, KEY_RECORD }, 59 { 0x42, KEY_PLAY }, /* play/pause */ 60 { 0x45, KEY_STOP }, 61 { 0x43, KEY_CAMERA }, /* camera icon */ 62 63 { 0x48, KEY_REWIND }, 64 { 0x4a, KEY_FASTFORWARD }, 65 { 0x49, KEY_PREVIOUS }, 66 { 0x4b, KEY_NEXT }, 67 68 { 0x4c, KEY_FAVORITES }, /* tv wall */ 69 { 0x4d, KEY_SOUND }, /* DVD sound */ 70 { 0x4e, KEY_LANGUAGE }, /* DVD lang */ 71 { 0x4f, KEY_TEXT }, /* DVD text */ 72 73 { 0x50, KEY_SLEEP }, /* shutdown */ 74 { 0x51, KEY_MODE }, /* stereo > main */ 75 { 0x52, KEY_SELECT }, /* stereo > sap */ 76 { 0x53, KEY_TEXT }, /* teletext */ 77 78 79 { 0x59, KEY_RED }, /* AP1 */ 80 { 0x41, KEY_GREEN }, /* AP2 */ 81 { 0x47, KEY_YELLOW }, /* AP3 */ 82 { 0x57, KEY_BLUE }, /* AP4 */ 83 }; 84 85 static struct rc_map_list encore_enltv_map = { 86 .map = { 87 .scan = encore_enltv, 88 .size = ARRAY_SIZE(encore_enltv), 89 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 90 .name = RC_MAP_ENCORE_ENLTV, 91 } 92 }; 93 94 static int __init init_rc_map_encore_enltv(void) 95 { 96 return rc_map_register(&encore_enltv_map); 97 } 98 99 static void __exit exit_rc_map_encore_enltv(void) 100 { 101 rc_map_unregister(&encore_enltv_map); 102 } 103 104 module_init(init_rc_map_encore_enltv) 105 module_exit(exit_rc_map_encore_enltv) 106 107 MODULE_LICENSE("GPL"); 108 MODULE_AUTHOR("Mauro Carvalho Chehab"); 109 MODULE_DESCRIPTION("Encore ENLTV-FM remote controller keytable"); 110