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