1 /* avermedia-m733a-rm-k6.h - Keytable for avermedia_m733a_rm_k6 Remote Controller
3 * Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #include <media/rc-map.h>
14 * Avermedia M733A with IR model RM-K6
15 * This is the stock remote controller used with Positivo machines with M733A
16 * Herton Ronaldo Krzesinski <herton@mandriva.com.br>
19 static struct rc_map_table avermedia_m733a_rm_k6
[] = {
20 { 0x0401, KEY_POWER2
},
22 { 0x0408, KEY_MODE
}, /* TV/FM */
33 { 0x044c, KEY_DOT
}, /* '.' */
35 { 0x0407, KEY_REFRESH
}, /* Refresh/Reload */
37 { 0x0413, KEY_AUDIO
},
38 { 0x0440, KEY_SCREEN
}, /* Full Screen toggle */
44 { 0x044a, KEY_RIGHT
},
46 { 0x0404, KEY_VOLUMEUP
},
47 { 0x0405, KEY_VOLUMEDOWN
},
48 { 0x0402, KEY_CHANNELUP
},
49 { 0x0403, KEY_CHANNELDOWN
},
52 { 0x0444, KEY_GREEN
},
53 { 0x0445, KEY_YELLOW
},
58 { 0x041a, KEY_TV2
}, /* PIP */
59 { 0x041b, KEY_CAMERA
}, /* Snapshot */
61 { 0x0417, KEY_RECORD
},
62 { 0x0416, KEY_PLAYPAUSE
},
64 { 0x0419, KEY_PAUSE
},
66 { 0x041f, KEY_PREVIOUS
},
67 { 0x041c, KEY_REWIND
},
68 { 0x041d, KEY_FORWARD
},
72 static struct rc_map_list avermedia_m733a_rm_k6_map
= {
74 .scan
= avermedia_m733a_rm_k6
,
75 .size
= ARRAY_SIZE(avermedia_m733a_rm_k6
),
76 .rc_type
= RC_TYPE_NEC
,
77 .name
= RC_MAP_AVERMEDIA_M733A_RM_K6
,
81 static int __init
init_rc_map_avermedia_m733a_rm_k6(void)
83 return rc_map_register(&avermedia_m733a_rm_k6_map
);
86 static void __exit
exit_rc_map_avermedia_m733a_rm_k6(void)
88 rc_map_unregister(&avermedia_m733a_rm_k6_map
);
91 module_init(init_rc_map_avermedia_m733a_rm_k6
)
92 module_exit(exit_rc_map_avermedia_m733a_rm_k6
)
94 MODULE_LICENSE("GPL");
95 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");