diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/bttv-input.c | 245 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 331 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 85 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 41 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 501 |
5 files changed, 12 insertions, 1191 deletions
diff --git a/drivers/media/video/bttv-input.c b/drivers/media/video/bttv-input.c index 221b36e7f392..42760ae867d6 100644 --- a/drivers/media/video/bttv-input.c +++ b/drivers/media/video/bttv-input.c | |||
@@ -28,251 +28,6 @@ | |||
28 | #include "bttv.h" | 28 | #include "bttv.h" |
29 | #include "bttvp.h" | 29 | #include "bttvp.h" |
30 | 30 | ||
31 | /* ---------------------------------------------------------------------- */ | ||
32 | |||
33 | static IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE] = { | ||
34 | [ 34 ] = KEY_KP0, | ||
35 | [ 40 ] = KEY_KP1, | ||
36 | [ 24 ] = KEY_KP2, | ||
37 | [ 56 ] = KEY_KP3, | ||
38 | [ 36 ] = KEY_KP4, | ||
39 | [ 20 ] = KEY_KP5, | ||
40 | [ 52 ] = KEY_KP6, | ||
41 | [ 44 ] = KEY_KP7, | ||
42 | [ 28 ] = KEY_KP8, | ||
43 | [ 60 ] = KEY_KP9, | ||
44 | |||
45 | [ 48 ] = KEY_EJECTCD, // Unmarked on my controller | ||
46 | [ 0 ] = KEY_POWER, | ||
47 | [ 18 ] = BTN_LEFT, // DISPLAY/L | ||
48 | [ 50 ] = BTN_RIGHT, // LOOP/R | ||
49 | [ 10 ] = KEY_MUTE, | ||
50 | [ 38 ] = KEY_RECORD, | ||
51 | [ 22 ] = KEY_PAUSE, | ||
52 | [ 54 ] = KEY_STOP, | ||
53 | [ 30 ] = KEY_VOLUMEDOWN, | ||
54 | [ 62 ] = KEY_VOLUMEUP, | ||
55 | |||
56 | [ 32 ] = KEY_TUNER, // TV/FM | ||
57 | [ 16 ] = KEY_CD, | ||
58 | [ 8 ] = KEY_VIDEO, | ||
59 | [ 4 ] = KEY_AUDIO, | ||
60 | [ 12 ] = KEY_ZOOM, // full screen | ||
61 | [ 2 ] = KEY_INFO, // preview | ||
62 | [ 42 ] = KEY_SEARCH, // autoscan | ||
63 | [ 26 ] = KEY_STOP, // freeze | ||
64 | [ 58 ] = KEY_RECORD, // capture | ||
65 | [ 6 ] = KEY_PLAY, // unmarked | ||
66 | [ 46 ] = KEY_RED, // unmarked | ||
67 | [ 14 ] = KEY_GREEN, // unmarked | ||
68 | |||
69 | [ 33 ] = KEY_YELLOW, // unmarked | ||
70 | [ 17 ] = KEY_CHANNELDOWN, | ||
71 | [ 49 ] = KEY_CHANNELUP, | ||
72 | [ 1 ] = KEY_BLUE, // unmarked | ||
73 | }; | ||
74 | |||
75 | /* Matt Jesson <dvb@jesson.eclipse.co.uk */ | ||
76 | static IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE] = { | ||
77 | [ 0x28 ] = KEY_KP0, //'0' / 'enter' | ||
78 | [ 0x22 ] = KEY_KP1, //'1' | ||
79 | [ 0x12 ] = KEY_KP2, //'2' / 'up arrow' | ||
80 | [ 0x32 ] = KEY_KP3, //'3' | ||
81 | [ 0x24 ] = KEY_KP4, //'4' / 'left arrow' | ||
82 | [ 0x14 ] = KEY_KP5, //'5' | ||
83 | [ 0x34 ] = KEY_KP6, //'6' / 'right arrow' | ||
84 | [ 0x26 ] = KEY_KP7, //'7' | ||
85 | [ 0x16 ] = KEY_KP8, //'8' / 'down arrow' | ||
86 | [ 0x36 ] = KEY_KP9, //'9' | ||
87 | |||
88 | [ 0x20 ] = KEY_LIST, // 'source' | ||
89 | [ 0x10 ] = KEY_TEXT, // 'teletext' | ||
90 | [ 0x00 ] = KEY_POWER, // 'power' | ||
91 | [ 0x04 ] = KEY_AUDIO, // 'audio' | ||
92 | [ 0x06 ] = KEY_ZOOM, // 'full screen' | ||
93 | [ 0x18 ] = KEY_VIDEO, // 'display' | ||
94 | [ 0x38 ] = KEY_SEARCH, // 'loop' | ||
95 | [ 0x08 ] = KEY_INFO, // 'preview' | ||
96 | [ 0x2a ] = KEY_REWIND, // 'backward <<' | ||
97 | [ 0x1a ] = KEY_FASTFORWARD, // 'forward >>' | ||
98 | [ 0x3a ] = KEY_RECORD, // 'capture' | ||
99 | [ 0x0a ] = KEY_MUTE, // 'mute' | ||
100 | [ 0x2c ] = KEY_RECORD, // 'record' | ||
101 | [ 0x1c ] = KEY_PAUSE, // 'pause' | ||
102 | [ 0x3c ] = KEY_STOP, // 'stop' | ||
103 | [ 0x0c ] = KEY_PLAY, // 'play' | ||
104 | [ 0x2e ] = KEY_RED, // 'red' | ||
105 | [ 0x01 ] = KEY_BLUE, // 'blue' / 'cancel' | ||
106 | [ 0x0e ] = KEY_YELLOW, // 'yellow' / 'ok' | ||
107 | [ 0x21 ] = KEY_GREEN, // 'green' | ||
108 | [ 0x11 ] = KEY_CHANNELDOWN, // 'channel -' | ||
109 | [ 0x31 ] = KEY_CHANNELUP, // 'channel +' | ||
110 | [ 0x1e ] = KEY_VOLUMEDOWN, // 'volume -' | ||
111 | [ 0x3e ] = KEY_VOLUMEUP, // 'volume +' | ||
112 | }; | ||
113 | |||
114 | /* Attila Kondoros <attila.kondoros@chello.hu> */ | ||
115 | static IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = { | ||
116 | |||
117 | [ 1 ] = KEY_KP1, | ||
118 | [ 2 ] = KEY_KP2, | ||
119 | [ 3 ] = KEY_KP3, | ||
120 | [ 4 ] = KEY_KP4, | ||
121 | [ 5 ] = KEY_KP5, | ||
122 | [ 6 ] = KEY_KP6, | ||
123 | [ 7 ] = KEY_KP7, | ||
124 | [ 8 ] = KEY_KP8, | ||
125 | [ 9 ] = KEY_KP9, | ||
126 | [ 0 ] = KEY_KP0, | ||
127 | [ 23 ] = KEY_LAST, // +100 | ||
128 | [ 10 ] = KEY_LIST, // recall | ||
129 | |||
130 | |||
131 | [ 28 ] = KEY_TUNER, // TV/FM | ||
132 | [ 21 ] = KEY_SEARCH, // scan | ||
133 | [ 18 ] = KEY_POWER, // power | ||
134 | [ 31 ] = KEY_VOLUMEDOWN, // vol up | ||
135 | [ 27 ] = KEY_VOLUMEUP, // vol down | ||
136 | [ 30 ] = KEY_CHANNELDOWN, // chn up | ||
137 | [ 26 ] = KEY_CHANNELUP, // chn down | ||
138 | |||
139 | [ 17 ] = KEY_VIDEO, // video | ||
140 | [ 15 ] = KEY_ZOOM, // full screen | ||
141 | [ 19 ] = KEY_MUTE, // mute/unmute | ||
142 | [ 16 ] = KEY_TEXT, // min | ||
143 | |||
144 | [ 13 ] = KEY_STOP, // freeze | ||
145 | [ 14 ] = KEY_RECORD, // record | ||
146 | [ 29 ] = KEY_PLAYPAUSE, // stop | ||
147 | [ 25 ] = KEY_PLAY, // play | ||
148 | |||
149 | [ 22 ] = KEY_GOTO, // osd | ||
150 | [ 20 ] = KEY_REFRESH, // default | ||
151 | [ 12 ] = KEY_KPPLUS, // fine tune >>>> | ||
152 | [ 24 ] = KEY_KPMINUS // fine tune <<<< | ||
153 | }; | ||
154 | |||
155 | /* ---------------------------------------------------------------------- */ | ||
156 | |||
157 | static IR_KEYTAB_TYPE ir_codes_conceptronic[IR_KEYTAB_SIZE] = { | ||
158 | |||
159 | [ 30 ] = KEY_POWER, // power | ||
160 | [ 7 ] = KEY_MEDIA, // source | ||
161 | [ 28 ] = KEY_SEARCH, // scan | ||
162 | |||
163 | /* FIXME: duplicate keycodes? | ||
164 | * | ||
165 | * These four keys seem to share the same GPIO as CH+, CH-, <<< and >>> | ||
166 | * The GPIO values are | ||
167 | * 6397fb for both "Scan <" and "CH -", | ||
168 | * 639ffb for "Scan >" and "CH+", | ||
169 | * 6384fb for "Tune <" and "<<<", | ||
170 | * 638cfb for "Tune >" and ">>>", regardless of the mask. | ||
171 | * | ||
172 | * [ 23 ] = KEY_BACK, // fm scan << | ||
173 | * [ 31 ] = KEY_FORWARD, // fm scan >> | ||
174 | * | ||
175 | * [ 4 ] = KEY_LEFT, // fm tuning < | ||
176 | * [ 12 ] = KEY_RIGHT, // fm tuning > | ||
177 | * | ||
178 | * For now, these four keys are disabled. Pressing them will generate | ||
179 | * the CH+/CH-/<<</>>> events | ||
180 | */ | ||
181 | |||
182 | [ 3 ] = KEY_TUNER, // TV/FM | ||
183 | |||
184 | [ 0 ] = KEY_RECORD, | ||
185 | [ 8 ] = KEY_STOP, | ||
186 | [ 17 ] = KEY_PLAY, | ||
187 | |||
188 | [ 26 ] = KEY_PLAYPAUSE, // freeze | ||
189 | [ 25 ] = KEY_ZOOM, // zoom | ||
190 | [ 15 ] = KEY_TEXT, // min | ||
191 | |||
192 | [ 1 ] = KEY_KP1, | ||
193 | [ 11 ] = KEY_KP2, | ||
194 | [ 27 ] = KEY_KP3, | ||
195 | [ 5 ] = KEY_KP4, | ||
196 | [ 9 ] = KEY_KP5, | ||
197 | [ 21 ] = KEY_KP6, | ||
198 | [ 6 ] = KEY_KP7, | ||
199 | [ 10 ] = KEY_KP8, | ||
200 | [ 18 ] = KEY_KP9, | ||
201 | [ 2 ] = KEY_KP0, | ||
202 | [ 16 ] = KEY_LAST, // +100 | ||
203 | [ 19 ] = KEY_LIST, // recall | ||
204 | |||
205 | [ 31 ] = KEY_CHANNELUP, // chn down | ||
206 | [ 23 ] = KEY_CHANNELDOWN, // chn up | ||
207 | [ 22 ] = KEY_VOLUMEUP, // vol down | ||
208 | [ 20 ] = KEY_VOLUMEDOWN, // vol up | ||
209 | |||
210 | [ 4 ] = KEY_KPMINUS, // <<< | ||
211 | [ 14 ] = KEY_SETUP, // function | ||
212 | [ 12 ] = KEY_KPPLUS, // >>> | ||
213 | |||
214 | [ 13 ] = KEY_GOTO, // mts | ||
215 | [ 29 ] = KEY_REFRESH, // reset | ||
216 | [ 24 ] = KEY_MUTE // mute/unmute | ||
217 | }; | ||
218 | |||
219 | static IR_KEYTAB_TYPE ir_codes_nebula[IR_KEYTAB_SIZE] = { | ||
220 | [0x00] = KEY_KP0, | ||
221 | [0x01] = KEY_KP1, | ||
222 | [0x02] = KEY_KP2, | ||
223 | [0x03] = KEY_KP3, | ||
224 | [0x04] = KEY_KP4, | ||
225 | [0x05] = KEY_KP5, | ||
226 | [0x06] = KEY_KP6, | ||
227 | [0x07] = KEY_KP7, | ||
228 | [0x08] = KEY_KP8, | ||
229 | [0x09] = KEY_KP9, | ||
230 | [0x0a] = KEY_TV, | ||
231 | [0x0b] = KEY_AUX, | ||
232 | [0x0c] = KEY_DVD, | ||
233 | [0x0d] = KEY_POWER, | ||
234 | [0x0e] = KEY_MHP, /* labelled 'Picture' */ | ||
235 | [0x0f] = KEY_AUDIO, | ||
236 | [0x10] = KEY_INFO, | ||
237 | [0x11] = KEY_F13, /* 16:9 */ | ||
238 | [0x12] = KEY_F14, /* 14:9 */ | ||
239 | [0x13] = KEY_EPG, | ||
240 | [0x14] = KEY_EXIT, | ||
241 | [0x15] = KEY_MENU, | ||
242 | [0x16] = KEY_UP, | ||
243 | [0x17] = KEY_DOWN, | ||
244 | [0x18] = KEY_LEFT, | ||
245 | [0x19] = KEY_RIGHT, | ||
246 | [0x1a] = KEY_ENTER, | ||
247 | [0x1b] = KEY_CHANNELUP, | ||
248 | [0x1c] = KEY_CHANNELDOWN, | ||
249 | [0x1d] = KEY_VOLUMEUP, | ||
250 | [0x1e] = KEY_VOLUMEDOWN, | ||
251 | [0x1f] = KEY_RED, | ||
252 | [0x20] = KEY_GREEN, | ||
253 | [0x21] = KEY_YELLOW, | ||
254 | [0x22] = KEY_BLUE, | ||
255 | [0x23] = KEY_SUBTITLE, | ||
256 | [0x24] = KEY_F15, /* AD */ | ||
257 | [0x25] = KEY_TEXT, | ||
258 | [0x26] = KEY_MUTE, | ||
259 | [0x27] = KEY_REWIND, | ||
260 | [0x28] = KEY_STOP, | ||
261 | [0x29] = KEY_PLAY, | ||
262 | [0x2a] = KEY_FASTFORWARD, | ||
263 | [0x2b] = KEY_F16, /* chapter */ | ||
264 | [0x2c] = KEY_PAUSE, | ||
265 | [0x2d] = KEY_PLAY, | ||
266 | [0x2e] = KEY_RECORD, | ||
267 | [0x2f] = KEY_F17, /* picture in picture */ | ||
268 | [0x30] = KEY_KPPLUS, /* zoom in */ | ||
269 | [0x31] = KEY_KPMINUS, /* zoom out */ | ||
270 | [0x32] = KEY_F18, /* capture */ | ||
271 | [0x33] = KEY_F19, /* web */ | ||
272 | [0x34] = KEY_EMAIL, | ||
273 | [0x35] = KEY_PHONE, | ||
274 | [0x36] = KEY_PC | ||
275 | }; | ||
276 | 31 | ||
277 | static int debug; | 32 | static int debug; |
278 | module_param(debug, int, 0644); /* debug level (0,1,2) */ | 33 | module_param(debug, int, 0644); /* debug level (0,1,2) */ |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index da2ad5c4b553..a4fa92c1b0c7 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -34,337 +34,6 @@ | |||
34 | 34 | ||
35 | /* ---------------------------------------------------------------------- */ | 35 | /* ---------------------------------------------------------------------- */ |
36 | 36 | ||
37 | /* DigitalNow DNTV Live DVB-T Remote */ | ||
38 | static IR_KEYTAB_TYPE ir_codes_dntv_live_dvb_t[IR_KEYTAB_SIZE] = { | ||
39 | [0x00] = KEY_ESC, /* 'go up a level?' */ | ||
40 | /* Keys 0 to 9 */ | ||
41 | [0x0a] = KEY_KP0, | ||
42 | [0x01] = KEY_KP1, | ||
43 | [0x02] = KEY_KP2, | ||
44 | [0x03] = KEY_KP3, | ||
45 | [0x04] = KEY_KP4, | ||
46 | [0x05] = KEY_KP5, | ||
47 | [0x06] = KEY_KP6, | ||
48 | [0x07] = KEY_KP7, | ||
49 | [0x08] = KEY_KP8, | ||
50 | [0x09] = KEY_KP9, | ||
51 | |||
52 | [0x0b] = KEY_TUNER, /* tv/fm */ | ||
53 | [0x0c] = KEY_SEARCH, /* scan */ | ||
54 | [0x0d] = KEY_STOP, | ||
55 | [0x0e] = KEY_PAUSE, | ||
56 | [0x0f] = KEY_LIST, /* source */ | ||
57 | |||
58 | [0x10] = KEY_MUTE, | ||
59 | [0x11] = KEY_REWIND, /* backward << */ | ||
60 | [0x12] = KEY_POWER, | ||
61 | [0x13] = KEY_S, /* snap */ | ||
62 | [0x14] = KEY_AUDIO, /* stereo */ | ||
63 | [0x15] = KEY_CLEAR, /* reset */ | ||
64 | [0x16] = KEY_PLAY, | ||
65 | [0x17] = KEY_ENTER, | ||
66 | [0x18] = KEY_ZOOM, /* full screen */ | ||
67 | [0x19] = KEY_FASTFORWARD, /* forward >> */ | ||
68 | [0x1a] = KEY_CHANNELUP, | ||
69 | [0x1b] = KEY_VOLUMEUP, | ||
70 | [0x1c] = KEY_INFO, /* preview */ | ||
71 | [0x1d] = KEY_RECORD, /* record */ | ||
72 | [0x1e] = KEY_CHANNELDOWN, | ||
73 | [0x1f] = KEY_VOLUMEDOWN, | ||
74 | }; | ||
75 | |||
76 | /* ---------------------------------------------------------------------- */ | ||
77 | |||
78 | /* IO-DATA BCTV7E Remote */ | ||
79 | static IR_KEYTAB_TYPE ir_codes_iodata_bctv7e[IR_KEYTAB_SIZE] = { | ||
80 | [0x40] = KEY_TV, | ||
81 | [0x20] = KEY_RADIO, /* FM */ | ||
82 | [0x60] = KEY_EPG, | ||
83 | [0x00] = KEY_POWER, | ||
84 | |||
85 | /* Keys 0 to 9 */ | ||
86 | [0x44] = KEY_KP0, /* 10 */ | ||
87 | [0x50] = KEY_KP1, | ||
88 | [0x30] = KEY_KP2, | ||
89 | [0x70] = KEY_KP3, | ||
90 | [0x48] = KEY_KP4, | ||
91 | [0x28] = KEY_KP5, | ||
92 | [0x68] = KEY_KP6, | ||
93 | [0x58] = KEY_KP7, | ||
94 | [0x38] = KEY_KP8, | ||
95 | [0x78] = KEY_KP9, | ||
96 | |||
97 | [0x10] = KEY_L, /* Live */ | ||
98 | [0x08] = KEY_T, /* Time Shift */ | ||
99 | |||
100 | [0x18] = KEY_PLAYPAUSE, /* Play */ | ||
101 | |||
102 | [0x24] = KEY_ENTER, /* 11 */ | ||
103 | [0x64] = KEY_ESC, /* 12 */ | ||
104 | [0x04] = KEY_M, /* Multi */ | ||
105 | |||
106 | [0x54] = KEY_VIDEO, | ||
107 | [0x34] = KEY_CHANNELUP, | ||
108 | [0x74] = KEY_VOLUMEUP, | ||
109 | [0x14] = KEY_MUTE, | ||
110 | |||
111 | [0x4c] = KEY_S, /* SVIDEO */ | ||
112 | [0x2c] = KEY_CHANNELDOWN, | ||
113 | [0x6c] = KEY_VOLUMEDOWN, | ||
114 | [0x0c] = KEY_ZOOM, | ||
115 | |||
116 | [0x5c] = KEY_PAUSE, | ||
117 | [0x3c] = KEY_C, /* || (red) */ | ||
118 | [0x7c] = KEY_RECORD, /* recording */ | ||
119 | [0x1c] = KEY_STOP, | ||
120 | |||
121 | [0x41] = KEY_REWIND, /* backward << */ | ||
122 | [0x21] = KEY_PLAY, | ||
123 | [0x61] = KEY_FASTFORWARD, /* forward >> */ | ||
124 | [0x01] = KEY_NEXT, /* skip >| */ | ||
125 | }; | ||
126 | |||
127 | /* ---------------------------------------------------------------------- */ | ||
128 | |||
129 | /* ADS Tech Instant TV DVB-T PCI Remote */ | ||
130 | static IR_KEYTAB_TYPE ir_codes_adstech_dvb_t_pci[IR_KEYTAB_SIZE] = { | ||
131 | /* Keys 0 to 9 */ | ||
132 | [0x4d] = KEY_0, | ||
133 | [0x57] = KEY_1, | ||
134 | [0x4f] = KEY_2, | ||
135 | [0x53] = KEY_3, | ||
136 | [0x56] = KEY_4, | ||
137 | [0x4e] = KEY_5, | ||
138 | [0x5e] = KEY_6, | ||
139 | [0x54] = KEY_7, | ||
140 | [0x4c] = KEY_8, | ||
141 | [0x5c] = KEY_9, | ||
142 | |||
143 | [0x5b] = KEY_POWER, | ||
144 | [0x5f] = KEY_MUTE, | ||
145 | [0x55] = KEY_GOTO, | ||
146 | [0x5d] = KEY_SEARCH, | ||
147 | [0x17] = KEY_EPG, /* Guide */ | ||
148 | [0x1f] = KEY_MENU, | ||
149 | [0x0f] = KEY_UP, | ||
150 | [0x46] = KEY_DOWN, | ||
151 | [0x16] = KEY_LEFT, | ||
152 | [0x1e] = KEY_RIGHT, | ||
153 | [0x0e] = KEY_SELECT, /* Enter */ | ||
154 | [0x5a] = KEY_INFO, | ||
155 | [0x52] = KEY_EXIT, | ||
156 | [0x59] = KEY_PREVIOUS, | ||
157 | [0x51] = KEY_NEXT, | ||
158 | [0x58] = KEY_REWIND, | ||
159 | [0x50] = KEY_FORWARD, | ||
160 | [0x44] = KEY_PLAYPAUSE, | ||
161 | [0x07] = KEY_STOP, | ||
162 | [0x1b] = KEY_RECORD, | ||
163 | [0x13] = KEY_TUNER, /* Live */ | ||
164 | [0x0a] = KEY_A, | ||
165 | [0x12] = KEY_B, | ||
166 | [0x03] = KEY_PROG1, /* 1 */ | ||
167 | [0x01] = KEY_PROG2, /* 2 */ | ||
168 | [0x00] = KEY_PROG3, /* 3 */ | ||
169 | [0x06] = KEY_DVD, | ||
170 | [0x48] = KEY_AUX, /* Photo */ | ||
171 | [0x40] = KEY_VIDEO, | ||
172 | [0x19] = KEY_AUDIO, /* Music */ | ||
173 | [0x0b] = KEY_CHANNELUP, | ||
174 | [0x08] = KEY_CHANNELDOWN, | ||
175 | [0x15] = KEY_VOLUMEUP, | ||
176 | [0x1c] = KEY_VOLUMEDOWN, | ||
177 | }; | ||
178 | |||
179 | /* ---------------------------------------------------------------------- */ | ||
180 | |||
181 | /* MSI TV@nywhere remote */ | ||
182 | static IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE] = { | ||
183 | /* Keys 0 to 9 */ | ||
184 | [0x00] = KEY_0, | ||
185 | [0x01] = KEY_1, | ||
186 | [0x02] = KEY_2, | ||
187 | [0x03] = KEY_3, | ||
188 | [0x04] = KEY_4, | ||
189 | [0x05] = KEY_5, | ||
190 | [0x06] = KEY_6, | ||
191 | [0x07] = KEY_7, | ||
192 | [0x08] = KEY_8, | ||
193 | [0x09] = KEY_9, | ||
194 | |||
195 | [0x0c] = KEY_MUTE, | ||
196 | [0x0f] = KEY_SCREEN, /* Full Screen */ | ||
197 | [0x10] = KEY_F, /* Funtion */ | ||
198 | [0x11] = KEY_T, /* Time shift */ | ||
199 | [0x12] = KEY_POWER, | ||
200 | [0x13] = KEY_MEDIA, /* MTS */ | ||
201 | [0x14] = KEY_SLOW, | ||
202 | [0x16] = KEY_REWIND, /* backward << */ | ||
203 | [0x17] = KEY_ENTER, /* Return */ | ||
204 | [0x18] = KEY_FASTFORWARD, /* forward >> */ | ||
205 | [0x1a] = KEY_CHANNELUP, | ||
206 | [0x1b] = KEY_VOLUMEUP, | ||
207 | [0x1e] = KEY_CHANNELDOWN, | ||
208 | [0x1f] = KEY_VOLUMEDOWN, | ||
209 | }; | ||
210 | |||
211 | /* ---------------------------------------------------------------------- */ | ||
212 | |||
213 | /* Cinergy 1400 DVB-T */ | ||
214 | static IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE] = { | ||
215 | [0x01] = KEY_POWER, | ||
216 | [0x02] = KEY_1, | ||
217 | [0x03] = KEY_2, | ||
218 | [0x04] = KEY_3, | ||
219 | [0x05] = KEY_4, | ||
220 | [0x06] = KEY_5, | ||
221 | [0x07] = KEY_6, | ||
222 | [0x08] = KEY_7, | ||
223 | [0x09] = KEY_8, | ||
224 | [0x0a] = KEY_9, | ||
225 | [0x0c] = KEY_0, | ||
226 | |||
227 | [0x0b] = KEY_VIDEO, | ||
228 | [0x0d] = KEY_REFRESH, | ||
229 | [0x0e] = KEY_SELECT, | ||
230 | [0x0f] = KEY_EPG, | ||
231 | [0x10] = KEY_UP, | ||
232 | [0x11] = KEY_LEFT, | ||
233 | [0x12] = KEY_OK, | ||
234 | [0x13] = KEY_RIGHT, | ||
235 | [0x14] = KEY_DOWN, | ||
236 | [0x15] = KEY_TEXT, | ||
237 | [0x16] = KEY_INFO, | ||
238 | |||
239 | [0x17] = KEY_RED, | ||
240 | [0x18] = KEY_GREEN, | ||
241 | [0x19] = KEY_YELLOW, | ||
242 | [0x1a] = KEY_BLUE, | ||
243 | |||
244 | [0x1b] = KEY_CHANNELUP, | ||
245 | [0x1c] = KEY_VOLUMEUP, | ||
246 | [0x1d] = KEY_MUTE, | ||
247 | [0x1e] = KEY_VOLUMEDOWN, | ||
248 | [0x1f] = KEY_CHANNELDOWN, | ||
249 | |||
250 | [0x40] = KEY_PAUSE, | ||
251 | [0x4c] = KEY_PLAY, | ||
252 | [0x58] = KEY_RECORD, | ||
253 | [0x54] = KEY_PREVIOUS, | ||
254 | [0x48] = KEY_STOP, | ||
255 | [0x5c] = KEY_NEXT, | ||
256 | }; | ||
257 | |||
258 | /* ---------------------------------------------------------------------- */ | ||
259 | |||
260 | /* AVERTV STUDIO 303 Remote */ | ||
261 | static IR_KEYTAB_TYPE ir_codes_avertv_303[IR_KEYTAB_SIZE] = { | ||
262 | [ 0x2a ] = KEY_KP1, | ||
263 | [ 0x32 ] = KEY_KP2, | ||
264 | [ 0x3a ] = KEY_KP3, | ||
265 | [ 0x4a ] = KEY_KP4, | ||
266 | [ 0x52 ] = KEY_KP5, | ||
267 | [ 0x5a ] = KEY_KP6, | ||
268 | [ 0x6a ] = KEY_KP7, | ||
269 | [ 0x72 ] = KEY_KP8, | ||
270 | [ 0x7a ] = KEY_KP9, | ||
271 | [ 0x0e ] = KEY_KP0, | ||
272 | |||
273 | [ 0x02 ] = KEY_POWER, | ||
274 | [ 0x22 ] = KEY_VIDEO, | ||
275 | [ 0x42 ] = KEY_AUDIO, | ||
276 | [ 0x62 ] = KEY_ZOOM, | ||
277 | [ 0x0a ] = KEY_TV, | ||
278 | [ 0x12 ] = KEY_CD, | ||
279 | [ 0x1a ] = KEY_TEXT, | ||
280 | |||
281 | [ 0x16 ] = KEY_SUBTITLE, | ||
282 | [ 0x1e ] = KEY_REWIND, | ||
283 | [ 0x06 ] = KEY_PRINT, | ||
284 | |||
285 | [ 0x2e ] = KEY_SEARCH, | ||
286 | [ 0x36 ] = KEY_SLEEP, | ||
287 | [ 0x3e ] = KEY_SHUFFLE, | ||
288 | [ 0x26 ] = KEY_MUTE, | ||
289 | |||
290 | [ 0x4e ] = KEY_RECORD, | ||
291 | [ 0x56 ] = KEY_PAUSE, | ||
292 | [ 0x5e ] = KEY_STOP, | ||
293 | [ 0x46 ] = KEY_PLAY, | ||
294 | |||
295 | [ 0x6e ] = KEY_RED, | ||
296 | [ 0x0b ] = KEY_GREEN, | ||
297 | [ 0x66 ] = KEY_YELLOW, | ||
298 | [ 0x03 ] = KEY_BLUE, | ||
299 | |||
300 | [ 0x76 ] = KEY_LEFT, | ||
301 | [ 0x7e ] = KEY_RIGHT, | ||
302 | [ 0x13 ] = KEY_DOWN, | ||
303 | [ 0x1b ] = KEY_UP, | ||
304 | }; | ||
305 | |||
306 | /* ---------------------------------------------------------------------- */ | ||
307 | |||
308 | /* DigitalNow DNTV Live! DVB-T Pro Remote */ | ||
309 | static IR_KEYTAB_TYPE ir_codes_dntv_live_dvbt_pro[IR_KEYTAB_SIZE] = { | ||
310 | [ 0x16 ] = KEY_POWER, | ||
311 | [ 0x5b ] = KEY_HOME, | ||
312 | |||
313 | [ 0x55 ] = KEY_TV, /* live tv */ | ||
314 | [ 0x58 ] = KEY_TUNER, /* digital Radio */ | ||
315 | [ 0x5a ] = KEY_RADIO, /* FM radio */ | ||
316 | [ 0x59 ] = KEY_DVD, /* dvd menu */ | ||
317 | [ 0x03 ] = KEY_1, | ||
318 | [ 0x01 ] = KEY_2, | ||
319 | [ 0x06 ] = KEY_3, | ||
320 | [ 0x09 ] = KEY_4, | ||
321 | [ 0x1d ] = KEY_5, | ||
322 | [ 0x1f ] = KEY_6, | ||
323 | [ 0x0d ] = KEY_7, | ||
324 | [ 0x19 ] = KEY_8, | ||
325 | [ 0x1b ] = KEY_9, | ||
326 | [ 0x0c ] = KEY_CANCEL, | ||
327 | [ 0x15 ] = KEY_0, | ||
328 | [ 0x4a ] = KEY_CLEAR, | ||
329 | [ 0x13 ] = KEY_BACK, | ||
330 | [ 0x00 ] = KEY_TAB, | ||
331 | [ 0x4b ] = KEY_UP, | ||
332 | [ 0x4e ] = KEY_LEFT, | ||
333 | [ 0x4f ] = KEY_OK, | ||
334 | [ 0x52 ] = KEY_RIGHT, | ||
335 | [ 0x51 ] = KEY_DOWN, | ||
336 | [ 0x1e ] = KEY_VOLUMEUP, | ||
337 | [ 0x0a ] = KEY_VOLUMEDOWN, | ||
338 | [ 0x02 ] = KEY_CHANNELDOWN, | ||
339 | [ 0x05 ] = KEY_CHANNELUP, | ||
340 | [ 0x11 ] = KEY_RECORD, | ||
341 | [ 0x14 ] = KEY_PLAY, | ||
342 | [ 0x4c ] = KEY_PAUSE, | ||
343 | [ 0x1a ] = KEY_STOP, | ||
344 | [ 0x40 ] = KEY_REWIND, | ||
345 | [ 0x12 ] = KEY_FASTFORWARD, | ||
346 | [ 0x41 ] = KEY_PREVIOUSSONG, /* replay |< */ | ||
347 | [ 0x42 ] = KEY_NEXTSONG, /* skip >| */ | ||
348 | [ 0x54 ] = KEY_CAMERA, /* capture */ | ||
349 | [ 0x50 ] = KEY_LANGUAGE, /* sap */ | ||
350 | [ 0x47 ] = KEY_TV2, /* pip */ | ||
351 | [ 0x4d ] = KEY_SCREEN, | ||
352 | [ 0x43 ] = KEY_SUBTITLE, | ||
353 | [ 0x10 ] = KEY_MUTE, | ||
354 | [ 0x49 ] = KEY_AUDIO, /* l/r */ | ||
355 | [ 0x07 ] = KEY_SLEEP, | ||
356 | [ 0x08 ] = KEY_VIDEO, /* a/v */ | ||
357 | [ 0x0e ] = KEY_PREVIOUS, /* recall */ | ||
358 | [ 0x45 ] = KEY_ZOOM, /* zoom + */ | ||
359 | [ 0x46 ] = KEY_ANGLE, /* zoom - */ | ||
360 | [ 0x56 ] = KEY_RED, | ||
361 | [ 0x57 ] = KEY_GREEN, | ||
362 | [ 0x5c ] = KEY_YELLOW, | ||
363 | [ 0x5d ] = KEY_BLUE, | ||
364 | }; | ||
365 | |||
366 | /* ---------------------------------------------------------------------- */ | ||
367 | |||
368 | struct cx88_IR { | 37 | struct cx88_IR { |
369 | struct cx88_core *core; | 38 | struct cx88_core *core; |
370 | struct input_dev *input; | 39 | struct input_dev *input; |
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index 30dfa5370c73..31e89e4f18be 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -43,91 +43,6 @@ MODULE_PARM_DESC(ir_debug,"enable debug messages [IR]"); | |||
43 | #define dprintk(fmt, arg...) if (ir_debug) \ | 43 | #define dprintk(fmt, arg...) if (ir_debug) \ |
44 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg) | 44 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg) |
45 | 45 | ||
46 | /* ---------------------------------------------------------------------- */ | ||
47 | |||
48 | static IR_KEYTAB_TYPE ir_codes_em_terratec[IR_KEYTAB_SIZE] = { | ||
49 | [ 0x01 ] = KEY_CHANNEL, | ||
50 | [ 0x02 ] = KEY_SELECT, | ||
51 | [ 0x03 ] = KEY_MUTE, | ||
52 | [ 0x04 ] = KEY_POWER, | ||
53 | [ 0x05 ] = KEY_KP1, | ||
54 | [ 0x06 ] = KEY_KP2, | ||
55 | [ 0x07 ] = KEY_KP3, | ||
56 | [ 0x08 ] = KEY_CHANNELUP, | ||
57 | [ 0x09 ] = KEY_KP4, | ||
58 | [ 0x0a ] = KEY_KP5, | ||
59 | [ 0x0b ] = KEY_KP6, | ||
60 | [ 0x0c ] = KEY_CHANNELDOWN, | ||
61 | [ 0x0d ] = KEY_KP7, | ||
62 | [ 0x0e ] = KEY_KP8, | ||
63 | [ 0x0f ] = KEY_KP9, | ||
64 | [ 0x10 ] = KEY_VOLUMEUP, | ||
65 | [ 0x11 ] = KEY_KP0, | ||
66 | [ 0x12 ] = KEY_MENU, | ||
67 | [ 0x13 ] = KEY_PRINT, | ||
68 | [ 0x14 ] = KEY_VOLUMEDOWN, | ||
69 | [ 0x16 ] = KEY_PAUSE, | ||
70 | [ 0x18 ] = KEY_RECORD, | ||
71 | [ 0x19 ] = KEY_REWIND, | ||
72 | [ 0x1a ] = KEY_PLAY, | ||
73 | [ 0x1b ] = KEY_FORWARD, | ||
74 | [ 0x1c ] = KEY_BACKSPACE, | ||
75 | [ 0x1e ] = KEY_STOP, | ||
76 | [ 0x40 ] = KEY_ZOOM, | ||
77 | }; | ||
78 | |||
79 | static IR_KEYTAB_TYPE ir_codes_em_pinnacle_usb[IR_KEYTAB_SIZE] = { | ||
80 | [ 0x3a ] = KEY_KP0, | ||
81 | [ 0x31 ] = KEY_KP1, | ||
82 | [ 0x32 ] = KEY_KP2, | ||
83 | [ 0x33 ] = KEY_KP3, | ||
84 | [ 0x34 ] = KEY_KP4, | ||
85 | [ 0x35 ] = KEY_KP5, | ||
86 | [ 0x36 ] = KEY_KP6, | ||
87 | [ 0x37 ] = KEY_KP7, | ||
88 | [ 0x38 ] = KEY_KP8, | ||
89 | [ 0x39 ] = KEY_KP9, | ||
90 | |||
91 | [ 0x2f ] = KEY_POWER, | ||
92 | |||
93 | [ 0x2e ] = KEY_P, | ||
94 | [ 0x1f ] = KEY_L, | ||
95 | [ 0x2b ] = KEY_I, | ||
96 | |||
97 | [ 0x2d ] = KEY_ZOOM, | ||
98 | [ 0x1e ] = KEY_ZOOM, | ||
99 | [ 0x1b ] = KEY_VOLUMEUP, | ||
100 | [ 0x0f ] = KEY_VOLUMEDOWN, | ||
101 | [ 0x17 ] = KEY_CHANNELUP, | ||
102 | [ 0x1c ] = KEY_CHANNELDOWN, | ||
103 | [ 0x25 ] = KEY_INFO, | ||
104 | |||
105 | [ 0x3c ] = KEY_MUTE, | ||
106 | |||
107 | [ 0x3d ] = KEY_LEFT, | ||
108 | [ 0x3b ] = KEY_RIGHT, | ||
109 | |||
110 | [ 0x3f ] = KEY_UP, | ||
111 | [ 0x3e ] = KEY_DOWN, | ||
112 | [ 0x1a ] = KEY_PAUSE, | ||
113 | |||
114 | [ 0x1d ] = KEY_MENU, | ||
115 | [ 0x19 ] = KEY_PLAY, | ||
116 | [ 0x16 ] = KEY_REWIND, | ||
117 | [ 0x13 ] = KEY_FORWARD, | ||
118 | [ 0x15 ] = KEY_PAUSE, | ||
119 | [ 0x0e ] = KEY_REWIND, | ||
120 | [ 0x0d ] = KEY_PLAY, | ||
121 | [ 0x0b ] = KEY_STOP, | ||
122 | [ 0x07 ] = KEY_FORWARD, | ||
123 | [ 0x27 ] = KEY_RECORD, | ||
124 | [ 0x26 ] = KEY_TUNER, | ||
125 | [ 0x29 ] = KEY_TEXT, | ||
126 | [ 0x2a ] = KEY_MEDIA, | ||
127 | [ 0x18 ] = KEY_EPG, | ||
128 | [ 0x27 ] = KEY_RECORD, | ||
129 | }; | ||
130 | |||
131 | /* ----------------------------------------------------------------------- */ | 46 | /* ----------------------------------------------------------------------- */ |
132 | 47 | ||
133 | static int get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw) | 48 | static int get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw) |
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 3963481b3130..95bacf435414 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -44,45 +44,6 @@ | |||
44 | #include <media/ir-common.h> | 44 | #include <media/ir-common.h> |
45 | #include <media/ir-kbd-i2c.h> | 45 | #include <media/ir-kbd-i2c.h> |
46 | 46 | ||
47 | /* Mark Phalan <phalanm@o2.ie> */ | ||
48 | static IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE] = { | ||
49 | [ 0 ] = KEY_KP0, | ||
50 | [ 1 ] = KEY_KP1, | ||
51 | [ 2 ] = KEY_KP2, | ||
52 | [ 3 ] = KEY_KP3, | ||
53 | [ 4 ] = KEY_KP4, | ||
54 | [ 5 ] = KEY_KP5, | ||
55 | [ 6 ] = KEY_KP6, | ||
56 | [ 7 ] = KEY_KP7, | ||
57 | [ 8 ] = KEY_KP8, | ||
58 | [ 9 ] = KEY_KP9, | ||
59 | |||
60 | [ 18 ] = KEY_POWER, | ||
61 | [ 16 ] = KEY_MUTE, | ||
62 | [ 31 ] = KEY_VOLUMEDOWN, | ||
63 | [ 27 ] = KEY_VOLUMEUP, | ||
64 | [ 26 ] = KEY_CHANNELUP, | ||
65 | [ 30 ] = KEY_CHANNELDOWN, | ||
66 | [ 14 ] = KEY_PAGEUP, | ||
67 | [ 29 ] = KEY_PAGEDOWN, | ||
68 | [ 19 ] = KEY_SOUND, | ||
69 | |||
70 | [ 24 ] = KEY_KPPLUSMINUS, /* CH +/- */ | ||
71 | [ 22 ] = KEY_SUBTITLE, /* CC */ | ||
72 | [ 13 ] = KEY_TEXT, /* TTX */ | ||
73 | [ 11 ] = KEY_TV, /* AIR/CBL */ | ||
74 | [ 17 ] = KEY_PC, /* PC/TV */ | ||
75 | [ 23 ] = KEY_OK, /* CH RTN */ | ||
76 | [ 25 ] = KEY_MODE, /* FUNC */ | ||
77 | [ 12 ] = KEY_SEARCH, /* AUTOSCAN */ | ||
78 | |||
79 | /* Not sure what to do with these ones! */ | ||
80 | [ 15 ] = KEY_SELECT, /* SOURCE */ | ||
81 | [ 10 ] = KEY_KPPLUS, /* +100 */ | ||
82 | [ 20 ] = KEY_KPEQUAL, /* SYNC */ | ||
83 | [ 28 ] = KEY_MEDIA, /* PC/TV */ | ||
84 | }; | ||
85 | |||
86 | /* ----------------------------------------------------------------------- */ | 47 | /* ----------------------------------------------------------------------- */ |
87 | /* insmod parameters */ | 48 | /* insmod parameters */ |
88 | 49 | ||
@@ -342,7 +303,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
342 | ir->get_key = get_key_haup; | 303 | ir->get_key = get_key_haup; |
343 | ir_type = IR_TYPE_RC5; | 304 | ir_type = IR_TYPE_RC5; |
344 | if (hauppauge == 1) { | 305 | if (hauppauge == 1) { |
345 | ir_codes = ir_codes_rc5_tv_grey; | 306 | ir_codes = ir_codes_hauppauge_new; |
346 | } else { | 307 | } else { |
347 | ir_codes = ir_codes_rc5_tv; | 308 | ir_codes = ir_codes_rc5_tv; |
348 | } | 309 | } |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 82d28cbf289f..342568cf728f 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -42,485 +42,6 @@ MODULE_PARM_DESC(ir_debug,"enable debug messages [IR]"); | |||
42 | #define i2cdprintk(fmt, arg...) if (ir_debug) \ | 42 | #define i2cdprintk(fmt, arg...) if (ir_debug) \ |
43 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg) | 43 | printk(KERN_DEBUG "%s/ir: " fmt, ir->c.name , ## arg) |
44 | 44 | ||
45 | /* ---------------------------------------------------------------------- */ | ||
46 | |||
47 | static IR_KEYTAB_TYPE flyvideo_codes[IR_KEYTAB_SIZE] = { | ||
48 | [ 15 ] = KEY_KP0, | ||
49 | [ 3 ] = KEY_KP1, | ||
50 | [ 4 ] = KEY_KP2, | ||
51 | [ 5 ] = KEY_KP3, | ||
52 | [ 7 ] = KEY_KP4, | ||
53 | [ 8 ] = KEY_KP5, | ||
54 | [ 9 ] = KEY_KP6, | ||
55 | [ 11 ] = KEY_KP7, | ||
56 | [ 12 ] = KEY_KP8, | ||
57 | [ 13 ] = KEY_KP9, | ||
58 | |||
59 | [ 14 ] = KEY_MODE, // Air/Cable | ||
60 | [ 17 ] = KEY_VIDEO, // Video | ||
61 | [ 21 ] = KEY_AUDIO, // Audio | ||
62 | [ 0 ] = KEY_POWER, // Power | ||
63 | [ 24 ] = KEY_TUNER, // AV Source | ||
64 | [ 2 ] = KEY_ZOOM, // Fullscreen | ||
65 | [ 26 ] = KEY_LANGUAGE, // Stereo | ||
66 | [ 27 ] = KEY_MUTE, // Mute | ||
67 | [ 20 ] = KEY_VOLUMEUP, // Volume + | ||
68 | [ 23 ] = KEY_VOLUMEDOWN, // Volume - | ||
69 | [ 18 ] = KEY_CHANNELUP, // Channel + | ||
70 | [ 19 ] = KEY_CHANNELDOWN, // Channel - | ||
71 | [ 6 ] = KEY_AGAIN, // Recall | ||
72 | [ 16 ] = KEY_ENTER, // Enter | ||
73 | }; | ||
74 | |||
75 | |||
76 | static IR_KEYTAB_TYPE cinergy_codes[IR_KEYTAB_SIZE] = { | ||
77 | [ 0 ] = KEY_KP0, | ||
78 | [ 1 ] = KEY_KP1, | ||
79 | [ 2 ] = KEY_KP2, | ||
80 | [ 3 ] = KEY_KP3, | ||
81 | [ 4 ] = KEY_KP4, | ||
82 | [ 5 ] = KEY_KP5, | ||
83 | [ 6 ] = KEY_KP6, | ||
84 | [ 7 ] = KEY_KP7, | ||
85 | [ 8 ] = KEY_KP8, | ||
86 | [ 9 ] = KEY_KP9, | ||
87 | |||
88 | [ 0x0a ] = KEY_POWER, | ||
89 | [ 0x0b ] = KEY_PROG1, // app | ||
90 | [ 0x0c ] = KEY_ZOOM, // zoom/fullscreen | ||
91 | [ 0x0d ] = KEY_CHANNELUP, // channel | ||
92 | [ 0x0e ] = KEY_CHANNELDOWN, // channel- | ||
93 | [ 0x0f ] = KEY_VOLUMEUP, | ||
94 | [ 0x10 ] = KEY_VOLUMEDOWN, | ||
95 | [ 0x11 ] = KEY_TUNER, // AV | ||
96 | [ 0x12 ] = KEY_NUMLOCK, // -/-- | ||
97 | [ 0x13 ] = KEY_AUDIO, // audio | ||
98 | [ 0x14 ] = KEY_MUTE, | ||
99 | [ 0x15 ] = KEY_UP, | ||
100 | [ 0x16 ] = KEY_DOWN, | ||
101 | [ 0x17 ] = KEY_LEFT, | ||
102 | [ 0x18 ] = KEY_RIGHT, | ||
103 | [ 0x19 ] = BTN_LEFT, | ||
104 | [ 0x1a ] = BTN_RIGHT, | ||
105 | [ 0x1b ] = KEY_WWW, // text | ||
106 | [ 0x1c ] = KEY_REWIND, | ||
107 | [ 0x1d ] = KEY_FORWARD, | ||
108 | [ 0x1e ] = KEY_RECORD, | ||
109 | [ 0x1f ] = KEY_PLAY, | ||
110 | [ 0x20 ] = KEY_PREVIOUSSONG, | ||
111 | [ 0x21 ] = KEY_NEXTSONG, | ||
112 | [ 0x22 ] = KEY_PAUSE, | ||
113 | [ 0x23 ] = KEY_STOP, | ||
114 | }; | ||
115 | |||
116 | /* Alfons Geser <a.geser@cox.net> | ||
117 | * updates from Job D. R. Borges <jobdrb@ig.com.br> */ | ||
118 | static IR_KEYTAB_TYPE eztv_codes[IR_KEYTAB_SIZE] = { | ||
119 | [ 18 ] = KEY_POWER, | ||
120 | [ 1 ] = KEY_TV, // DVR | ||
121 | [ 21 ] = KEY_DVD, // DVD | ||
122 | [ 23 ] = KEY_AUDIO, // music | ||
123 | // DVR mode / DVD mode / music mode | ||
124 | |||
125 | [ 27 ] = KEY_MUTE, // mute | ||
126 | [ 2 ] = KEY_LANGUAGE, // MTS/SAP / audio / autoseek | ||
127 | [ 30 ] = KEY_SUBTITLE, // closed captioning / subtitle / seek | ||
128 | [ 22 ] = KEY_ZOOM, // full screen | ||
129 | [ 28 ] = KEY_VIDEO, // video source / eject / delall | ||
130 | [ 29 ] = KEY_RESTART, // playback / angle / del | ||
131 | [ 47 ] = KEY_SEARCH, // scan / menu / playlist | ||
132 | [ 48 ] = KEY_CHANNEL, // CH surfing / bookmark / memo | ||
133 | |||
134 | [ 49 ] = KEY_HELP, // help | ||
135 | [ 50 ] = KEY_MODE, // num/memo | ||
136 | [ 51 ] = KEY_ESC, // cancel | ||
137 | |||
138 | [ 12 ] = KEY_UP, // up | ||
139 | [ 16 ] = KEY_DOWN, // down | ||
140 | [ 8 ] = KEY_LEFT, // left | ||
141 | [ 4 ] = KEY_RIGHT, // right | ||
142 | [ 3 ] = KEY_SELECT, // select | ||
143 | |||
144 | [ 31 ] = KEY_REWIND, // rewind | ||
145 | [ 32 ] = KEY_PLAYPAUSE, // play/pause | ||
146 | [ 41 ] = KEY_FORWARD, // forward | ||
147 | [ 20 ] = KEY_AGAIN, // repeat | ||
148 | [ 43 ] = KEY_RECORD, // recording | ||
149 | [ 44 ] = KEY_STOP, // stop | ||
150 | [ 45 ] = KEY_PLAY, // play | ||
151 | [ 46 ] = KEY_SHUFFLE, // snapshot / shuffle | ||
152 | |||
153 | [ 0 ] = KEY_KP0, | ||
154 | [ 5 ] = KEY_KP1, | ||
155 | [ 6 ] = KEY_KP2, | ||
156 | [ 7 ] = KEY_KP3, | ||
157 | [ 9 ] = KEY_KP4, | ||
158 | [ 10 ] = KEY_KP5, | ||
159 | [ 11 ] = KEY_KP6, | ||
160 | [ 13 ] = KEY_KP7, | ||
161 | [ 14 ] = KEY_KP8, | ||
162 | [ 15 ] = KEY_KP9, | ||
163 | |||
164 | [ 42 ] = KEY_VOLUMEUP, | ||
165 | [ 17 ] = KEY_VOLUMEDOWN, | ||
166 | [ 24 ] = KEY_CHANNELUP, // CH.tracking up | ||
167 | [ 25 ] = KEY_CHANNELDOWN, // CH.tracking down | ||
168 | |||
169 | [ 19 ] = KEY_KPENTER, // enter | ||
170 | [ 33 ] = KEY_KPDOT, // . (decimal dot) | ||
171 | }; | ||
172 | |||
173 | static IR_KEYTAB_TYPE avacssmart_codes[IR_KEYTAB_SIZE] = { | ||
174 | [ 30 ] = KEY_POWER, // power | ||
175 | [ 28 ] = KEY_SEARCH, // scan | ||
176 | [ 7 ] = KEY_SELECT, // source | ||
177 | |||
178 | [ 22 ] = KEY_VOLUMEUP, | ||
179 | [ 20 ] = KEY_VOLUMEDOWN, | ||
180 | [ 31 ] = KEY_CHANNELUP, | ||
181 | [ 23 ] = KEY_CHANNELDOWN, | ||
182 | [ 24 ] = KEY_MUTE, | ||
183 | |||
184 | [ 2 ] = KEY_KP0, | ||
185 | [ 1 ] = KEY_KP1, | ||
186 | [ 11 ] = KEY_KP2, | ||
187 | [ 27 ] = KEY_KP3, | ||
188 | [ 5 ] = KEY_KP4, | ||
189 | [ 9 ] = KEY_KP5, | ||
190 | [ 21 ] = KEY_KP6, | ||
191 | [ 6 ] = KEY_KP7, | ||
192 | [ 10 ] = KEY_KP8, | ||
193 | [ 18 ] = KEY_KP9, | ||
194 | [ 16 ] = KEY_KPDOT, | ||
195 | |||
196 | [ 3 ] = KEY_TUNER, // tv/fm | ||
197 | [ 4 ] = KEY_REWIND, // fm tuning left or function left | ||
198 | [ 12 ] = KEY_FORWARD, // fm tuning right or function right | ||
199 | |||
200 | [ 0 ] = KEY_RECORD, | ||
201 | [ 8 ] = KEY_STOP, | ||
202 | [ 17 ] = KEY_PLAY, | ||
203 | |||
204 | [ 25 ] = KEY_ZOOM, | ||
205 | [ 14 ] = KEY_MENU, // function | ||
206 | [ 19 ] = KEY_AGAIN, // recall | ||
207 | [ 29 ] = KEY_RESTART, // reset | ||
208 | [ 26 ] = KEY_SHUFFLE, // snapshot/shuffle | ||
209 | |||
210 | // FIXME | ||
211 | [ 13 ] = KEY_F21, // mts | ||
212 | [ 15 ] = KEY_F22, // min | ||
213 | }; | ||
214 | |||
215 | /* Alex Hermann <gaaf@gmx.net> */ | ||
216 | static IR_KEYTAB_TYPE md2819_codes[IR_KEYTAB_SIZE] = { | ||
217 | [ 40 ] = KEY_KP1, | ||
218 | [ 24 ] = KEY_KP2, | ||
219 | [ 56 ] = KEY_KP3, | ||
220 | [ 36 ] = KEY_KP4, | ||
221 | [ 20 ] = KEY_KP5, | ||
222 | [ 52 ] = KEY_KP6, | ||
223 | [ 44 ] = KEY_KP7, | ||
224 | [ 28 ] = KEY_KP8, | ||
225 | [ 60 ] = KEY_KP9, | ||
226 | [ 34 ] = KEY_KP0, | ||
227 | |||
228 | [ 32 ] = KEY_TV, // TV/FM | ||
229 | [ 16 ] = KEY_CD, // CD | ||
230 | [ 48 ] = KEY_TEXT, // TELETEXT | ||
231 | [ 0 ] = KEY_POWER, // POWER | ||
232 | |||
233 | [ 8 ] = KEY_VIDEO, // VIDEO | ||
234 | [ 4 ] = KEY_AUDIO, // AUDIO | ||
235 | [ 12 ] = KEY_ZOOM, // FULL SCREEN | ||
236 | |||
237 | [ 18 ] = KEY_SUBTITLE, // DISPLAY - ??? | ||
238 | [ 50 ] = KEY_REWIND, // LOOP - ??? | ||
239 | [ 2 ] = KEY_PRINT, // PREVIEW - ??? | ||
240 | |||
241 | [ 42 ] = KEY_SEARCH, // AUTOSCAN | ||
242 | [ 26 ] = KEY_SLEEP, // FREEZE - ??? | ||
243 | [ 58 ] = KEY_SHUFFLE, // SNAPSHOT - ??? | ||
244 | [ 10 ] = KEY_MUTE, // MUTE | ||
245 | |||
246 | [ 38 ] = KEY_RECORD, // RECORD | ||
247 | [ 22 ] = KEY_PAUSE, // PAUSE | ||
248 | [ 54 ] = KEY_STOP, // STOP | ||
249 | [ 6 ] = KEY_PLAY, // PLAY | ||
250 | |||
251 | [ 46 ] = KEY_RED, // <RED> | ||
252 | [ 33 ] = KEY_GREEN, // <GREEN> | ||
253 | [ 14 ] = KEY_YELLOW, // <YELLOW> | ||
254 | [ 1 ] = KEY_BLUE, // <BLUE> | ||
255 | |||
256 | [ 30 ] = KEY_VOLUMEDOWN, // VOLUME- | ||
257 | [ 62 ] = KEY_VOLUMEUP, // VOLUME+ | ||
258 | [ 17 ] = KEY_CHANNELDOWN, // CHANNEL/PAGE- | ||
259 | [ 49 ] = KEY_CHANNELUP // CHANNEL/PAGE+ | ||
260 | }; | ||
261 | |||
262 | static IR_KEYTAB_TYPE videomate_tv_pvr_codes[IR_KEYTAB_SIZE] = { | ||
263 | [ 20 ] = KEY_MUTE, | ||
264 | [ 36 ] = KEY_ZOOM, | ||
265 | |||
266 | [ 1 ] = KEY_DVD, | ||
267 | [ 35 ] = KEY_RADIO, | ||
268 | [ 0 ] = KEY_TV, | ||
269 | |||
270 | [ 10 ] = KEY_REWIND, | ||
271 | [ 8 ] = KEY_PLAYPAUSE, | ||
272 | [ 15 ] = KEY_FORWARD, | ||
273 | |||
274 | [ 2 ] = KEY_PREVIOUS, | ||
275 | [ 7 ] = KEY_STOP, | ||
276 | [ 6 ] = KEY_NEXT, | ||
277 | |||
278 | [ 12 ] = KEY_UP, | ||
279 | [ 14 ] = KEY_DOWN, | ||
280 | [ 11 ] = KEY_LEFT, | ||
281 | [ 13 ] = KEY_RIGHT, | ||
282 | [ 17 ] = KEY_OK, | ||
283 | |||
284 | [ 3 ] = KEY_MENU, | ||
285 | [ 9 ] = KEY_SETUP, | ||
286 | [ 5 ] = KEY_VIDEO, | ||
287 | [ 34 ] = KEY_CHANNEL, | ||
288 | |||
289 | [ 18 ] = KEY_VOLUMEUP, | ||
290 | [ 21 ] = KEY_VOLUMEDOWN, | ||
291 | [ 16 ] = KEY_CHANNELUP, | ||
292 | [ 19 ] = KEY_CHANNELDOWN, | ||
293 | |||
294 | [ 4 ] = KEY_RECORD, | ||
295 | |||
296 | [ 22 ] = KEY_KP1, | ||
297 | [ 23 ] = KEY_KP2, | ||
298 | [ 24 ] = KEY_KP3, | ||
299 | [ 25 ] = KEY_KP4, | ||
300 | [ 26 ] = KEY_KP5, | ||
301 | [ 27 ] = KEY_KP6, | ||
302 | [ 28 ] = KEY_KP7, | ||
303 | [ 29 ] = KEY_KP8, | ||
304 | [ 30 ] = KEY_KP9, | ||
305 | [ 31 ] = KEY_KP0, | ||
306 | |||
307 | [ 32 ] = KEY_LANGUAGE, | ||
308 | [ 33 ] = KEY_SLEEP, | ||
309 | }; | ||
310 | |||
311 | /* Michael Tokarev <mjt@tls.msk.ru> | ||
312 | http://www.corpit.ru/mjt/beholdTV/remote_control.jpg | ||
313 | keytable is used by MANLI MTV00[12] and BeholdTV 40[13] at | ||
314 | least, and probably other cards too. | ||
315 | The "ascii-art picture" below (in comments, first row | ||
316 | is the keycode in hex, and subsequent row(s) shows | ||
317 | the button labels (several variants when appropriate) | ||
318 | helps to descide which keycodes to assign to the buttons. | ||
319 | */ | ||
320 | static IR_KEYTAB_TYPE manli_codes[IR_KEYTAB_SIZE] = { | ||
321 | |||
322 | /* 0x1c 0x12 * | ||
323 | * FUNCTION POWER * | ||
324 | * FM (|) * | ||
325 | * */ | ||
326 | [ 0x1c ] = KEY_RADIO, /*XXX*/ | ||
327 | [ 0x12 ] = KEY_POWER, | ||
328 | |||
329 | /* 0x01 0x02 0x03 * | ||
330 | * 1 2 3 * | ||
331 | * * | ||
332 | * 0x04 0x05 0x06 * | ||
333 | * 4 5 6 * | ||
334 | * * | ||
335 | * 0x07 0x08 0x09 * | ||
336 | * 7 8 9 * | ||
337 | * */ | ||
338 | [ 0x01 ] = KEY_KP1, | ||
339 | [ 0x02 ] = KEY_KP2, | ||
340 | [ 0x03 ] = KEY_KP3, | ||
341 | [ 0x04 ] = KEY_KP4, | ||
342 | [ 0x05 ] = KEY_KP5, | ||
343 | [ 0x06 ] = KEY_KP6, | ||
344 | [ 0x07 ] = KEY_KP7, | ||
345 | [ 0x08 ] = KEY_KP8, | ||
346 | [ 0x09 ] = KEY_KP9, | ||
347 | |||
348 | /* 0x0a 0x00 0x17 * | ||
349 | * RECALL 0 +100 * | ||
350 | * PLUS * | ||
351 | * */ | ||
352 | [ 0x0a ] = KEY_AGAIN, /*XXX KEY_REWIND? */ | ||
353 | [ 0x00 ] = KEY_KP0, | ||
354 | [ 0x17 ] = KEY_DIGITS, /*XXX*/ | ||
355 | |||
356 | /* 0x14 0x10 * | ||
357 | * MENU INFO * | ||
358 | * OSD */ | ||
359 | [ 0x14 ] = KEY_MENU, | ||
360 | [ 0x10 ] = KEY_INFO, | ||
361 | |||
362 | /* 0x0b * | ||
363 | * Up * | ||
364 | * * | ||
365 | * 0x18 0x16 0x0c * | ||
366 | * Left Ok Right * | ||
367 | * * | ||
368 | * 0x015 * | ||
369 | * Down * | ||
370 | * */ | ||
371 | [ 0x0b ] = KEY_UP, /*XXX KEY_SCROLLUP? */ | ||
372 | [ 0x18 ] = KEY_LEFT, /*XXX KEY_BACK? */ | ||
373 | [ 0x16 ] = KEY_OK, /*XXX KEY_SELECT? KEY_ENTER? */ | ||
374 | [ 0x0c ] = KEY_RIGHT, /*XXX KEY_FORWARD? */ | ||
375 | [ 0x15 ] = KEY_DOWN, /*XXX KEY_SCROLLDOWN? */ | ||
376 | |||
377 | /* 0x11 0x0d * | ||
378 | * TV/AV MODE * | ||
379 | * SOURCE STEREO * | ||
380 | * */ | ||
381 | [ 0x11 ] = KEY_TV, /*XXX*/ | ||
382 | [ 0x0d ] = KEY_MODE, /*XXX there's no KEY_STEREO */ | ||
383 | |||
384 | /* 0x0f 0x1b 0x1a * | ||
385 | * AUDIO Vol+ Chan+ * | ||
386 | * TIMESHIFT??? * | ||
387 | * * | ||
388 | * 0x0e 0x1f 0x1e * | ||
389 | * SLEEP Vol- Chan- * | ||
390 | * */ | ||
391 | [ 0x0f ] = KEY_AUDIO, | ||
392 | [ 0x1b ] = KEY_VOLUMEUP, | ||
393 | [ 0x1a ] = KEY_CHANNELUP, | ||
394 | [ 0x0e ] = KEY_SLEEP, /*XXX maybe KEY_PAUSE */ | ||
395 | [ 0x1f ] = KEY_VOLUMEDOWN, | ||
396 | [ 0x1e ] = KEY_CHANNELDOWN, | ||
397 | |||
398 | /* 0x13 0x19 * | ||
399 | * MUTE SNAPSHOT* | ||
400 | * */ | ||
401 | [ 0x13 ] = KEY_MUTE, | ||
402 | [ 0x19 ] = KEY_RECORD, /*XXX*/ | ||
403 | |||
404 | // 0x1d unused ? | ||
405 | }; | ||
406 | |||
407 | |||
408 | /* Mike Baikov <mike@baikov.com> */ | ||
409 | static IR_KEYTAB_TYPE gotview7135_codes[IR_KEYTAB_SIZE] = { | ||
410 | |||
411 | [ 33 ] = KEY_POWER, | ||
412 | [ 105] = KEY_TV, | ||
413 | [ 51 ] = KEY_KP0, | ||
414 | [ 81 ] = KEY_KP1, | ||
415 | [ 49 ] = KEY_KP2, | ||
416 | [ 113] = KEY_KP3, | ||
417 | [ 59 ] = KEY_KP4, | ||
418 | [ 88 ] = KEY_KP5, | ||
419 | [ 65 ] = KEY_KP6, | ||
420 | [ 72 ] = KEY_KP7, | ||
421 | [ 48 ] = KEY_KP8, | ||
422 | [ 83 ] = KEY_KP9, | ||
423 | [ 115] = KEY_AGAIN, /* LOOP */ | ||
424 | [ 10 ] = KEY_AUDIO, | ||
425 | [ 97 ] = KEY_PRINT, /* PREVIEW */ | ||
426 | [ 122] = KEY_VIDEO, | ||
427 | [ 32 ] = KEY_CHANNELUP, | ||
428 | [ 64 ] = KEY_CHANNELDOWN, | ||
429 | [ 24 ] = KEY_VOLUMEDOWN, | ||
430 | [ 80 ] = KEY_VOLUMEUP, | ||
431 | [ 16 ] = KEY_MUTE, | ||
432 | [ 74 ] = KEY_SEARCH, | ||
433 | [ 123] = KEY_SHUFFLE, /* SNAPSHOT */ | ||
434 | [ 34 ] = KEY_RECORD, | ||
435 | [ 98 ] = KEY_STOP, | ||
436 | [ 120] = KEY_PLAY, | ||
437 | [ 57 ] = KEY_REWIND, | ||
438 | [ 89 ] = KEY_PAUSE, | ||
439 | [ 25 ] = KEY_FORWARD, | ||
440 | [ 9 ] = KEY_ZOOM, | ||
441 | |||
442 | [ 82 ] = KEY_F21, /* LIVE TIMESHIFT */ | ||
443 | [ 26 ] = KEY_F22, /* MIN TIMESHIFT */ | ||
444 | [ 58 ] = KEY_F23, /* TIMESHIFT */ | ||
445 | [ 112] = KEY_F24, /* NORMAL TIMESHIFT */ | ||
446 | }; | ||
447 | |||
448 | static IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE] = { | ||
449 | [ 0x3 ] = KEY_POWER, | ||
450 | [ 0x6f ] = KEY_MUTE, | ||
451 | [ 0x10 ] = KEY_BACKSPACE, /* Recall */ | ||
452 | |||
453 | [ 0x11 ] = KEY_KP0, | ||
454 | [ 0x4 ] = KEY_KP1, | ||
455 | [ 0x5 ] = KEY_KP2, | ||
456 | [ 0x6 ] = KEY_KP3, | ||
457 | [ 0x8 ] = KEY_KP4, | ||
458 | [ 0x9 ] = KEY_KP5, | ||
459 | [ 0xa ] = KEY_KP6, | ||
460 | [ 0xc ] = KEY_KP7, | ||
461 | [ 0xd ] = KEY_KP8, | ||
462 | [ 0xe ] = KEY_KP9, | ||
463 | [ 0x12 ] = KEY_KPDOT, /* 100+ */ | ||
464 | |||
465 | [ 0x7 ] = KEY_VOLUMEUP, | ||
466 | [ 0xb ] = KEY_VOLUMEDOWN, | ||
467 | [ 0x1a ] = KEY_KPPLUS, | ||
468 | [ 0x18 ] = KEY_KPMINUS, | ||
469 | [ 0x15 ] = KEY_UP, | ||
470 | [ 0x1d ] = KEY_DOWN, | ||
471 | [ 0xf ] = KEY_CHANNELUP, | ||
472 | [ 0x13 ] = KEY_CHANNELDOWN, | ||
473 | [ 0x48 ] = KEY_ZOOM, | ||
474 | |||
475 | [ 0x1b ] = KEY_VIDEO, /* Video source */ | ||
476 | [ 0x49 ] = KEY_LANGUAGE, /* MTS Select */ | ||
477 | [ 0x19 ] = KEY_SEARCH, /* Auto Scan */ | ||
478 | |||
479 | [ 0x4b ] = KEY_RECORD, | ||
480 | [ 0x46 ] = KEY_PLAY, | ||
481 | [ 0x45 ] = KEY_PAUSE, /* Pause */ | ||
482 | [ 0x44 ] = KEY_STOP, | ||
483 | [ 0x40 ] = KEY_FORWARD, /* Forward ? */ | ||
484 | [ 0x42 ] = KEY_REWIND, /* Backward ? */ | ||
485 | |||
486 | }; | ||
487 | |||
488 | /* Mapping for the 28 key remote control as seen at | ||
489 | http://www.sednacomputer.com/photo/cardbus-tv.jpg | ||
490 | Pavel Mihaylov <bin@bash.info> */ | ||
491 | static IR_KEYTAB_TYPE pctv_sedna_codes[IR_KEYTAB_SIZE] = { | ||
492 | [ 0 ] = KEY_KP0, | ||
493 | [ 1 ] = KEY_KP1, | ||
494 | [ 2 ] = KEY_KP2, | ||
495 | [ 3 ] = KEY_KP3, | ||
496 | [ 4 ] = KEY_KP4, | ||
497 | [ 5 ] = KEY_KP5, | ||
498 | [ 6 ] = KEY_KP6, | ||
499 | [ 7 ] = KEY_KP7, | ||
500 | [ 8 ] = KEY_KP8, | ||
501 | [ 9 ] = KEY_KP9, | ||
502 | |||
503 | [ 0x0a ] = KEY_AGAIN, /* Recall */ | ||
504 | [ 0x0b ] = KEY_CHANNELUP, | ||
505 | [ 0x0c ] = KEY_VOLUMEUP, | ||
506 | [ 0x0d ] = KEY_MODE, /* Stereo */ | ||
507 | [ 0x0e ] = KEY_STOP, | ||
508 | [ 0x0f ] = KEY_PREVIOUSSONG, | ||
509 | [ 0x10 ] = KEY_ZOOM, | ||
510 | [ 0x11 ] = KEY_TUNER, /* Source */ | ||
511 | [ 0x12 ] = KEY_POWER, | ||
512 | [ 0x13 ] = KEY_MUTE, | ||
513 | [ 0x15 ] = KEY_CHANNELDOWN, | ||
514 | [ 0x18 ] = KEY_VOLUMEDOWN, | ||
515 | [ 0x19 ] = KEY_SHUFFLE, /* Snapshot */ | ||
516 | [ 0x1a ] = KEY_NEXTSONG, | ||
517 | [ 0x1b ] = KEY_TEXT, /* Time Shift */ | ||
518 | [ 0x1c ] = KEY_RADIO, /* FM Radio */ | ||
519 | [ 0x1d ] = KEY_RECORD, | ||
520 | [ 0x1e ] = KEY_PAUSE, | ||
521 | }; | ||
522 | |||
523 | |||
524 | /* -------------------- GPIO generic keycode builder -------------------- */ | 45 | /* -------------------- GPIO generic keycode builder -------------------- */ |
525 | 46 | ||
526 | static int build_key(struct saa7134_dev *dev) | 47 | static int build_key(struct saa7134_dev *dev) |
@@ -628,27 +149,27 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
628 | case SAA7134_BOARD_FLYVIDEO3000: | 149 | case SAA7134_BOARD_FLYVIDEO3000: |
629 | case SAA7134_BOARD_FLYTVPLATINUM_FM: | 150 | case SAA7134_BOARD_FLYTVPLATINUM_FM: |
630 | case SAA7134_BOARD_FLYTVPLATINUM_MINI2: | 151 | case SAA7134_BOARD_FLYTVPLATINUM_MINI2: |
631 | ir_codes = flyvideo_codes; | 152 | ir_codes = ir_codes_flyvideo; |
632 | mask_keycode = 0xEC00000; | 153 | mask_keycode = 0xEC00000; |
633 | mask_keydown = 0x0040000; | 154 | mask_keydown = 0x0040000; |
634 | break; | 155 | break; |
635 | case SAA7134_BOARD_CINERGY400: | 156 | case SAA7134_BOARD_CINERGY400: |
636 | case SAA7134_BOARD_CINERGY600: | 157 | case SAA7134_BOARD_CINERGY600: |
637 | case SAA7134_BOARD_CINERGY600_MK3: | 158 | case SAA7134_BOARD_CINERGY600_MK3: |
638 | ir_codes = cinergy_codes; | 159 | ir_codes = ir_codes_cinergy; |
639 | mask_keycode = 0x00003f; | 160 | mask_keycode = 0x00003f; |
640 | mask_keyup = 0x040000; | 161 | mask_keyup = 0x040000; |
641 | break; | 162 | break; |
642 | case SAA7134_BOARD_ECS_TVP3XP: | 163 | case SAA7134_BOARD_ECS_TVP3XP: |
643 | case SAA7134_BOARD_ECS_TVP3XP_4CB5: | 164 | case SAA7134_BOARD_ECS_TVP3XP_4CB5: |
644 | ir_codes = eztv_codes; | 165 | ir_codes = ir_codes_eztv; |
645 | mask_keycode = 0x00017c; | 166 | mask_keycode = 0x00017c; |
646 | mask_keyup = 0x000002; | 167 | mask_keyup = 0x000002; |
647 | polling = 50; // ms | 168 | polling = 50; // ms |
648 | break; | 169 | break; |
649 | case SAA7134_BOARD_KWORLD_XPERT: | 170 | case SAA7134_BOARD_KWORLD_XPERT: |
650 | case SAA7134_BOARD_AVACSSMARTTV: | 171 | case SAA7134_BOARD_AVACSSMARTTV: |
651 | ir_codes = avacssmart_codes; | 172 | ir_codes = ir_codes_avacssmart; |
652 | mask_keycode = 0x00001F; | 173 | mask_keycode = 0x00001F; |
653 | mask_keyup = 0x000020; | 174 | mask_keyup = 0x000020; |
654 | polling = 50; // ms | 175 | polling = 50; // ms |
@@ -660,7 +181,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
660 | case SAA7134_BOARD_AVERMEDIA_STUDIO_305: | 181 | case SAA7134_BOARD_AVERMEDIA_STUDIO_305: |
661 | case SAA7134_BOARD_AVERMEDIA_STUDIO_307: | 182 | case SAA7134_BOARD_AVERMEDIA_STUDIO_307: |
662 | case SAA7134_BOARD_AVERMEDIA_GO_007_FM: | 183 | case SAA7134_BOARD_AVERMEDIA_GO_007_FM: |
663 | ir_codes = md2819_codes; | 184 | ir_codes = ir_codes_md2819; |
664 | mask_keycode = 0x0007C8; | 185 | mask_keycode = 0x0007C8; |
665 | mask_keydown = 0x000010; | 186 | mask_keydown = 0x000010; |
666 | polling = 50; // ms | 187 | polling = 50; // ms |
@@ -669,7 +190,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
669 | saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4); | 190 | saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4); |
670 | break; | 191 | break; |
671 | case SAA7134_BOARD_KWORLD_TERMINATOR: | 192 | case SAA7134_BOARD_KWORLD_TERMINATOR: |
672 | ir_codes = avacssmart_codes; | 193 | ir_codes = ir_codes_avacssmart; |
673 | mask_keycode = 0x00001f; | 194 | mask_keycode = 0x00001f; |
674 | mask_keyup = 0x000060; | 195 | mask_keyup = 0x000060; |
675 | polling = 50; // ms | 196 | polling = 50; // ms |
@@ -677,19 +198,19 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
677 | case SAA7134_BOARD_MANLI_MTV001: | 198 | case SAA7134_BOARD_MANLI_MTV001: |
678 | case SAA7134_BOARD_MANLI_MTV002: | 199 | case SAA7134_BOARD_MANLI_MTV002: |
679 | case SAA7134_BOARD_BEHOLD_409FM: | 200 | case SAA7134_BOARD_BEHOLD_409FM: |
680 | ir_codes = manli_codes; | 201 | ir_codes = ir_codes_manli; |
681 | mask_keycode = 0x001f00; | 202 | mask_keycode = 0x001f00; |
682 | mask_keyup = 0x004000; | 203 | mask_keyup = 0x004000; |
683 | polling = 50; // ms | 204 | polling = 50; // ms |
684 | break; | 205 | break; |
685 | case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS: | 206 | case SAA7134_BOARD_SEDNA_PC_TV_CARDBUS: |
686 | ir_codes = pctv_sedna_codes; | 207 | ir_codes = ir_codes_pctv_sedna; |
687 | mask_keycode = 0x001f00; | 208 | mask_keycode = 0x001f00; |
688 | mask_keyup = 0x004000; | 209 | mask_keyup = 0x004000; |
689 | polling = 50; // ms | 210 | polling = 50; // ms |
690 | break; | 211 | break; |
691 | case SAA7134_BOARD_GOTVIEW_7135: | 212 | case SAA7134_BOARD_GOTVIEW_7135: |
692 | ir_codes = gotview7135_codes; | 213 | ir_codes = ir_codes_gotview7135; |
693 | mask_keycode = 0x0003EC; | 214 | mask_keycode = 0x0003EC; |
694 | mask_keyup = 0x008000; | 215 | mask_keyup = 0x008000; |
695 | mask_keydown = 0x000010; | 216 | mask_keydown = 0x000010; |
@@ -698,14 +219,14 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
698 | case SAA7134_BOARD_VIDEOMATE_TV_PVR: | 219 | case SAA7134_BOARD_VIDEOMATE_TV_PVR: |
699 | case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS: | 220 | case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS: |
700 | case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: | 221 | case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: |
701 | ir_codes = videomate_tv_pvr_codes; | 222 | ir_codes = ir_codes_videomate_tv_pvr; |
702 | mask_keycode = 0x00003F; | 223 | mask_keycode = 0x00003F; |
703 | mask_keyup = 0x400000; | 224 | mask_keyup = 0x400000; |
704 | polling = 50; // ms | 225 | polling = 50; // ms |
705 | break; | 226 | break; |
706 | case SAA7134_BOARD_VIDEOMATE_DVBT_300: | 227 | case SAA7134_BOARD_VIDEOMATE_DVBT_300: |
707 | case SAA7134_BOARD_VIDEOMATE_DVBT_200: | 228 | case SAA7134_BOARD_VIDEOMATE_DVBT_200: |
708 | ir_codes = videomate_tv_pvr_codes; | 229 | ir_codes = ir_codes_videomate_tv_pvr; |
709 | mask_keycode = 0x003F00; | 230 | mask_keycode = 0x003F00; |
710 | mask_keyup = 0x040000; | 231 | mask_keyup = 0x040000; |
711 | break; | 232 | break; |