1 /* encore-enltv2.h - Keytable for encore_enltv2 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 ENLTV2-FM  - silver plastic - "Wand Media" written at the botton
16     Mauro Carvalho Chehab <mchehab@infradead.org> */
17 
18 static struct rc_map_table encore_enltv2[] = {
19 	{ 0x4c, KEY_POWER2 },
20 	{ 0x4a, KEY_TUNER },
21 	{ 0x40, KEY_1 },
22 	{ 0x60, KEY_2 },
23 	{ 0x50, KEY_3 },
24 	{ 0x70, KEY_4 },
25 	{ 0x48, KEY_5 },
26 	{ 0x68, KEY_6 },
27 	{ 0x58, KEY_7 },
28 	{ 0x78, KEY_8 },
29 	{ 0x44, KEY_9 },
30 	{ 0x54, KEY_0 },
31 
32 	{ 0x64, KEY_LAST },		/* +100 */
33 	{ 0x4e, KEY_AGAIN },		/* Recall */
34 
35 	{ 0x6c, KEY_SWITCHVIDEOMODE },	/* Video Source */
36 	{ 0x5e, KEY_MENU },
37 	{ 0x56, KEY_SCREEN },
38 	{ 0x7a, KEY_SETUP },
39 
40 	{ 0x46, KEY_MUTE },
41 	{ 0x5c, KEY_MODE },		/* Stereo */
42 	{ 0x74, KEY_INFO },
43 	{ 0x7c, KEY_CLEAR },
44 
45 	{ 0x55, KEY_UP },
46 	{ 0x49, KEY_DOWN },
47 	{ 0x7e, KEY_LEFT },
48 	{ 0x59, KEY_RIGHT },
49 	{ 0x6a, KEY_ENTER },
50 
51 	{ 0x42, KEY_VOLUMEUP },
52 	{ 0x62, KEY_VOLUMEDOWN },
53 	{ 0x52, KEY_CHANNELUP },
54 	{ 0x72, KEY_CHANNELDOWN },
55 
56 	{ 0x41, KEY_RECORD },
57 	{ 0x51, KEY_CAMERA },		/* Snapshot */
58 	{ 0x75, KEY_TIME },		/* Timeshift */
59 	{ 0x71, KEY_TV2 },		/* PIP */
60 
61 	{ 0x45, KEY_REWIND },
62 	{ 0x6f, KEY_PAUSE },
63 	{ 0x7d, KEY_FORWARD },
64 	{ 0x79, KEY_STOP },
65 };
66 
67 static struct rc_map_list encore_enltv2_map = {
68 	.map = {
69 		.scan    = encore_enltv2,
70 		.size    = ARRAY_SIZE(encore_enltv2),
71 		.rc_type = RC_TYPE_UNKNOWN,	/* Legacy IR type */
72 		.name    = RC_MAP_ENCORE_ENLTV2,
73 	}
74 };
75 
76 static int __init init_rc_map_encore_enltv2(void)
77 {
78 	return rc_map_register(&encore_enltv2_map);
79 }
80 
81 static void __exit exit_rc_map_encore_enltv2(void)
82 {
83 	rc_map_unregister(&encore_enltv2_map);
84 }
85 
86 module_init(init_rc_map_encore_enltv2)
87 module_exit(exit_rc_map_encore_enltv2)
88 
89 MODULE_LICENSE("GPL");
90 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
91