diff options
author | Oldřich Jedlička <oldium.pro@seznam.cz> | 2009-02-12 01:43:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:49 -0400 |
commit | cb3bf504f7c875070d56e84ce1e28aff8c3b6790 (patch) | |
tree | a128df79e322523966aea8eefcc8e7620219aae3 /drivers/media/common/ir-keymaps.c | |
parent | 995a65285bde47bbb2a0c3dadc0b8822d47d78f4 (diff) |
V4L/DVB (10632): Added support for AVerMedia Cardbus Hybrid remote control
Added support for I2C device at address 0x40 and subaddress 0x0d/0x0b
that provides remote control key reading support for AVerMedia Cardbus
Hybrid card, possibly for other AVerMedia Cardbus cards.
The I2C address 0x40 doesn't like the SAA7134's 0xfd quirk, so it was
disabled.
[mchehab@redhat.com: CodingStyle fixes]
Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/ir-keymaps.c')
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index d7b205472e1c..97e78f71c60d 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -153,6 +153,65 @@ IR_KEYTAB_TYPE ir_codes_avermedia_m135a[IR_KEYTAB_SIZE] = { | |||
153 | }; | 153 | }; |
154 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_m135a); | 154 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_m135a); |
155 | 155 | ||
156 | /* Oldrich Jedlicka <oldium.pro@seznam.cz> */ | ||
157 | IR_KEYTAB_TYPE ir_codes_avermedia_cardbus[IR_KEYTAB_SIZE] = { | ||
158 | [0x00] = KEY_POWER, | ||
159 | [0x01] = KEY_TUNER, /* TV/FM */ | ||
160 | [0x03] = KEY_TEXT, /* Teletext */ | ||
161 | [0x04] = KEY_EPG, | ||
162 | [0x05] = KEY_1, | ||
163 | [0x06] = KEY_2, | ||
164 | [0x07] = KEY_3, | ||
165 | [0x08] = KEY_AUDIO, | ||
166 | [0x09] = KEY_4, | ||
167 | [0x0a] = KEY_5, | ||
168 | [0x0b] = KEY_6, | ||
169 | [0x0c] = KEY_ZOOM, /* Full screen */ | ||
170 | [0x0d] = KEY_7, | ||
171 | [0x0e] = KEY_8, | ||
172 | [0x0f] = KEY_9, | ||
173 | [0x10] = KEY_PAGEUP, /* 16-CH PREV */ | ||
174 | [0x11] = KEY_0, | ||
175 | [0x12] = KEY_INFO, | ||
176 | [0x13] = KEY_AGAIN, /* CH RTN - channel return */ | ||
177 | [0x14] = KEY_MUTE, | ||
178 | [0x15] = KEY_EDIT, /* Autoscan */ | ||
179 | [0x17] = KEY_SAVE, /* Screenshot */ | ||
180 | [0x18] = KEY_PLAYPAUSE, | ||
181 | [0x19] = KEY_RECORD, | ||
182 | [0x1a] = KEY_PLAY, | ||
183 | [0x1b] = KEY_STOP, | ||
184 | [0x1c] = KEY_FASTFORWARD, | ||
185 | [0x1d] = KEY_REWIND, | ||
186 | [0x1e] = KEY_VOLUMEDOWN, | ||
187 | [0x1f] = KEY_VOLUMEUP, | ||
188 | [0x22] = KEY_SLEEP, /* Sleep */ | ||
189 | [0x23] = KEY_ZOOM, /* Aspect */ | ||
190 | [0x26] = KEY_SCREEN, /* Pos */ | ||
191 | [0x27] = KEY_ANGLE, /* Size */ | ||
192 | [0x28] = KEY_SELECT, /* Select */ | ||
193 | [0x29] = KEY_BLUE, /* Blue/Picture */ | ||
194 | [0x2a] = KEY_BACKSPACE, /* Back */ | ||
195 | [0x2b] = KEY_MEDIA, /* PIP (Picture-in-picture) */ | ||
196 | [0x2c] = KEY_DOWN, | ||
197 | [0x2e] = KEY_DOT, | ||
198 | [0x2f] = KEY_TV, /* Live TV */ | ||
199 | [0x32] = KEY_LEFT, | ||
200 | [0x33] = KEY_CLEAR, /* Clear */ | ||
201 | [0x35] = KEY_RED, /* Red/TV */ | ||
202 | [0x36] = KEY_UP, | ||
203 | [0x37] = KEY_HOME, /* Home */ | ||
204 | [0x39] = KEY_GREEN, /* Green/Video */ | ||
205 | [0x3d] = KEY_YELLOW, /* Yellow/Music */ | ||
206 | [0x3e] = KEY_OK, /* Ok */ | ||
207 | [0x3f] = KEY_RIGHT, | ||
208 | [0x40] = KEY_NEXT, /* Next */ | ||
209 | [0x41] = KEY_PREVIOUS, /* Previous */ | ||
210 | [0x42] = KEY_CHANNELDOWN, /* Channel down */ | ||
211 | [0x43] = KEY_CHANNELUP /* Channel up */ | ||
212 | }; | ||
213 | EXPORT_SYMBOL_GPL(ir_codes_avermedia_cardbus); | ||
214 | |||
156 | /* Attila Kondoros <attila.kondoros@chello.hu> */ | 215 | /* Attila Kondoros <attila.kondoros@chello.hu> */ |
157 | IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = { | 216 | IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = { |
158 | 217 | ||