blob: e83b1a1939bfe49c05908ebef4c5b3d2548154ef [file] [log] [blame]
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -03001/* avermedia-m733a-rm-k6.h - Keytable for avermedia_m733a_rm_k6 Remote Controller
2 *
3 * Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
4 *
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.
9 */
10
11#include <media/rc-map.h>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040012#include <linux/module.h>
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030013
14/*
15 * Avermedia M733A with IR model RM-K6
16 * This is the stock remote controller used with Positivo machines with M733A
17 * Herton Ronaldo Krzesinski <herton@mandriva.com.br>
18 */
19
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030020static struct rc_map_table avermedia_m733a_rm_k6[] = {
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030021 { 0x0401, KEY_POWER2 },
22 { 0x0406, KEY_MUTE },
23 { 0x0408, KEY_MODE }, /* TV/FM */
24
25 { 0x0409, KEY_1 },
26 { 0x040a, KEY_2 },
27 { 0x040b, KEY_3 },
28 { 0x040c, KEY_4 },
29 { 0x040d, KEY_5 },
30 { 0x040e, KEY_6 },
31 { 0x040f, KEY_7 },
32 { 0x0410, KEY_8 },
33 { 0x0411, KEY_9 },
34 { 0x044c, KEY_DOT }, /* '.' */
35 { 0x0412, KEY_0 },
36 { 0x0407, KEY_REFRESH }, /* Refresh/Reload */
37
38 { 0x0413, KEY_AUDIO },
39 { 0x0440, KEY_SCREEN }, /* Full Screen toggle */
40 { 0x0441, KEY_HOME },
41 { 0x0442, KEY_BACK },
42 { 0x0447, KEY_UP },
43 { 0x0448, KEY_DOWN },
44 { 0x0449, KEY_LEFT },
45 { 0x044a, KEY_RIGHT },
46 { 0x044b, KEY_OK },
47 { 0x0404, KEY_VOLUMEUP },
48 { 0x0405, KEY_VOLUMEDOWN },
49 { 0x0402, KEY_CHANNELUP },
50 { 0x0403, KEY_CHANNELDOWN },
51
52 { 0x0443, KEY_RED },
53 { 0x0444, KEY_GREEN },
54 { 0x0445, KEY_YELLOW },
55 { 0x0446, KEY_BLUE },
56
57 { 0x0414, KEY_TEXT },
58 { 0x0415, KEY_EPG },
59 { 0x041a, KEY_TV2 }, /* PIP */
Mauro Carvalho Chehab444cc202011-01-24 12:18:36 -030060 { 0x041b, KEY_CAMERA }, /* Snapshot */
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030061
62 { 0x0417, KEY_RECORD },
63 { 0x0416, KEY_PLAYPAUSE },
64 { 0x0418, KEY_STOP },
65 { 0x0419, KEY_PAUSE },
66
67 { 0x041f, KEY_PREVIOUS },
68 { 0x041c, KEY_REWIND },
69 { 0x041d, KEY_FORWARD },
70 { 0x041e, KEY_NEXT },
71};
72
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030073static struct rc_map_list avermedia_m733a_rm_k6_map = {
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030074 .map = {
75 .scan = avermedia_m733a_rm_k6,
76 .size = ARRAY_SIZE(avermedia_m733a_rm_k6),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030077 .rc_type = RC_TYPE_NEC,
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030078 .name = RC_MAP_AVERMEDIA_M733A_RM_K6,
79 }
80};
81
82static int __init init_rc_map_avermedia_m733a_rm_k6(void)
83{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030084 return rc_map_register(&avermedia_m733a_rm_k6_map);
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030085}
86
87static void __exit exit_rc_map_avermedia_m733a_rm_k6(void)
88{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030089 rc_map_unregister(&avermedia_m733a_rm_k6_map);
Herton Ronaldo Krzesinski9e1d9e72010-05-08 02:23:37 -030090}
91
92module_init(init_rc_map_avermedia_m733a_rm_k6)
93module_exit(exit_rc_map_avermedia_m733a_rm_k6)
94
95MODULE_LICENSE("GPL");
96MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");