2 * SnapStream Firefly X10 RF remote keytable
4 * Copyright (C) 2011 Anssi Hannula <anssi.hannula@?ki.fi>
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.
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.
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.
21 #include <linux/module.h>
22 #include <media/rc-map.h>
24 static struct rc_map_table snapstream_firefly
[] = {
25 { 0x2c, KEY_ZOOM
}, /* Maximize */
39 { 0x18, KEY_KPENTER
}, /* ent */
41 { 0x09, KEY_VOLUMEUP
},
42 { 0x08, KEY_VOLUMEDOWN
},
44 { 0x0b, KEY_CHANNELUP
},
45 { 0x0c, KEY_CHANNELDOWN
},
46 { 0x00, KEY_VENDOR
}, /* firefly */
64 { 0x26, KEY_FORWARD
},
66 { 0x2b, KEY_PREVIOUS
},
69 { 0x06, KEY_AUDIO
}, /* Music */
70 { 0x05, KEY_IMAGES
}, /* Photos */
76 { 0x2d, KEY_MODE
}, /* Mouse */
84 static struct rc_map_list snapstream_firefly_map
= {
86 .scan
= snapstream_firefly
,
87 .size
= ARRAY_SIZE(snapstream_firefly
),
88 .rc_type
= RC_TYPE_OTHER
,
89 .name
= RC_MAP_SNAPSTREAM_FIREFLY
,
93 static int __init
init_rc_map_snapstream_firefly(void)
95 return rc_map_register(&snapstream_firefly_map
);
98 static void __exit
exit_rc_map_snapstream_firefly(void)
100 rc_map_unregister(&snapstream_firefly_map
);
103 module_init(init_rc_map_snapstream_firefly
)
104 module_exit(exit_rc_map_snapstream_firefly
)
106 MODULE_LICENSE("GPL");
107 MODULE_AUTHOR("Anssi Hannula <anssi.hannula@iki.fi>");