1
/* avermedia-m135a.c - Keytable for Avermedia M135A Remote Controllers
3
* Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
4
* Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
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.
12
#include <media/rc-map.h>
13
#include <linux/module.h>
16
* Avermedia M135A with RM-JX and RM-K6 remote controls
18
* On Avermedia M135A with IR model RM-JX, the same codes exist on both
19
* Positivo (BR) and original IR, initial version and remote control codes
20
* added by Mauro Carvalho Chehab <mchehab@infradead.org>
22
* Positivo also ships Avermedia M135A with model RM-K6, extra control
23
* codes added by Herton Ronaldo Krzesinski <herton@mandriva.com.br>
26
static struct rc_map_table avermedia_m135a[] = {
28
{ 0x0200, KEY_POWER2 },
29
{ 0x022e, KEY_DOT }, /* '.' */
30
{ 0x0201, KEY_MODE }, /* TV/FM or SOURCE */
43
{ 0x0213, KEY_RIGHT }, /* -> or L */
44
{ 0x0212, KEY_LEFT }, /* <- or R */
46
{ 0x0217, KEY_SLEEP }, /* Capturar Imagem or Snapshot */
47
{ 0x0210, KEY_SHUFFLE }, /* Amostra or 16 chan prev */
49
{ 0x0303, KEY_CHANNELUP },
50
{ 0x0302, KEY_CHANNELDOWN },
51
{ 0x021f, KEY_VOLUMEUP },
52
{ 0x021e, KEY_VOLUMEDOWN },
53
{ 0x020c, KEY_ENTER }, /* Full Screen */
56
{ 0x0208, KEY_AUDIO },
58
{ 0x0203, KEY_TEXT }, /* Teletext */
60
{ 0x022b, KEY_TV2 }, /* TV2 or PIP */
63
{ 0x021c, KEY_YELLOW },
64
{ 0x0301, KEY_GREEN },
67
{ 0x021a, KEY_PLAYPAUSE },
68
{ 0x0219, KEY_RECORD },
73
{ 0x0401, KEY_POWER2 },
75
{ 0x0408, KEY_MODE }, /* TV/FM */
86
{ 0x044c, KEY_DOT }, /* '.' */
88
{ 0x0407, KEY_REFRESH }, /* Refresh/Reload */
90
{ 0x0413, KEY_AUDIO },
91
{ 0x0440, KEY_SCREEN }, /* Full Screen toggle */
97
{ 0x044a, KEY_RIGHT },
99
{ 0x0404, KEY_VOLUMEUP },
100
{ 0x0405, KEY_VOLUMEDOWN },
101
{ 0x0402, KEY_CHANNELUP },
102
{ 0x0403, KEY_CHANNELDOWN },
105
{ 0x0444, KEY_GREEN },
106
{ 0x0445, KEY_YELLOW },
107
{ 0x0446, KEY_BLUE },
109
{ 0x0414, KEY_TEXT },
111
{ 0x041a, KEY_TV2 }, /* PIP */
112
{ 0x041b, KEY_CAMERA }, /* Snapshot */
114
{ 0x0417, KEY_RECORD },
115
{ 0x0416, KEY_PLAYPAUSE },
116
{ 0x0418, KEY_STOP },
117
{ 0x0419, KEY_PAUSE },
119
{ 0x041f, KEY_PREVIOUS },
120
{ 0x041c, KEY_REWIND },
121
{ 0x041d, KEY_FORWARD },
122
{ 0x041e, KEY_NEXT },
125
static struct rc_map_list avermedia_m135a_map = {
127
.scan = avermedia_m135a,
128
.size = ARRAY_SIZE(avermedia_m135a),
129
.rc_type = RC_TYPE_NEC,
130
.name = RC_MAP_AVERMEDIA_M135A,
134
static int __init init_rc_map_avermedia_m135a(void)
136
return rc_map_register(&avermedia_m135a_map);
139
static void __exit exit_rc_map_avermedia_m135a(void)
141
rc_map_unregister(&avermedia_m135a_map);
144
module_init(init_rc_map_avermedia_m135a)
145
module_exit(exit_rc_map_avermedia_m135a)
147
MODULE_LICENSE("GPL");
148
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");