1 /* keytable for Terratec Cinergy S2 HD Remote Controller
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
9 #include <media/rc-map.h>
10 #include <linux/module.h>
12 static struct rc_map_table terratec_cinergy_s2_hd
[] = {
13 { 0x03, KEY_NEXT
}, /* >| */
15 { 0x0b, KEY_PREVIOUS
}, /* |< */
16 { 0x10, KEY_FASTFORWARD
}, /* >> */
17 { 0x11, KEY_REWIND
}, /* << */
18 { 0x12, KEY_ESC
}, /* Back */
22 { 0x16, KEY_MEDIA
}, /* Video-Menu */
28 { 0x1c, KEY_SUBTITLE
},
29 { 0x1d, KEY_MENU
}, /* DVD-Menu */
32 { 0x20, KEY_CHANNELDOWN
},
33 { 0x21, KEY_VOLUMEDOWN
},
35 { 0x23, KEY_VOLUMEUP
},
36 { 0x24, KEY_CHANNELUP
},
48 { 0x32, KEY_VIDEO
}, /* A<=>B */
50 { 0x34, KEY_VCR
}, /* AV */
64 static struct rc_map_list terratec_cinergy_s2_hd_map
= {
66 .scan
= terratec_cinergy_s2_hd
,
67 .size
= ARRAY_SIZE(terratec_cinergy_s2_hd
),
68 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
69 .name
= RC_MAP_TERRATEC_CINERGY_S2_HD
,
73 static int __init
init_rc_map_terratec_cinergy_s2_hd(void)
75 return rc_map_register(&terratec_cinergy_s2_hd_map
);
78 static void __exit
exit_rc_map_terratec_cinergy_s2_hd(void)
80 rc_map_unregister(&terratec_cinergy_s2_hd_map
);
83 module_init(init_rc_map_terratec_cinergy_s2_hd
);
84 module_exit(exit_rc_map_terratec_cinergy_s2_hd
);
86 MODULE_LICENSE("GPL");