1 /* encore-enltv.h - Keytable for encore_enltv Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 /* Encore ENLTV-FM - black plastic, white front cover with white glowing buttons
17 Juan Pablo Sormani <sorman@gmail.com> */
19 static struct rc_map_table encore_enltv
[] = {
21 /* Power button does nothing, neither in Windows app,
22 although it sends data (used for BIOS wakeup?) */
27 { 0x01, KEY_AUDIO
}, /* music */
28 { 0x02, KEY_CAMERA
}, /* picture */
41 { 0x09, KEY_LIST
}, /* -/-- */
42 { 0x0b, KEY_LAST
}, /* recall */
44 { 0x14, KEY_HOME
}, /* win start menu */
45 { 0x15, KEY_EXIT
}, /* exit */
46 { 0x16, KEY_CHANNELUP
}, /* UP */
47 { 0x12, KEY_CHANNELDOWN
}, /* DOWN */
48 { 0x0c, KEY_VOLUMEUP
}, /* RIGHT */
49 { 0x17, KEY_VOLUMEDOWN
}, /* LEFT */
51 { 0x18, KEY_ENTER
}, /* OK */
54 { 0x13, KEY_CYCLEWINDOWS
}, /* desktop */
56 { 0x19, KEY_SWITCHVIDEOMODE
}, /* switch */
59 { 0x1b, KEY_ZOOM
}, /* fullscreen */
60 { 0x44, KEY_TIME
}, /* time shift */
61 { 0x40, KEY_MODE
}, /* source */
64 { 0x42, KEY_PLAY
}, /* play/pause */
66 { 0x43, KEY_CAMERA
}, /* camera icon */
69 { 0x4a, KEY_FASTFORWARD
},
70 { 0x49, KEY_PREVIOUS
},
73 { 0x4c, KEY_FAVORITES
}, /* tv wall */
74 { 0x4d, KEY_SOUND
}, /* DVD sound */
75 { 0x4e, KEY_LANGUAGE
}, /* DVD lang */
76 { 0x4f, KEY_TEXT
}, /* DVD text */
78 { 0x50, KEY_SLEEP
}, /* shutdown */
79 { 0x51, KEY_MODE
}, /* stereo > main */
80 { 0x52, KEY_SELECT
}, /* stereo > sap */
81 { 0x53, KEY_TEXT
}, /* teletext */
84 { 0x59, KEY_RED
}, /* AP1 */
85 { 0x41, KEY_GREEN
}, /* AP2 */
86 { 0x47, KEY_YELLOW
}, /* AP3 */
87 { 0x57, KEY_BLUE
}, /* AP4 */
90 static struct rc_map_list encore_enltv_map
= {
93 .size
= ARRAY_SIZE(encore_enltv
),
94 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
95 .name
= RC_MAP_ENCORE_ENLTV
,
99 static int __init
init_rc_map_encore_enltv(void)
101 return rc_map_register(&encore_enltv_map
);
104 static void __exit
exit_rc_map_encore_enltv(void)
106 rc_map_unregister(&encore_enltv_map
);
109 module_init(init_rc_map_encore_enltv
)
110 module_exit(exit_rc_map_encore_enltv
)
112 MODULE_LICENSE("GPL");
113 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");