blob: ef146520931c40fe19da588d41be3d6a3f00b990 [file] [log] [blame]
Anssi Hannula999d6bc2011-08-06 18:18:12 -03001/*
2 * SnapStream Firefly X10 RF remote keytable
3 *
4 * Copyright (C) 2011 Anssi Hannula <anssi.hannula@?ki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
Mauro Carvalho Chehab547d42e2011-09-23 15:33:27 -030021#include <linux/module.h>
Anssi Hannula999d6bc2011-08-06 18:18:12 -030022#include <media/rc-map.h>
23
24static struct rc_map_table snapstream_firefly[] = {
25 { 0xf12c, KEY_ZOOM }, /* Maximize */
26 { 0xc702, KEY_CLOSE },
27
28 { 0xd20d, KEY_1 },
29 { 0xd30e, KEY_2 },
30 { 0xd40f, KEY_3 },
31 { 0xd510, KEY_4 },
32 { 0xd611, KEY_5 },
33 { 0xd712, KEY_6 },
34 { 0xd813, KEY_7 },
35 { 0xd914, KEY_8 },
36 { 0xda15, KEY_9 },
37 { 0xdc17, KEY_0 },
38 { 0xdb16, KEY_BACK },
39 { 0xdd18, KEY_KPENTER }, /* ent */
40
41 { 0xce09, KEY_VOLUMEUP },
42 { 0xcd08, KEY_VOLUMEDOWN },
43 { 0xcf0a, KEY_MUTE },
44 { 0xd00b, KEY_CHANNELUP },
45 { 0xd10c, KEY_CHANNELDOWN },
46 { 0xc500, KEY_VENDOR }, /* firefly */
47
48 { 0xf32e, KEY_INFO },
49 { 0xf42f, KEY_OPTION },
50
51 { 0xe21d, KEY_LEFT },
52 { 0xe41f, KEY_RIGHT },
53 { 0xe722, KEY_DOWN },
54 { 0xdf1a, KEY_UP },
55 { 0xe31e, KEY_OK },
56
57 { 0xe11c, KEY_MENU },
58 { 0xe520, KEY_EXIT },
59
60 { 0xec27, KEY_RECORD },
61 { 0xea25, KEY_PLAY },
62 { 0xed28, KEY_STOP },
63 { 0xe924, KEY_REWIND },
64 { 0xeb26, KEY_FORWARD },
65 { 0xee29, KEY_PAUSE },
66 { 0xf02b, KEY_PREVIOUS },
67 { 0xef2a, KEY_NEXT },
68
69 { 0xcb06, KEY_AUDIO }, /* Music */
70 { 0xca05, KEY_IMAGES }, /* Photos */
71 { 0xc904, KEY_DVD },
72 { 0xc803, KEY_TV },
73 { 0xcc07, KEY_VIDEO },
74
75 { 0xc601, KEY_HELP },
76 { 0xf22d, KEY_MODE }, /* Mouse */
77
78 { 0xde19, KEY_A },
79 { 0xe01b, KEY_B },
80 { 0xe621, KEY_C },
81 { 0xe823, KEY_D },
82};
83
84static struct rc_map_list snapstream_firefly_map = {
85 .map = {
86 .scan = snapstream_firefly,
87 .size = ARRAY_SIZE(snapstream_firefly),
88 .rc_type = RC_TYPE_OTHER,
89 .name = RC_MAP_SNAPSTREAM_FIREFLY,
90 }
91};
92
93static int __init init_rc_map_snapstream_firefly(void)
94{
95 return rc_map_register(&snapstream_firefly_map);
96}
97
98static void __exit exit_rc_map_snapstream_firefly(void)
99{
100 rc_map_unregister(&snapstream_firefly_map);
101}
102
103module_init(init_rc_map_snapstream_firefly)
104module_exit(exit_rc_map_snapstream_firefly)
105
106MODULE_LICENSE("GPL");
107MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>");