1 /* videomate-k100.h - Keytable for videomate_k100 Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.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 static struct rc_map_table videomate_k100
[] = {
22 { 0x2d, KEY_NEW
}, /* TV record button */
23 { 0x17, KEY_CYCLEWINDOWS
},
25 { 0x2b, KEY_LANGUAGE
},
26 { 0x32, KEY_SEARCH
}, /* '...' button */
32 { 0x16, KEY_BACKSPACE
},
33 { 0x02, KEY_ZOOM
}, /* WIN key */
35 { 0x05, KEY_VOLUMEUP
},
37 { 0x07, KEY_CHANNELUP
},
38 { 0x06, KEY_VOLUMEDOWN
},
39 { 0x08, KEY_CHANNELDOWN
},
44 { 0x09, KEY_FORWARD
},
45 { 0x10, KEY_PREVIOUS
},
57 { 0x2a, KEY_NUMERIC_STAR
}, /* * key */
59 { 0x29, KEY_SUBTITLE
}, /* # key */
70 static struct rc_map_list videomate_k100_map
= {
72 .scan
= videomate_k100
,
73 .size
= ARRAY_SIZE(videomate_k100
),
74 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
75 .name
= RC_MAP_VIDEOMATE_K100
,
79 static int __init
init_rc_map_videomate_k100(void)
81 return rc_map_register(&videomate_k100_map
);
84 static void __exit
exit_rc_map_videomate_k100(void)
86 rc_map_unregister(&videomate_k100_map
);
89 module_init(init_rc_map_videomate_k100
)
90 module_exit(exit_rc_map_videomate_k100
)
92 MODULE_LICENSE("GPL");
93 MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>");