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