Lines Matching +full:0 +full:x240
29 module_param(ibm_netcam_pro, int, 0);
44 #define CIT_MODEL0 0 /* bcd version 0.01 cams ie the xvp-500 */
125 {0, 0x0000, 0x010c},
126 {0, 0x0006, 0x012c},
127 {0, 0x0078, 0x012d},
128 {0, 0x0046, 0x012f},
129 {0, 0xd141, 0x0124},
130 {0, 0x0000, 0x0127},
131 {0, 0xfea8, 0x0124},
132 {1, 0x0000, 0x0116},
133 {0, 0x0064, 0x0116},
134 {1, 0x0000, 0x0115},
135 {0, 0x0003, 0x0115},
136 {0, 0x0008, 0x0123},
137 {0, 0x0000, 0x0117},
138 {0, 0x0000, 0x0112},
139 {0, 0x0080, 0x0100},
140 {0, 0x0000, 0x0100},
141 {1, 0x0000, 0x0116},
142 {0, 0x0060, 0x0116},
143 {0, 0x0002, 0x0112},
144 {0, 0x0000, 0x0123},
145 {0, 0x0001, 0x0117},
146 {0, 0x0040, 0x0108},
147 {0, 0x0019, 0x012c},
148 {0, 0x0040, 0x0116},
149 {0, 0x000a, 0x0115},
150 {0, 0x000b, 0x0115},
151 {0, 0x0078, 0x012d},
152 {0, 0x0046, 0x012f},
153 {0, 0xd141, 0x0124},
154 {0, 0x0000, 0x0127},
155 {0, 0xfea8, 0x0124},
156 {0, 0x0064, 0x0116},
157 {0, 0x0000, 0x0115},
158 {0, 0x0001, 0x0115},
159 {0, 0xffff, 0x0124},
160 {0, 0xfff9, 0x0124},
161 {0, 0x0086, 0x0127},
162 {0, 0xfff8, 0x0124},
163 {0, 0xfffd, 0x0124},
164 {0, 0x00aa, 0x0127},
165 {0, 0xfff8, 0x0124},
166 {0, 0xfffd, 0x0124},
167 {0, 0x0000, 0x0127},
168 {0, 0xfff8, 0x0124},
169 {0, 0xfffd, 0x0124},
170 {0, 0xfffa, 0x0124},
171 {0, 0xffff, 0x0124},
172 {0, 0xfff9, 0x0124},
173 {0, 0x0086, 0x0127},
174 {0, 0xfff8, 0x0124},
175 {0, 0xfffd, 0x0124},
176 {0, 0x00f2, 0x0127},
177 {0, 0xfff8, 0x0124},
178 {0, 0xfffd, 0x0124},
179 {0, 0x000f, 0x0127},
180 {0, 0xfff8, 0x0124},
181 {0, 0xfffd, 0x0124},
182 {0, 0xfffa, 0x0124},
183 {0, 0xffff, 0x0124},
184 {0, 0xfff9, 0x0124},
185 {0, 0x0086, 0x0127},
186 {0, 0xfff8, 0x0124},
187 {0, 0xfffd, 0x0124},
188 {0, 0x00f8, 0x0127},
189 {0, 0xfff8, 0x0124},
190 {0, 0xfffd, 0x0124},
191 {0, 0x00fc, 0x0127},
192 {0, 0xfff8, 0x0124},
193 {0, 0xfffd, 0x0124},
194 {0, 0xfffa, 0x0124},
195 {0, 0xffff, 0x0124},
196 {0, 0xfff9, 0x0124},
197 {0, 0x0086, 0x0127},
198 {0, 0xfff8, 0x0124},
199 {0, 0xfffd, 0x0124},
200 {0, 0x00f9, 0x0127},
201 {0, 0xfff8, 0x0124},
202 {0, 0xfffd, 0x0124},
203 {0, 0x003c, 0x0127},
204 {0, 0xfff8, 0x0124},
205 {0, 0xfffd, 0x0124},
206 {0, 0xfffa, 0x0124},
207 {0, 0xffff, 0x0124},
208 {0, 0xfff9, 0x0124},
209 {0, 0x0086, 0x0127},
210 {0, 0xfff8, 0x0124},
211 {0, 0xfffd, 0x0124},
212 {0, 0x0027, 0x0127},
213 {0, 0xfff8, 0x0124},
214 {0, 0xfffd, 0x0124},
215 {0, 0x0019, 0x0127},
216 {0, 0xfff8, 0x0124},
217 {0, 0xfffd, 0x0124},
218 {0, 0xfffa, 0x0124},
219 {0, 0xfff9, 0x0124},
220 {0, 0x0086, 0x0127},
221 {0, 0xfff8, 0x0124},
222 {0, 0xfffd, 0x0124},
223 {0, 0x0037, 0x0127},
224 {0, 0xfff8, 0x0124},
225 {0, 0xfffd, 0x0124},
226 {0, 0x0000, 0x0127},
227 {0, 0xfff8, 0x0124},
228 {0, 0xfffd, 0x0124},
229 {0, 0x0021, 0x0127},
230 {0, 0xfff8, 0x0124},
231 {0, 0xfffd, 0x0124},
232 {0, 0xfffa, 0x0124},
233 {0, 0xfff9, 0x0124},
234 {0, 0x0086, 0x0127},
235 {0, 0xfff8, 0x0124},
236 {0, 0xfffd, 0x0124},
237 {0, 0x0038, 0x0127},
238 {0, 0xfff8, 0x0124},
239 {0, 0xfffd, 0x0124},
240 {0, 0x0006, 0x0127},
241 {0, 0xfff8, 0x0124},
242 {0, 0xfffd, 0x0124},
243 {0, 0x0045, 0x0127},
244 {0, 0xfff8, 0x0124},
245 {0, 0xfffd, 0x0124},
246 {0, 0xfffa, 0x0124},
247 {0, 0xfff9, 0x0124},
248 {0, 0x0086, 0x0127},
249 {0, 0xfff8, 0x0124},
250 {0, 0xfffd, 0x0124},
251 {0, 0x0037, 0x0127},
252 {0, 0xfff8, 0x0124},
253 {0, 0xfffd, 0x0124},
254 {0, 0x0001, 0x0127},
255 {0, 0xfff8, 0x0124},
256 {0, 0xfffd, 0x0124},
257 {0, 0x002a, 0x0127},
258 {0, 0xfff8, 0x0124},
259 {0, 0xfffd, 0x0124},
260 {0, 0xfffa, 0x0124},
261 {0, 0xfff9, 0x0124},
262 {0, 0x0086, 0x0127},
263 {0, 0xfff8, 0x0124},
264 {0, 0xfffd, 0x0124},
265 {0, 0x0038, 0x0127},
266 {0, 0xfff8, 0x0124},
267 {0, 0xfffd, 0x0124},
268 {0, 0x0000, 0x0127},
269 {0, 0xfff8, 0x0124},
270 {0, 0xfffd, 0x0124},
271 {0, 0x000e, 0x0127},
272 {0, 0xfff8, 0x0124},
273 {0, 0xfffd, 0x0124},
274 {0, 0xfffa, 0x0124},
275 {0, 0xfff9, 0x0124},
276 {0, 0x0086, 0x0127},
277 {0, 0xfff8, 0x0124},
278 {0, 0xfffd, 0x0124},
279 {0, 0x0037, 0x0127},
280 {0, 0xfff8, 0x0124},
281 {0, 0xfffd, 0x0124},
282 {0, 0x0001, 0x0127},
283 {0, 0xfff8, 0x0124},
284 {0, 0xfffd, 0x0124},
285 {0, 0x002b, 0x0127},
286 {0, 0xfff8, 0x0124},
287 {0, 0xfffd, 0x0124},
288 {0, 0xfffa, 0x0124},
289 {0, 0xfff9, 0x0124},
290 {0, 0x0086, 0x0127},
291 {0, 0xfff8, 0x0124},
292 {0, 0xfffd, 0x0124},
293 {0, 0x0038, 0x0127},
294 {0, 0xfff8, 0x0124},
295 {0, 0xfffd, 0x0124},
296 {0, 0x0001, 0x0127},
297 {0, 0xfff8, 0x0124},
298 {0, 0xfffd, 0x0124},
299 {0, 0x00f4, 0x0127},
300 {0, 0xfff8, 0x0124},
301 {0, 0xfffd, 0x0124},
302 {0, 0xfffa, 0x0124},
303 {0, 0xfff9, 0x0124},
304 {0, 0x0086, 0x0127},
305 {0, 0xfff8, 0x0124},
306 {0, 0xfffd, 0x0124},
307 {0, 0x0037, 0x0127},
308 {0, 0xfff8, 0x0124},
309 {0, 0xfffd, 0x0124},
310 {0, 0x0001, 0x0127},
311 {0, 0xfff8, 0x0124},
312 {0, 0xfffd, 0x0124},
313 {0, 0x002c, 0x0127},
314 {0, 0xfff8, 0x0124},
315 {0, 0xfffd, 0x0124},
316 {0, 0xfffa, 0x0124},
317 {0, 0xfff9, 0x0124},
318 {0, 0x0086, 0x0127},
319 {0, 0xfff8, 0x0124},
320 {0, 0xfffd, 0x0124},
321 {0, 0x0038, 0x0127},
322 {0, 0xfff8, 0x0124},
323 {0, 0xfffd, 0x0124},
324 {0, 0x0001, 0x0127},
325 {0, 0xfff8, 0x0124},
326 {0, 0xfffd, 0x0124},
327 {0, 0x0004, 0x0127},
328 {0, 0xfff8, 0x0124},
329 {0, 0xfffd, 0x0124},
330 {0, 0xfffa, 0x0124},
331 {0, 0xfff9, 0x0124},
332 {0, 0x0086, 0x0127},
333 {0, 0xfff8, 0x0124},
334 {0, 0xfffd, 0x0124},
335 {0, 0x0037, 0x0127},
336 {0, 0xfff8, 0x0124},
337 {0, 0xfffd, 0x0124},
338 {0, 0x0001, 0x0127},
339 {0, 0xfff8, 0x0124},
340 {0, 0xfffd, 0x0124},
341 {0, 0x002d, 0x0127},
342 {0, 0xfff8, 0x0124},
343 {0, 0xfffd, 0x0124},
344 {0, 0xfffa, 0x0124},
345 {0, 0xfff9, 0x0124},
346 {0, 0x0086, 0x0127},
347 {0, 0xfff8, 0x0124},
348 {0, 0xfffd, 0x0124},
349 {0, 0x0038, 0x0127},
350 {0, 0xfff8, 0x0124},
351 {0, 0xfffd, 0x0124},
352 {0, 0x0000, 0x0127},
353 {0, 0xfff8, 0x0124},
354 {0, 0xfffd, 0x0124},
355 {0, 0x0014, 0x0127},
356 {0, 0xfff8, 0x0124},
357 {0, 0xfffd, 0x0124},
358 {0, 0xfffa, 0x0124},
359 {0, 0xfff9, 0x0124},
360 {0, 0x0086, 0x0127},
361 {0, 0xfff8, 0x0124},
362 {0, 0xfffd, 0x0124},
363 {0, 0x0037, 0x0127},
364 {0, 0xfff8, 0x0124},
365 {0, 0xfffd, 0x0124},
366 {0, 0x0001, 0x0127},
367 {0, 0xfff8, 0x0124},
368 {0, 0xfffd, 0x0124},
369 {0, 0x002e, 0x0127},
370 {0, 0xfff8, 0x0124},
371 {0, 0xfffd, 0x0124},
372 {0, 0xfffa, 0x0124},
373 {0, 0xfff9, 0x0124},
374 {0, 0x0086, 0x0127},
375 {0, 0xfff8, 0x0124},
376 {0, 0xfffd, 0x0124},
377 {0, 0x0038, 0x0127},
378 {0, 0xfff8, 0x0124},
379 {0, 0xfffd, 0x0124},
380 {0, 0x0003, 0x0127},
381 {0, 0xfff8, 0x0124},
382 {0, 0xfffd, 0x0124},
383 {0, 0x0000, 0x0127},
384 {0, 0xfff8, 0x0124},
385 {0, 0xfffd, 0x0124},
386 {0, 0xfffa, 0x0124},
387 {0, 0xfff9, 0x0124},
388 {0, 0x0086, 0x0127},
389 {0, 0xfff8, 0x0124},
390 {0, 0xfffd, 0x0124},
391 {0, 0x0037, 0x0127},
392 {0, 0xfff8, 0x0124},
393 {0, 0xfffd, 0x0124},
394 {0, 0x0001, 0x0127},
395 {0, 0xfff8, 0x0124},
396 {0, 0xfffd, 0x0124},
397 {0, 0x002f, 0x0127},
398 {0, 0xfff8, 0x0124},
399 {0, 0xfffd, 0x0124},
400 {0, 0xfffa, 0x0124},
401 {0, 0xfff9, 0x0124},
402 {0, 0x0086, 0x0127},
403 {0, 0xfff8, 0x0124},
404 {0, 0xfffd, 0x0124},
405 {0, 0x0038, 0x0127},
406 {0, 0xfff8, 0x0124},
407 {0, 0xfffd, 0x0124},
408 {0, 0x0003, 0x0127},
409 {0, 0xfff8, 0x0124},
410 {0, 0xfffd, 0x0124},
411 {0, 0x0014, 0x0127},
412 {0, 0xfff8, 0x0124},
413 {0, 0xfffd, 0x0124},
414 {0, 0xfffa, 0x0124},
415 {0, 0xfff9, 0x0124},
416 {0, 0x0086, 0x0127},
417 {0, 0xfff8, 0x0124},
418 {0, 0xfffd, 0x0124},
419 {0, 0x0037, 0x0127},
420 {0, 0xfff8, 0x0124},
421 {0, 0xfffd, 0x0124},
422 {0, 0x0001, 0x0127},
423 {0, 0xfff8, 0x0124},
424 {0, 0xfffd, 0x0124},
425 {0, 0x0040, 0x0127},
426 {0, 0xfff8, 0x0124},
427 {0, 0xfffd, 0x0124},
428 {0, 0xfffa, 0x0124},
429 {0, 0xfff9, 0x0124},
430 {0, 0x0086, 0x0127},
431 {0, 0xfff8, 0x0124},
432 {0, 0xfffd, 0x0124},
433 {0, 0x0038, 0x0127},
434 {0, 0xfff8, 0x0124},
435 {0, 0xfffd, 0x0124},
436 {0, 0x0000, 0x0127},
437 {0, 0xfff8, 0x0124},
438 {0, 0xfffd, 0x0124},
439 {0, 0x0040, 0x0127},
440 {0, 0xfff8, 0x0124},
441 {0, 0xfffd, 0x0124},
442 {0, 0xfffa, 0x0124},
443 {0, 0xfff9, 0x0124},
444 {0, 0x0086, 0x0127},
445 {0, 0xfff8, 0x0124},
446 {0, 0xfffd, 0x0124},
447 {0, 0x0037, 0x0127},
448 {0, 0xfff8, 0x0124},
449 {0, 0xfffd, 0x0124},
450 {0, 0x0001, 0x0127},
451 {0, 0xfff8, 0x0124},
452 {0, 0xfffd, 0x0124},
453 {0, 0x0053, 0x0127},
454 {0, 0xfff8, 0x0124},
455 {0, 0xfffd, 0x0124},
456 {0, 0xfffa, 0x0124},
457 {0, 0xfff9, 0x0124},
458 {0, 0x0086, 0x0127},
459 {0, 0xfff8, 0x0124},
460 {0, 0xfffd, 0x0124},
461 {0, 0x0038, 0x0127},
462 {0, 0xfff8, 0x0124},
463 {0, 0xfffd, 0x0124},
464 {0, 0x0000, 0x0127},
465 {0, 0xfff8, 0x0124},
466 {0, 0xfffd, 0x0124},
467 {0, 0x0038, 0x0127},
468 {0, 0xfff8, 0x0124},
469 {0, 0xfffd, 0x0124},
470 {0, 0xfffa, 0x0124},
471 {0, 0x0000, 0x0101},
472 {0, 0x00a0, 0x0103},
473 {0, 0x0078, 0x0105},
474 {0, 0x0000, 0x010a},
475 {0, 0x0024, 0x010b},
476 {0, 0x0028, 0x0119},
477 {0, 0x0088, 0x011b},
478 {0, 0x0002, 0x011d},
479 {0, 0x0003, 0x011e},
480 {0, 0x0000, 0x0129},
481 {0, 0x00fc, 0x012b},
482 {0, 0x0008, 0x0102},
483 {0, 0x0000, 0x0104},
484 {0, 0x0008, 0x011a},
485 {0, 0x0028, 0x011c},
486 {0, 0x0021, 0x012a},
487 {0, 0x0000, 0x0118},
488 {0, 0x0000, 0x0132},
489 {0, 0x0000, 0x0109},
490 {0, 0xfff9, 0x0124},
491 {0, 0x0086, 0x0127},
492 {0, 0xfff8, 0x0124},
493 {0, 0xfffd, 0x0124},
494 {0, 0x0037, 0x0127},
495 {0, 0xfff8, 0x0124},
496 {0, 0xfffd, 0x0124},
497 {0, 0x0001, 0x0127},
498 {0, 0xfff8, 0x0124},
499 {0, 0xfffd, 0x0124},
500 {0, 0x0031, 0x0127},
501 {0, 0xfff8, 0x0124},
502 {0, 0xfffd, 0x0124},
503 {0, 0xfffa, 0x0124},
504 {0, 0xfff9, 0x0124},
505 {0, 0x0086, 0x0127},
506 {0, 0xfff8, 0x0124},
507 {0, 0xfffd, 0x0124},
508 {0, 0x0038, 0x0127},
509 {0, 0xfff8, 0x0124},
510 {0, 0xfffd, 0x0124},
511 {0, 0x0000, 0x0127},
512 {0, 0xfff8, 0x0124},
513 {0, 0xfffd, 0x0124},
514 {0, 0x0000, 0x0127},
515 {0, 0xfff8, 0x0124},
516 {0, 0xfffd, 0x0124},
517 {0, 0xfffa, 0x0124},
518 {0, 0xfff9, 0x0124},
519 {0, 0x0086, 0x0127},
520 {0, 0xfff8, 0x0124},
521 {0, 0xfffd, 0x0124},
522 {0, 0x0037, 0x0127},
523 {0, 0xfff8, 0x0124},
524 {0, 0xfffd, 0x0124},
525 {0, 0x0001, 0x0127},
526 {0, 0xfff8, 0x0124},
527 {0, 0xfffd, 0x0124},
528 {0, 0x0040, 0x0127},
529 {0, 0xfff8, 0x0124},
530 {0, 0xfffd, 0x0124},
531 {0, 0xfffa, 0x0124},
532 {0, 0xfff9, 0x0124},
533 {0, 0x0086, 0x0127},
534 {0, 0xfff8, 0x0124},
535 {0, 0xfffd, 0x0124},
536 {0, 0x0038, 0x0127},
537 {0, 0xfff8, 0x0124},
538 {0, 0xfffd, 0x0124},
539 {0, 0x0000, 0x0127},
540 {0, 0xfff8, 0x0124},
541 {0, 0xfffd, 0x0124},
542 {0, 0x0040, 0x0127},
543 {0, 0xfff8, 0x0124},
544 {0, 0xfffd, 0x0124},
545 {0, 0xfffa, 0x0124},
546 {0, 0xfff9, 0x0124},
547 {0, 0x0086, 0x0127},
548 {0, 0xfff8, 0x0124},
549 {0, 0xfffd, 0x0124},
550 {0, 0x0037, 0x0127},
551 {0, 0xfff8, 0x0124},
552 {0, 0xfffd, 0x0124},
553 {0, 0x0000, 0x0127},
554 {0, 0xfff8, 0x0124},
555 {0, 0xfffd, 0x0124},
556 {0, 0x00dc, 0x0127},
557 {0, 0xfff8, 0x0124},
558 {0, 0xfffd, 0x0124},
559 {0, 0xfffa, 0x0124},
560 {0, 0xfff9, 0x0124},
561 {0, 0x0086, 0x0127},
562 {0, 0xfff8, 0x0124},
563 {0, 0xfffd, 0x0124},
564 {0, 0x0038, 0x0127},
565 {0, 0xfff8, 0x0124},
566 {0, 0xfffd, 0x0124},
567 {0, 0x0000, 0x0127},
568 {0, 0xfff8, 0x0124},
569 {0, 0xfffd, 0x0124},
570 {0, 0x0000, 0x0127},
571 {0, 0xfff8, 0x0124},
572 {0, 0xfffd, 0x0124},
573 {0, 0xfffa, 0x0124},
574 {0, 0xfff9, 0x0124},
575 {0, 0x0086, 0x0127},
576 {0, 0xfff8, 0x0124},
577 {0, 0xfffd, 0x0124},
578 {0, 0x0037, 0x0127},
579 {0, 0xfff8, 0x0124},
580 {0, 0xfffd, 0x0124},
581 {0, 0x0001, 0x0127},
582 {0, 0xfff8, 0x0124},
583 {0, 0xfffd, 0x0124},
584 {0, 0x0032, 0x0127},
585 {0, 0xfff8, 0x0124},
586 {0, 0xfffd, 0x0124},
587 {0, 0xfffa, 0x0124},
588 {0, 0xfff9, 0x0124},
589 {0, 0x0086, 0x0127},
590 {0, 0xfff8, 0x0124},
591 {0, 0xfffd, 0x0124},
592 {0, 0x0038, 0x0127},
593 {0, 0xfff8, 0x0124},
594 {0, 0xfffd, 0x0124},
595 {0, 0x0001, 0x0127},
596 {0, 0xfff8, 0x0124},
597 {0, 0xfffd, 0x0124},
598 {0, 0x0020, 0x0127},
599 {0, 0xfff8, 0x0124},
600 {0, 0xfffd, 0x0124},
601 {0, 0xfffa, 0x0124},
602 {0, 0xfff9, 0x0124},
603 {0, 0x0086, 0x0127},
604 {0, 0xfff8, 0x0124},
605 {0, 0xfffd, 0x0124},
606 {0, 0x0037, 0x0127},
607 {0, 0xfff8, 0x0124},
608 {0, 0xfffd, 0x0124},
609 {0, 0x0001, 0x0127},
610 {0, 0xfff8, 0x0124},
611 {0, 0xfffd, 0x0124},
612 {0, 0x0040, 0x0127},
613 {0, 0xfff8, 0x0124},
614 {0, 0xfffd, 0x0124},
615 {0, 0xfffa, 0x0124},
616 {0, 0xfff9, 0x0124},
617 {0, 0x0086, 0x0127},
618 {0, 0xfff8, 0x0124},
619 {0, 0xfffd, 0x0124},
620 {0, 0x0038, 0x0127},
621 {0, 0xfff8, 0x0124},
622 {0, 0xfffd, 0x0124},
623 {0, 0x0000, 0x0127},
624 {0, 0xfff8, 0x0124},
625 {0, 0xfffd, 0x0124},
626 {0, 0x0040, 0x0127},
627 {0, 0xfff8, 0x0124},
628 {0, 0xfffd, 0x0124},
629 {0, 0xfffa, 0x0124},
630 {0, 0xfff9, 0x0124},
631 {0, 0x0086, 0x0127},
632 {0, 0xfff8, 0x0124},
633 {0, 0xfffd, 0x0124},
634 {0, 0x0037, 0x0127},
635 {0, 0xfff8, 0x0124},
636 {0, 0xfffd, 0x0124},
637 {0, 0x0000, 0x0127},
638 {0, 0xfff8, 0x0124},
639 {0, 0xfffd, 0x0124},
640 {0, 0x0030, 0x0127},
641 {0, 0xfff8, 0x0124},
642 {0, 0xfffd, 0x0124},
643 {0, 0xfffa, 0x0124},
644 {0, 0xfff9, 0x0124},
645 {0, 0x0086, 0x0127},
646 {0, 0xfff8, 0x0124},
647 {0, 0xfffd, 0x0124},
648 {0, 0x0038, 0x0127},
649 {0, 0xfff8, 0x0124},
650 {0, 0xfffd, 0x0124},
651 {0, 0x0008, 0x0127},
652 {0, 0xfff8, 0x0124},
653 {0, 0xfffd, 0x0124},
654 {0, 0x0000, 0x0127},
655 {0, 0xfff8, 0x0124},
656 {0, 0xfffd, 0x0124},
657 {0, 0xfffa, 0x0124},
658 {0, 0x0003, 0x0111},
671 err = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x00, in cit_write_reg()
673 value, index, NULL, 0, 1000); in cit_write_reg()
674 if (err < 0) in cit_write_reg()
675 pr_err("Failed to write a register (index 0x%04X, value 0x%02X, error %d)\n", in cit_write_reg()
678 return 0; in cit_write_reg()
687 res = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), 0x01, in cit_read_reg()
689 0x00, index, buf, 8, 1000); in cit_read_reg()
690 if (res < 0) { in cit_read_reg()
691 pr_err("Failed to read a register (index 0x%04X, error %d)\n", in cit_read_reg()
698 index, buf[0]); in cit_read_reg()
700 return 0; in cit_read_reg()
714 cit_write_reg(gspca_dev, 0x00FF, 0x0127); in cit_send_FF_04_02()
715 cit_write_reg(gspca_dev, 0x0004, 0x0124); in cit_send_FF_04_02()
716 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_FF_04_02()
721 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_send_00_04_06()
722 cit_write_reg(gspca_dev, 0x0004, 0x0124); in cit_send_00_04_06()
723 cit_write_reg(gspca_dev, 0x0006, 0x0124); in cit_send_00_04_06()
728 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00()
729 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00()
735 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05()
740 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02()
741 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02()
742 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02()
743 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02()
748 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_01_00_05()
749 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_01_00_05()
750 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_01_00_05()
751 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_01_00_05()
756 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02_01()
757 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02_01()
758 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02_01()
759 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02_01()
760 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_00_05_02_01()
765 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02_08_01()
766 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02_08_01()
767 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02_08_01()
768 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02_08_01()
769 cit_write_reg(gspca_dev, 0x0008, 0x0124); in cit_send_x_00_05_02_08_01()
770 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_00_05_02_08_01()
775 cit_send_x_01_00_05(gspca_dev, 0x0088); in cit_Packet_Format1()
778 cit_send_x_00_05(gspca_dev, 0x0088); in cit_Packet_Format1()
780 cit_send_x_00_05(gspca_dev, 0x0089); in cit_Packet_Format1()
783 cit_read_reg(gspca_dev, 0x0126, 0); in cit_Packet_Format1()
789 cit_send_x_01_00_05(gspca_dev, 0x0088); in cit_PacketFormat2()
796 cit_write_reg(gspca_dev, 0x00ff, 0x012d); in cit_model2_Packet2()
797 cit_write_reg(gspca_dev, 0xfea3, 0x0124); in cit_model2_Packet2()
802 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model2_Packet1()
803 cit_write_reg(gspca_dev, 0x00ff, 0x012e); in cit_model2_Packet1()
804 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model2_Packet1()
805 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_model2_Packet1()
806 cit_write_reg(gspca_dev, 0xc719, 0x0124); in cit_model2_Packet1()
807 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model2_Packet1()
823 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_model3_Packet1()
824 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model3_Packet1()
825 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model3_Packet1()
826 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model3_Packet1()
827 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_model3_Packet1()
832 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model4_Packet1()
833 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model4_Packet1()
834 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model4_Packet1()
835 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model4_Packet1()
836 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_model4_Packet1()
841 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model4_BrightnessPacket()
842 cit_write_reg(gspca_dev, 0x0026, 0x012f); in cit_model4_BrightnessPacket()
843 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model4_BrightnessPacket()
844 cit_write_reg(gspca_dev, val, 0x0127); in cit_model4_BrightnessPacket()
845 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_model4_BrightnessPacket()
846 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_model4_BrightnessPacket()
847 cit_write_reg(gspca_dev, 0x0038, 0x012d); in cit_model4_BrightnessPacket()
848 cit_write_reg(gspca_dev, 0x0004, 0x012f); in cit_model4_BrightnessPacket()
849 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_model4_BrightnessPacket()
850 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_model4_BrightnessPacket()
899 return 0; in sd_config()
904 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* turn on led */ in cit_init_model0()
905 cit_write_reg(gspca_dev, 0x0001, 0x0112); /* turn on autogain ? */ in cit_init_model0()
906 cit_write_reg(gspca_dev, 0x0000, 0x0400); in cit_init_model0()
907 cit_write_reg(gspca_dev, 0x0001, 0x0400); in cit_init_model0()
908 cit_write_reg(gspca_dev, 0x0000, 0x0420); in cit_init_model0()
909 cit_write_reg(gspca_dev, 0x0001, 0x0420); in cit_init_model0()
910 cit_write_reg(gspca_dev, 0x000d, 0x0409); in cit_init_model0()
911 cit_write_reg(gspca_dev, 0x0002, 0x040a); in cit_init_model0()
912 cit_write_reg(gspca_dev, 0x0018, 0x0405); in cit_init_model0()
913 cit_write_reg(gspca_dev, 0x0008, 0x0435); in cit_init_model0()
914 cit_write_reg(gspca_dev, 0x0026, 0x040b); in cit_init_model0()
915 cit_write_reg(gspca_dev, 0x0007, 0x0437); in cit_init_model0()
916 cit_write_reg(gspca_dev, 0x0015, 0x042f); in cit_init_model0()
917 cit_write_reg(gspca_dev, 0x002b, 0x0439); in cit_init_model0()
918 cit_write_reg(gspca_dev, 0x0026, 0x043a); in cit_init_model0()
919 cit_write_reg(gspca_dev, 0x0008, 0x0438); in cit_init_model0()
920 cit_write_reg(gspca_dev, 0x001e, 0x042b); in cit_init_model0()
921 cit_write_reg(gspca_dev, 0x0041, 0x042c); in cit_init_model0()
923 return 0; in cit_init_model0()
928 cit_read_reg(gspca_dev, 0x128, 1); in cit_init_ibm_netcam_pro()
929 cit_write_reg(gspca_dev, 0x0003, 0x0133); in cit_init_ibm_netcam_pro()
930 cit_write_reg(gspca_dev, 0x0000, 0x0117); in cit_init_ibm_netcam_pro()
931 cit_write_reg(gspca_dev, 0x0008, 0x0123); in cit_init_ibm_netcam_pro()
932 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_init_ibm_netcam_pro()
933 cit_read_reg(gspca_dev, 0x0116, 0); in cit_init_ibm_netcam_pro()
934 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_init_ibm_netcam_pro()
935 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_init_ibm_netcam_pro()
936 cit_write_reg(gspca_dev, 0x0000, 0x0133); in cit_init_ibm_netcam_pro()
937 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_init_ibm_netcam_pro()
938 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_init_ibm_netcam_pro()
939 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_init_ibm_netcam_pro()
940 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_init_ibm_netcam_pro()
941 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_init_ibm_netcam_pro()
942 cit_write_reg(gspca_dev, 0x0002, 0x0115); in cit_init_ibm_netcam_pro()
943 cit_write_reg(gspca_dev, 0x000b, 0x0115); in cit_init_ibm_netcam_pro()
945 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_init_ibm_netcam_pro()
946 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_init_ibm_netcam_pro()
947 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_init_ibm_netcam_pro()
948 cit_write_reg(gspca_dev, 0x0079, 0x012d); in cit_init_ibm_netcam_pro()
949 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_init_ibm_netcam_pro()
950 cit_write_reg(gspca_dev, 0xcd41, 0x0124); in cit_init_ibm_netcam_pro()
951 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_init_ibm_netcam_pro()
952 cit_read_reg(gspca_dev, 0x0126, 1); in cit_init_ibm_netcam_pro()
954 cit_model3_Packet1(gspca_dev, 0x0000, 0x0000); in cit_init_ibm_netcam_pro()
955 cit_model3_Packet1(gspca_dev, 0x0000, 0x0001); in cit_init_ibm_netcam_pro()
956 cit_model3_Packet1(gspca_dev, 0x000b, 0x0000); in cit_init_ibm_netcam_pro()
957 cit_model3_Packet1(gspca_dev, 0x000c, 0x0008); in cit_init_ibm_netcam_pro()
958 cit_model3_Packet1(gspca_dev, 0x000d, 0x003a); in cit_init_ibm_netcam_pro()
959 cit_model3_Packet1(gspca_dev, 0x000e, 0x0060); in cit_init_ibm_netcam_pro()
960 cit_model3_Packet1(gspca_dev, 0x000f, 0x0060); in cit_init_ibm_netcam_pro()
961 cit_model3_Packet1(gspca_dev, 0x0010, 0x0008); in cit_init_ibm_netcam_pro()
962 cit_model3_Packet1(gspca_dev, 0x0011, 0x0004); in cit_init_ibm_netcam_pro()
963 cit_model3_Packet1(gspca_dev, 0x0012, 0x0028); in cit_init_ibm_netcam_pro()
964 cit_model3_Packet1(gspca_dev, 0x0013, 0x0002); in cit_init_ibm_netcam_pro()
965 cit_model3_Packet1(gspca_dev, 0x0014, 0x0000); in cit_init_ibm_netcam_pro()
966 cit_model3_Packet1(gspca_dev, 0x0015, 0x00fb); in cit_init_ibm_netcam_pro()
967 cit_model3_Packet1(gspca_dev, 0x0016, 0x0002); in cit_init_ibm_netcam_pro()
968 cit_model3_Packet1(gspca_dev, 0x0017, 0x0037); in cit_init_ibm_netcam_pro()
969 cit_model3_Packet1(gspca_dev, 0x0018, 0x0036); in cit_init_ibm_netcam_pro()
970 cit_model3_Packet1(gspca_dev, 0x001e, 0x0000); in cit_init_ibm_netcam_pro()
971 cit_model3_Packet1(gspca_dev, 0x001f, 0x0008); in cit_init_ibm_netcam_pro()
972 cit_model3_Packet1(gspca_dev, 0x0020, 0x00c1); in cit_init_ibm_netcam_pro()
973 cit_model3_Packet1(gspca_dev, 0x0021, 0x0034); in cit_init_ibm_netcam_pro()
974 cit_model3_Packet1(gspca_dev, 0x0022, 0x0034); in cit_init_ibm_netcam_pro()
975 cit_model3_Packet1(gspca_dev, 0x0025, 0x0002); in cit_init_ibm_netcam_pro()
976 cit_model3_Packet1(gspca_dev, 0x0028, 0x0022); in cit_init_ibm_netcam_pro()
977 cit_model3_Packet1(gspca_dev, 0x0029, 0x000a); in cit_init_ibm_netcam_pro()
978 cit_model3_Packet1(gspca_dev, 0x002b, 0x0000); in cit_init_ibm_netcam_pro()
979 cit_model3_Packet1(gspca_dev, 0x002c, 0x0000); in cit_init_ibm_netcam_pro()
980 cit_model3_Packet1(gspca_dev, 0x002d, 0x00ff); in cit_init_ibm_netcam_pro()
981 cit_model3_Packet1(gspca_dev, 0x002e, 0x00ff); in cit_init_ibm_netcam_pro()
982 cit_model3_Packet1(gspca_dev, 0x002f, 0x00ff); in cit_init_ibm_netcam_pro()
983 cit_model3_Packet1(gspca_dev, 0x0030, 0x00ff); in cit_init_ibm_netcam_pro()
984 cit_model3_Packet1(gspca_dev, 0x0031, 0x00ff); in cit_init_ibm_netcam_pro()
985 cit_model3_Packet1(gspca_dev, 0x0032, 0x0007); in cit_init_ibm_netcam_pro()
986 cit_model3_Packet1(gspca_dev, 0x0033, 0x0005); in cit_init_ibm_netcam_pro()
987 cit_model3_Packet1(gspca_dev, 0x0037, 0x0040); in cit_init_ibm_netcam_pro()
988 cit_model3_Packet1(gspca_dev, 0x0039, 0x0000); in cit_init_ibm_netcam_pro()
989 cit_model3_Packet1(gspca_dev, 0x003a, 0x0000); in cit_init_ibm_netcam_pro()
990 cit_model3_Packet1(gspca_dev, 0x003b, 0x0001); in cit_init_ibm_netcam_pro()
991 cit_model3_Packet1(gspca_dev, 0x003c, 0x0000); in cit_init_ibm_netcam_pro()
992 cit_model3_Packet1(gspca_dev, 0x0040, 0x000c); in cit_init_ibm_netcam_pro()
993 cit_model3_Packet1(gspca_dev, 0x0041, 0x00fb); in cit_init_ibm_netcam_pro()
994 cit_model3_Packet1(gspca_dev, 0x0042, 0x0002); in cit_init_ibm_netcam_pro()
995 cit_model3_Packet1(gspca_dev, 0x0043, 0x0000); in cit_init_ibm_netcam_pro()
996 cit_model3_Packet1(gspca_dev, 0x0045, 0x0000); in cit_init_ibm_netcam_pro()
997 cit_model3_Packet1(gspca_dev, 0x0046, 0x0000); in cit_init_ibm_netcam_pro()
998 cit_model3_Packet1(gspca_dev, 0x0047, 0x0000); in cit_init_ibm_netcam_pro()
999 cit_model3_Packet1(gspca_dev, 0x0048, 0x0000); in cit_init_ibm_netcam_pro()
1000 cit_model3_Packet1(gspca_dev, 0x0049, 0x0000); in cit_init_ibm_netcam_pro()
1001 cit_model3_Packet1(gspca_dev, 0x004a, 0x00ff); in cit_init_ibm_netcam_pro()
1002 cit_model3_Packet1(gspca_dev, 0x004b, 0x00ff); in cit_init_ibm_netcam_pro()
1003 cit_model3_Packet1(gspca_dev, 0x004c, 0x00ff); in cit_init_ibm_netcam_pro()
1004 cit_model3_Packet1(gspca_dev, 0x004f, 0x0000); in cit_init_ibm_netcam_pro()
1005 cit_model3_Packet1(gspca_dev, 0x0050, 0x0000); in cit_init_ibm_netcam_pro()
1006 cit_model3_Packet1(gspca_dev, 0x0051, 0x0002); in cit_init_ibm_netcam_pro()
1007 cit_model3_Packet1(gspca_dev, 0x0055, 0x0000); in cit_init_ibm_netcam_pro()
1008 cit_model3_Packet1(gspca_dev, 0x0056, 0x0000); in cit_init_ibm_netcam_pro()
1009 cit_model3_Packet1(gspca_dev, 0x0057, 0x0000); in cit_init_ibm_netcam_pro()
1010 cit_model3_Packet1(gspca_dev, 0x0058, 0x0002); in cit_init_ibm_netcam_pro()
1011 cit_model3_Packet1(gspca_dev, 0x0059, 0x0000); in cit_init_ibm_netcam_pro()
1012 cit_model3_Packet1(gspca_dev, 0x005c, 0x0016); in cit_init_ibm_netcam_pro()
1013 cit_model3_Packet1(gspca_dev, 0x005d, 0x0022); in cit_init_ibm_netcam_pro()
1014 cit_model3_Packet1(gspca_dev, 0x005e, 0x003c); in cit_init_ibm_netcam_pro()
1015 cit_model3_Packet1(gspca_dev, 0x005f, 0x0050); in cit_init_ibm_netcam_pro()
1016 cit_model3_Packet1(gspca_dev, 0x0060, 0x0044); in cit_init_ibm_netcam_pro()
1017 cit_model3_Packet1(gspca_dev, 0x0061, 0x0005); in cit_init_ibm_netcam_pro()
1018 cit_model3_Packet1(gspca_dev, 0x006a, 0x007e); in cit_init_ibm_netcam_pro()
1019 cit_model3_Packet1(gspca_dev, 0x006f, 0x0000); in cit_init_ibm_netcam_pro()
1020 cit_model3_Packet1(gspca_dev, 0x0072, 0x001b); in cit_init_ibm_netcam_pro()
1021 cit_model3_Packet1(gspca_dev, 0x0073, 0x0005); in cit_init_ibm_netcam_pro()
1022 cit_model3_Packet1(gspca_dev, 0x0074, 0x000a); in cit_init_ibm_netcam_pro()
1023 cit_model3_Packet1(gspca_dev, 0x0075, 0x001b); in cit_init_ibm_netcam_pro()
1024 cit_model3_Packet1(gspca_dev, 0x0076, 0x002a); in cit_init_ibm_netcam_pro()
1025 cit_model3_Packet1(gspca_dev, 0x0077, 0x003c); in cit_init_ibm_netcam_pro()
1026 cit_model3_Packet1(gspca_dev, 0x0078, 0x0050); in cit_init_ibm_netcam_pro()
1027 cit_model3_Packet1(gspca_dev, 0x007b, 0x0000); in cit_init_ibm_netcam_pro()
1028 cit_model3_Packet1(gspca_dev, 0x007c, 0x0011); in cit_init_ibm_netcam_pro()
1029 cit_model3_Packet1(gspca_dev, 0x007d, 0x0024); in cit_init_ibm_netcam_pro()
1030 cit_model3_Packet1(gspca_dev, 0x007e, 0x0043); in cit_init_ibm_netcam_pro()
1031 cit_model3_Packet1(gspca_dev, 0x007f, 0x005a); in cit_init_ibm_netcam_pro()
1032 cit_model3_Packet1(gspca_dev, 0x0084, 0x0020); in cit_init_ibm_netcam_pro()
1033 cit_model3_Packet1(gspca_dev, 0x0085, 0x0033); in cit_init_ibm_netcam_pro()
1034 cit_model3_Packet1(gspca_dev, 0x0086, 0x000a); in cit_init_ibm_netcam_pro()
1035 cit_model3_Packet1(gspca_dev, 0x0087, 0x0030); in cit_init_ibm_netcam_pro()
1036 cit_model3_Packet1(gspca_dev, 0x0088, 0x0070); in cit_init_ibm_netcam_pro()
1037 cit_model3_Packet1(gspca_dev, 0x008b, 0x0008); in cit_init_ibm_netcam_pro()
1038 cit_model3_Packet1(gspca_dev, 0x008f, 0x0000); in cit_init_ibm_netcam_pro()
1039 cit_model3_Packet1(gspca_dev, 0x0090, 0x0006); in cit_init_ibm_netcam_pro()
1040 cit_model3_Packet1(gspca_dev, 0x0091, 0x0028); in cit_init_ibm_netcam_pro()
1041 cit_model3_Packet1(gspca_dev, 0x0092, 0x005a); in cit_init_ibm_netcam_pro()
1042 cit_model3_Packet1(gspca_dev, 0x0093, 0x0082); in cit_init_ibm_netcam_pro()
1043 cit_model3_Packet1(gspca_dev, 0x0096, 0x0014); in cit_init_ibm_netcam_pro()
1044 cit_model3_Packet1(gspca_dev, 0x0097, 0x0020); in cit_init_ibm_netcam_pro()
1045 cit_model3_Packet1(gspca_dev, 0x0098, 0x0000); in cit_init_ibm_netcam_pro()
1046 cit_model3_Packet1(gspca_dev, 0x00b0, 0x0046); in cit_init_ibm_netcam_pro()
1047 cit_model3_Packet1(gspca_dev, 0x00b1, 0x0000); in cit_init_ibm_netcam_pro()
1048 cit_model3_Packet1(gspca_dev, 0x00b2, 0x0000); in cit_init_ibm_netcam_pro()
1049 cit_model3_Packet1(gspca_dev, 0x00b3, 0x0004); in cit_init_ibm_netcam_pro()
1050 cit_model3_Packet1(gspca_dev, 0x00b4, 0x0007); in cit_init_ibm_netcam_pro()
1051 cit_model3_Packet1(gspca_dev, 0x00b6, 0x0002); in cit_init_ibm_netcam_pro()
1052 cit_model3_Packet1(gspca_dev, 0x00b7, 0x0004); in cit_init_ibm_netcam_pro()
1053 cit_model3_Packet1(gspca_dev, 0x00bb, 0x0000); in cit_init_ibm_netcam_pro()
1054 cit_model3_Packet1(gspca_dev, 0x00bc, 0x0001); in cit_init_ibm_netcam_pro()
1055 cit_model3_Packet1(gspca_dev, 0x00bd, 0x0000); in cit_init_ibm_netcam_pro()
1056 cit_model3_Packet1(gspca_dev, 0x00bf, 0x0000); in cit_init_ibm_netcam_pro()
1057 cit_model3_Packet1(gspca_dev, 0x00c0, 0x00c8); in cit_init_ibm_netcam_pro()
1058 cit_model3_Packet1(gspca_dev, 0x00c1, 0x0014); in cit_init_ibm_netcam_pro()
1059 cit_model3_Packet1(gspca_dev, 0x00c2, 0x0001); in cit_init_ibm_netcam_pro()
1060 cit_model3_Packet1(gspca_dev, 0x00c3, 0x0000); in cit_init_ibm_netcam_pro()
1061 cit_model3_Packet1(gspca_dev, 0x00c4, 0x0004); in cit_init_ibm_netcam_pro()
1062 cit_model3_Packet1(gspca_dev, 0x00cb, 0x00bf); in cit_init_ibm_netcam_pro()
1063 cit_model3_Packet1(gspca_dev, 0x00cc, 0x00bf); in cit_init_ibm_netcam_pro()
1064 cit_model3_Packet1(gspca_dev, 0x00cd, 0x00bf); in cit_init_ibm_netcam_pro()
1065 cit_model3_Packet1(gspca_dev, 0x00ce, 0x0000); in cit_init_ibm_netcam_pro()
1066 cit_model3_Packet1(gspca_dev, 0x00cf, 0x0020); in cit_init_ibm_netcam_pro()
1067 cit_model3_Packet1(gspca_dev, 0x00d0, 0x0040); in cit_init_ibm_netcam_pro()
1068 cit_model3_Packet1(gspca_dev, 0x00d1, 0x00bf); in cit_init_ibm_netcam_pro()
1069 cit_model3_Packet1(gspca_dev, 0x00d1, 0x00bf); in cit_init_ibm_netcam_pro()
1070 cit_model3_Packet1(gspca_dev, 0x00d2, 0x00bf); in cit_init_ibm_netcam_pro()
1071 cit_model3_Packet1(gspca_dev, 0x00d3, 0x00bf); in cit_init_ibm_netcam_pro()
1072 cit_model3_Packet1(gspca_dev, 0x00ea, 0x0008); in cit_init_ibm_netcam_pro()
1073 cit_model3_Packet1(gspca_dev, 0x00eb, 0x0000); in cit_init_ibm_netcam_pro()
1074 cit_model3_Packet1(gspca_dev, 0x00ec, 0x00e8); in cit_init_ibm_netcam_pro()
1075 cit_model3_Packet1(gspca_dev, 0x00ed, 0x0001); in cit_init_ibm_netcam_pro()
1076 cit_model3_Packet1(gspca_dev, 0x00ef, 0x0022); in cit_init_ibm_netcam_pro()
1077 cit_model3_Packet1(gspca_dev, 0x00f0, 0x0000); in cit_init_ibm_netcam_pro()
1078 cit_model3_Packet1(gspca_dev, 0x00f2, 0x0028); in cit_init_ibm_netcam_pro()
1079 cit_model3_Packet1(gspca_dev, 0x00f4, 0x0002); in cit_init_ibm_netcam_pro()
1080 cit_model3_Packet1(gspca_dev, 0x00f5, 0x0000); in cit_init_ibm_netcam_pro()
1081 cit_model3_Packet1(gspca_dev, 0x00fa, 0x0000); in cit_init_ibm_netcam_pro()
1082 cit_model3_Packet1(gspca_dev, 0x00fb, 0x0001); in cit_init_ibm_netcam_pro()
1083 cit_model3_Packet1(gspca_dev, 0x00fc, 0x0000); in cit_init_ibm_netcam_pro()
1084 cit_model3_Packet1(gspca_dev, 0x00fd, 0x0000); in cit_init_ibm_netcam_pro()
1085 cit_model3_Packet1(gspca_dev, 0x00fe, 0x0000); in cit_init_ibm_netcam_pro()
1086 cit_model3_Packet1(gspca_dev, 0x00ff, 0x0000); in cit_init_ibm_netcam_pro()
1088 cit_model3_Packet1(gspca_dev, 0x00be, 0x0003); in cit_init_ibm_netcam_pro()
1089 cit_model3_Packet1(gspca_dev, 0x00c8, 0x0000); in cit_init_ibm_netcam_pro()
1090 cit_model3_Packet1(gspca_dev, 0x00c9, 0x0020); in cit_init_ibm_netcam_pro()
1091 cit_model3_Packet1(gspca_dev, 0x00ca, 0x0040); in cit_init_ibm_netcam_pro()
1092 cit_model3_Packet1(gspca_dev, 0x0053, 0x0001); in cit_init_ibm_netcam_pro()
1093 cit_model3_Packet1(gspca_dev, 0x0082, 0x000e); in cit_init_ibm_netcam_pro()
1094 cit_model3_Packet1(gspca_dev, 0x0083, 0x0020); in cit_init_ibm_netcam_pro()
1095 cit_model3_Packet1(gspca_dev, 0x0034, 0x003c); in cit_init_ibm_netcam_pro()
1096 cit_model3_Packet1(gspca_dev, 0x006e, 0x0055); in cit_init_ibm_netcam_pro()
1097 cit_model3_Packet1(gspca_dev, 0x0062, 0x0005); in cit_init_ibm_netcam_pro()
1098 cit_model3_Packet1(gspca_dev, 0x0063, 0x0008); in cit_init_ibm_netcam_pro()
1099 cit_model3_Packet1(gspca_dev, 0x0066, 0x000a); in cit_init_ibm_netcam_pro()
1100 cit_model3_Packet1(gspca_dev, 0x0067, 0x0006); in cit_init_ibm_netcam_pro()
1101 cit_model3_Packet1(gspca_dev, 0x006b, 0x0010); in cit_init_ibm_netcam_pro()
1102 cit_model3_Packet1(gspca_dev, 0x005a, 0x0001); in cit_init_ibm_netcam_pro()
1103 cit_model3_Packet1(gspca_dev, 0x005b, 0x000a); in cit_init_ibm_netcam_pro()
1104 cit_model3_Packet1(gspca_dev, 0x0023, 0x0006); in cit_init_ibm_netcam_pro()
1105 cit_model3_Packet1(gspca_dev, 0x0026, 0x0004); in cit_init_ibm_netcam_pro()
1106 cit_model3_Packet1(gspca_dev, 0x0036, 0x0069); in cit_init_ibm_netcam_pro()
1107 cit_model3_Packet1(gspca_dev, 0x0038, 0x0064); in cit_init_ibm_netcam_pro()
1108 cit_model3_Packet1(gspca_dev, 0x003d, 0x0003); in cit_init_ibm_netcam_pro()
1109 cit_model3_Packet1(gspca_dev, 0x003e, 0x0001); in cit_init_ibm_netcam_pro()
1110 cit_model3_Packet1(gspca_dev, 0x00b8, 0x0014); in cit_init_ibm_netcam_pro()
1111 cit_model3_Packet1(gspca_dev, 0x00b9, 0x0014); in cit_init_ibm_netcam_pro()
1112 cit_model3_Packet1(gspca_dev, 0x00e6, 0x0004); in cit_init_ibm_netcam_pro()
1113 cit_model3_Packet1(gspca_dev, 0x00e8, 0x0001); in cit_init_ibm_netcam_pro()
1115 return 0; in cit_init_ibm_netcam_pro()
1138 return 0; in sd_init()
1152 /* Model 1: Brightness range 0 - 63 */ in cit_set_brightness()
1153 cit_Packet_Format1(gspca_dev, 0x0031, val); in cit_set_brightness()
1154 cit_Packet_Format1(gspca_dev, 0x0032, val); in cit_set_brightness()
1155 cit_Packet_Format1(gspca_dev, 0x0033, val); in cit_set_brightness()
1158 /* Model 2: Brightness range 0x60 - 0xee */ in cit_set_brightness()
1159 /* Scale 0 - 63 to 0x60 - 0xee */ in cit_set_brightness()
1160 i = 0x60 + val * 2254 / 1000; in cit_set_brightness()
1161 cit_model2_Packet1(gspca_dev, 0x001a, i); in cit_set_brightness()
1164 /* Model 3: Brightness range 'i' in [0x0C..0x3F] */ in cit_set_brightness()
1166 if (i < 0x0c) in cit_set_brightness()
1167 i = 0x0c; in cit_set_brightness()
1168 cit_model3_Packet1(gspca_dev, 0x0036, i); in cit_set_brightness()
1171 /* Model 4: Brightness range 'i' in [0x04..0xb4] */ in cit_set_brightness()
1172 /* Scale 0 - 63 to 0x04 - 0xb4 */ in cit_set_brightness()
1173 i = 0x04 + val * 2794 / 1000; in cit_set_brightness()
1178 return 0; in cit_set_brightness()
1188 /* gain 0-15, 0-20 -> 0-15 */ in cit_set_contrast()
1190 cit_write_reg(gspca_dev, i, 0x0422); in cit_set_contrast()
1191 /* gain 0-31, may not be lower then 0x0422, 0-20 -> 0-31 */ in cit_set_contrast()
1193 cit_write_reg(gspca_dev, i, 0x0423); in cit_set_contrast()
1194 /* gain 0-127, may not be lower then 0x0423, 0-20 -> 0-63 */ in cit_set_contrast()
1196 cit_write_reg(gspca_dev, i, 0x0424); in cit_set_contrast()
1197 /* gain 0-127, may not be lower then 0x0424, , 0-20 -> 0-127 */ in cit_set_contrast()
1199 cit_write_reg(gspca_dev, i, 0x0425); in cit_set_contrast()
1208 /* Scale 0 - 20 to 15 - 0 */ in cit_set_contrast()
1210 for (i = 0; i < cit_model1_ntries; i++) { in cit_set_contrast()
1211 cit_Packet_Format1(gspca_dev, 0x0014, new_contrast); in cit_set_contrast()
1223 { 0x05, 0x05, 0x0f }, /* Minimum */ in cit_set_contrast()
1224 { 0x04, 0x04, 0x16 }, in cit_set_contrast()
1225 { 0x02, 0x03, 0x16 }, in cit_set_contrast()
1226 { 0x02, 0x08, 0x16 }, in cit_set_contrast()
1227 { 0x01, 0x0c, 0x16 }, in cit_set_contrast()
1228 { 0x01, 0x0e, 0x16 }, in cit_set_contrast()
1229 { 0x01, 0x10, 0x16 } /* Maximum */ in cit_set_contrast()
1232 cit_model3_Packet1(gspca_dev, 0x0067, cv[i].cv1); in cit_set_contrast()
1233 cit_model3_Packet1(gspca_dev, 0x005b, cv[i].cv2); in cit_set_contrast()
1234 cit_model3_Packet1(gspca_dev, 0x005c, cv[i].cv3); in cit_set_contrast()
1238 cit_model3_Packet1(gspca_dev, 0x005b, val + 1); in cit_set_contrast()
1241 return 0; in cit_set_contrast()
1255 cit_model2_Packet1(gspca_dev, 0x0024, val); in cit_set_hue()
1256 /* cit_model2_Packet1(gspca_dev, 0x0020, sat); */ in cit_set_hue()
1259 /* Model 3: Brightness range 'i' in [0x05..0x37] */ in cit_set_hue()
1261 if (0) { in cit_set_hue()
1262 /* Scale 0 - 127 to 0x05 - 0x37 */ in cit_set_hue()
1263 int i = 0x05 + val * 1000 / 2540; in cit_set_hue()
1264 cit_model3_Packet1(gspca_dev, 0x007e, i); in cit_set_hue()
1280 * hue: changes average color from violet (0) to red (0xFF) in cit_set_hue()
1282 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_set_hue()
1283 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_set_hue()
1284 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_set_hue()
1285 cit_write_reg(gspca_dev, 160, 0x0127); /* Green gain */ in cit_set_hue()
1286 cit_write_reg(gspca_dev, 160, 0x012e); /* Red gain */ in cit_set_hue()
1287 cit_write_reg(gspca_dev, 160, 0x0130); /* Blue gain */ in cit_set_hue()
1288 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_set_hue()
1289 cit_write_reg(gspca_dev, val, 0x012d); /* Hue */ in cit_set_hue()
1290 cit_write_reg(gspca_dev, 0xf545, 0x0124); in cit_set_hue()
1293 return 0; in cit_set_hue()
1310 0x11, 0x13, 0x16, 0x18, 0x1a, 0x8, 0x0a }; in cit_set_sharpness()
1312 for (i = 0; i < cit_model1_ntries; i++) in cit_set_sharpness()
1313 cit_PacketFormat2(gspca_dev, 0x0013, sa[val]); in cit_set_sharpness()
1328 { 0x00, 0x00, 0x05, 0x14 }, /* Smoothest */ in cit_set_sharpness()
1329 { 0x01, 0x04, 0x05, 0x14 }, in cit_set_sharpness()
1330 { 0x02, 0x04, 0x05, 0x14 }, in cit_set_sharpness()
1331 { 0x03, 0x04, 0x05, 0x14 }, in cit_set_sharpness()
1332 { 0x03, 0x05, 0x05, 0x14 }, in cit_set_sharpness()
1333 { 0x03, 0x06, 0x05, 0x14 }, in cit_set_sharpness()
1334 { 0x03, 0x07, 0x05, 0x14 } /* Sharpest */ in cit_set_sharpness()
1336 cit_model3_Packet1(gspca_dev, 0x0060, sv[val].sv1); in cit_set_sharpness()
1337 cit_model3_Packet1(gspca_dev, 0x0061, sv[val].sv2); in cit_set_sharpness()
1338 cit_model3_Packet1(gspca_dev, 0x0062, sv[val].sv3); in cit_set_sharpness()
1339 cit_model3_Packet1(gspca_dev, 0x0063, sv[val].sv4); in cit_set_sharpness()
1343 return 0; in cit_set_sharpness()
1350 * We have 3 levels of lighting conditions: 0=Bright, 1=Medium, 2=Low.
1353 * We have 16 levels of lighting, 0 for bright light and up to 15 for
1377 for (i = 0; i < cit_model1_ntries; i++) in cit_set_lighting()
1378 cit_Packet_Format1(gspca_dev, 0x0027, val); in cit_set_lighting()
1391 cit_write_reg(gspca_dev, 0x0020, 0x0115); in cit_set_hflip()
1393 cit_write_reg(gspca_dev, 0x0040, 0x0115); in cit_set_hflip()
1411 cit_write_reg(gspca_dev, 0x0001, 0x0114); in cit_restart_stream()
1415 cit_write_reg(gspca_dev, 0x00c0, 0x010c); /* Go! */ in cit_restart_stream()
1416 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); in cit_restart_stream()
1420 cit_write_reg(gspca_dev, 0x0001, 0x0114); in cit_restart_stream()
1421 cit_write_reg(gspca_dev, 0x00c0, 0x010c); /* Go! */ in cit_restart_stream()
1422 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); in cit_restart_stream()
1424 cit_write_reg(gspca_dev, 0x0001, 0x0113); in cit_restart_stream()
1428 sd->sof_read = 0; in cit_restart_stream()
1430 return 0; in cit_restart_stream()
1448 return le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in cit_get_packet_size()
1454 int clock_div = 7; /* 0=30 1=25 2=20 3=15 4=12 5=7.5 6=6 7=3fps ?? */ in cit_get_clock_div()
1459 if (packet_size < 0) in cit_get_clock_div()
1479 const unsigned short compression = 0; /* 0=none, 7=best frame rate */ in cit_start_model0()
1483 if (clock_div < 0) in cit_start_model0()
1486 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* turn on led */ in cit_start_model0()
1487 cit_write_reg(gspca_dev, 0x0003, 0x0438); in cit_start_model0()
1488 cit_write_reg(gspca_dev, 0x001e, 0x042b); in cit_start_model0()
1489 cit_write_reg(gspca_dev, 0x0041, 0x042c); in cit_start_model0()
1490 cit_write_reg(gspca_dev, 0x0008, 0x0436); in cit_start_model0()
1491 cit_write_reg(gspca_dev, 0x0024, 0x0403); in cit_start_model0()
1492 cit_write_reg(gspca_dev, 0x002c, 0x0404); in cit_start_model0()
1493 cit_write_reg(gspca_dev, 0x0002, 0x0426); in cit_start_model0()
1494 cit_write_reg(gspca_dev, 0x0014, 0x0427); in cit_start_model0()
1498 cit_write_reg(gspca_dev, 0x0004, 0x010b); in cit_start_model0()
1499 cit_write_reg(gspca_dev, 0x0001, 0x010a); in cit_start_model0()
1500 cit_write_reg(gspca_dev, 0x0010, 0x0102); in cit_start_model0()
1501 cit_write_reg(gspca_dev, 0x00a0, 0x0103); in cit_start_model0()
1502 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model0()
1503 cit_write_reg(gspca_dev, 0x0078, 0x0105); in cit_start_model0()
1507 cit_write_reg(gspca_dev, 0x0006, 0x010b); in cit_start_model0()
1508 cit_write_reg(gspca_dev, 0x0000, 0x010a); in cit_start_model0()
1509 cit_write_reg(gspca_dev, 0x0005, 0x0102); in cit_start_model0()
1510 cit_write_reg(gspca_dev, 0x00b0, 0x0103); in cit_start_model0()
1511 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model0()
1512 cit_write_reg(gspca_dev, 0x0090, 0x0105); in cit_start_model0()
1515 case 320: /* 320x240 */ in cit_start_model0()
1516 cit_write_reg(gspca_dev, 0x0008, 0x010b); in cit_start_model0()
1517 cit_write_reg(gspca_dev, 0x0004, 0x010a); in cit_start_model0()
1518 cit_write_reg(gspca_dev, 0x0005, 0x0102); in cit_start_model0()
1519 cit_write_reg(gspca_dev, 0x00a0, 0x0103); in cit_start_model0()
1520 cit_write_reg(gspca_dev, 0x0010, 0x0104); in cit_start_model0()
1521 cit_write_reg(gspca_dev, 0x0078, 0x0105); in cit_start_model0()
1525 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model0()
1526 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_model0()
1528 return 0; in cit_start_model0()
1537 if (clock_div < 0) in cit_start_model1()
1540 cit_read_reg(gspca_dev, 0x0128, 1); in cit_start_model1()
1541 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1542 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1543 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1544 cit_write_reg(gspca_dev, 0x81, 0x0100); /* LED Off */ in cit_start_model1()
1545 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1546 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1547 cit_write_reg(gspca_dev, 0x01, 0x0108); in cit_start_model1()
1549 cit_write_reg(gspca_dev, 0x03, 0x0112); in cit_start_model1()
1550 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model1()
1551 cit_write_reg(gspca_dev, 0x06, 0x0115); in cit_start_model1()
1552 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model1()
1553 cit_write_reg(gspca_dev, 0x44, 0x0116); in cit_start_model1()
1554 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model1()
1555 cit_write_reg(gspca_dev, 0x40, 0x0116); in cit_start_model1()
1556 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model1()
1557 cit_write_reg(gspca_dev, 0x0e, 0x0115); in cit_start_model1()
1558 cit_write_reg(gspca_dev, 0x19, 0x012c); in cit_start_model1()
1560 cit_Packet_Format1(gspca_dev, 0x00, 0x1e); in cit_start_model1()
1561 cit_Packet_Format1(gspca_dev, 0x39, 0x0d); in cit_start_model1()
1562 cit_Packet_Format1(gspca_dev, 0x39, 0x09); in cit_start_model1()
1563 cit_Packet_Format1(gspca_dev, 0x3b, 0x00); in cit_start_model1()
1564 cit_Packet_Format1(gspca_dev, 0x28, 0x22); in cit_start_model1()
1565 cit_Packet_Format1(gspca_dev, 0x27, 0x00); in cit_start_model1()
1566 cit_Packet_Format1(gspca_dev, 0x2b, 0x1f); in cit_start_model1()
1567 cit_Packet_Format1(gspca_dev, 0x39, 0x08); in cit_start_model1()
1569 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1570 cit_Packet_Format1(gspca_dev, 0x2c, 0x00); in cit_start_model1()
1572 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1573 cit_Packet_Format1(gspca_dev, 0x30, 0x14); in cit_start_model1()
1575 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1576 cit_PacketFormat2(gspca_dev, 0x01, 0xe1); in cit_start_model1()
1577 cit_PacketFormat2(gspca_dev, 0x02, 0xcd); in cit_start_model1()
1578 cit_PacketFormat2(gspca_dev, 0x03, 0xcd); in cit_start_model1()
1579 cit_PacketFormat2(gspca_dev, 0x04, 0xfa); in cit_start_model1()
1580 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1581 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1583 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1584 cit_PacketFormat2(gspca_dev, 0x0a, 0x37); in cit_start_model1()
1585 cit_PacketFormat2(gspca_dev, 0x0b, 0xb8); in cit_start_model1()
1586 cit_PacketFormat2(gspca_dev, 0x0c, 0xf3); in cit_start_model1()
1587 cit_PacketFormat2(gspca_dev, 0x0d, 0xe3); in cit_start_model1()
1588 cit_PacketFormat2(gspca_dev, 0x0e, 0x0d); in cit_start_model1()
1589 cit_PacketFormat2(gspca_dev, 0x0f, 0xf2); in cit_start_model1()
1590 cit_PacketFormat2(gspca_dev, 0x10, 0xd5); in cit_start_model1()
1591 cit_PacketFormat2(gspca_dev, 0x11, 0xba); in cit_start_model1()
1592 cit_PacketFormat2(gspca_dev, 0x12, 0x53); in cit_start_model1()
1593 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1594 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1596 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1597 cit_PacketFormat2(gspca_dev, 0x16, 0x00); in cit_start_model1()
1598 cit_PacketFormat2(gspca_dev, 0x17, 0x28); in cit_start_model1()
1599 cit_PacketFormat2(gspca_dev, 0x18, 0x7d); in cit_start_model1()
1600 cit_PacketFormat2(gspca_dev, 0x19, 0xbe); in cit_start_model1()
1601 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1602 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1604 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1605 cit_Packet_Format1(gspca_dev, 0x00, 0x18); in cit_start_model1()
1606 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1607 cit_Packet_Format1(gspca_dev, 0x13, 0x18); in cit_start_model1()
1608 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1609 cit_Packet_Format1(gspca_dev, 0x14, 0x06); in cit_start_model1()
1613 if (0) { in cit_start_model1()
1615 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1616 cit_Packet_Format1(gspca_dev, 0x31, 0x37); in cit_start_model1()
1617 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1618 cit_Packet_Format1(gspca_dev, 0x32, 0x46); in cit_start_model1()
1619 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1620 cit_Packet_Format1(gspca_dev, 0x33, 0x55); in cit_start_model1()
1623 cit_Packet_Format1(gspca_dev, 0x2e, 0x04); in cit_start_model1()
1624 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1625 cit_Packet_Format1(gspca_dev, 0x2d, 0x04); in cit_start_model1()
1626 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1627 cit_Packet_Format1(gspca_dev, 0x29, 0x80); in cit_start_model1()
1628 cit_Packet_Format1(gspca_dev, 0x2c, 0x01); in cit_start_model1()
1629 cit_Packet_Format1(gspca_dev, 0x30, 0x17); in cit_start_model1()
1630 cit_Packet_Format1(gspca_dev, 0x39, 0x08); in cit_start_model1()
1631 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1632 cit_Packet_Format1(gspca_dev, 0x34, 0x00); in cit_start_model1()
1634 cit_write_reg(gspca_dev, 0x00, 0x0101); in cit_start_model1()
1635 cit_write_reg(gspca_dev, 0x00, 0x010a); in cit_start_model1()
1639 cit_write_reg(gspca_dev, 0x80, 0x0103); in cit_start_model1()
1640 cit_write_reg(gspca_dev, 0x60, 0x0105); in cit_start_model1()
1641 cit_write_reg(gspca_dev, 0x0c, 0x010b); in cit_start_model1()
1642 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1643 cit_write_reg(gspca_dev, 0x0b, 0x011d); in cit_start_model1()
1644 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1645 cit_write_reg(gspca_dev, 0x00, 0x0129); in cit_start_model1()
1648 cit_write_reg(gspca_dev, 0xb0, 0x0103); in cit_start_model1()
1649 cit_write_reg(gspca_dev, 0x8f, 0x0105); in cit_start_model1()
1650 cit_write_reg(gspca_dev, 0x06, 0x010b); in cit_start_model1()
1651 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1652 cit_write_reg(gspca_dev, 0x0d, 0x011d); in cit_start_model1()
1653 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1654 cit_write_reg(gspca_dev, 0x03, 0x0129); in cit_start_model1()
1657 cit_write_reg(gspca_dev, 0xb0, 0x0103); in cit_start_model1()
1658 cit_write_reg(gspca_dev, 0x90, 0x0105); in cit_start_model1()
1659 cit_write_reg(gspca_dev, 0x02, 0x010b); in cit_start_model1()
1660 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1661 cit_write_reg(gspca_dev, 0x05, 0x011d); in cit_start_model1()
1662 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1663 cit_write_reg(gspca_dev, 0x00, 0x0129); in cit_start_model1()
1667 cit_write_reg(gspca_dev, 0xff, 0x012b); in cit_start_model1()
1671 if (0) { in cit_start_model1()
1673 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1674 cit_Packet_Format1(gspca_dev, 0x31, 0xc3); in cit_start_model1()
1675 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1676 cit_Packet_Format1(gspca_dev, 0x32, 0xd2); in cit_start_model1()
1677 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1678 cit_Packet_Format1(gspca_dev, 0x33, 0xe1); in cit_start_model1()
1681 for (i = 0; i < cit_model1_ntries; i++) in cit_start_model1()
1682 cit_Packet_Format1(gspca_dev, 0x14, 0x0a); in cit_start_model1()
1685 for (i = 0; i < cit_model1_ntries2; i++) in cit_start_model1()
1686 cit_PacketFormat2(gspca_dev, 0x13, 0x1a); in cit_start_model1()
1689 cit_Packet_Format1(gspca_dev, 0x0027, in cit_start_model1()
1696 cit_Packet_Format1(gspca_dev, 0x2b, 0x1e); in cit_start_model1()
1697 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1698 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1699 cit_write_reg(gspca_dev, 0x36, 0x0102); in cit_start_model1()
1700 cit_write_reg(gspca_dev, 0x1a, 0x0104); in cit_start_model1()
1701 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1702 cit_write_reg(gspca_dev, 0x2b, 0x011c); in cit_start_model1()
1703 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1706 cit_Packet_Format1(gspca_dev, 0x2b, 0x1e); in cit_start_model1()
1707 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1708 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1709 cit_write_reg(gspca_dev, 0x04, 0x0102); in cit_start_model1()
1710 cit_write_reg(gspca_dev, 0x02, 0x0104); in cit_start_model1()
1711 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1712 cit_write_reg(gspca_dev, 0x2b, 0x011c); in cit_start_model1()
1713 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1716 cit_Packet_Format1(gspca_dev, 0x2b, 0x1f); in cit_start_model1()
1717 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1718 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1719 cit_write_reg(gspca_dev, 0x08, 0x0102); in cit_start_model1()
1720 cit_write_reg(gspca_dev, 0x01, 0x0104); in cit_start_model1()
1721 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1722 cit_write_reg(gspca_dev, 0x2f, 0x011c); in cit_start_model1()
1723 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1727 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1728 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_model1()
1730 return 0; in cit_start_model1()
1736 int clock_div = 0; in cit_start_model2()
1738 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* LED on */ in cit_start_model2()
1739 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model2()
1740 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model2()
1741 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_start_model2()
1742 cit_write_reg(gspca_dev, 0x00bc, 0x012c); in cit_start_model2()
1743 cit_write_reg(gspca_dev, 0x0008, 0x012b); in cit_start_model2()
1744 cit_write_reg(gspca_dev, 0x0000, 0x0108); in cit_start_model2()
1745 cit_write_reg(gspca_dev, 0x0001, 0x0133); in cit_start_model2()
1746 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model2()
1749 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1750 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1751 cit_write_reg(gspca_dev, 0x0024, 0x0105); /* 176x144, 352x288 */ in cit_start_model2()
1752 cit_write_reg(gspca_dev, 0x00b9, 0x010a); /* Unique to this mode */ in cit_start_model2()
1753 cit_write_reg(gspca_dev, 0x0038, 0x0119); /* Unique to this mode */ in cit_start_model2()
1758 case 320: /* 320x240 */ in cit_start_model2()
1759 cit_write_reg(gspca_dev, 0x0028, 0x0103); /* Unique to this mode */ in cit_start_model2()
1760 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1761 cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */ in cit_start_model2()
1762 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1763 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1766 #if 0 in cit_start_model2()
1768 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1769 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1770 cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */ in cit_start_model2()
1771 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1772 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1777 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1778 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1779 cit_write_reg(gspca_dev, 0x0024, 0x0105); /* 176x144, 352x288 */ in cit_start_model2()
1780 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1781 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1786 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* LED on */ in cit_start_model2()
1790 cit_write_reg(gspca_dev, 0x0050, 0x0111); in cit_start_model2()
1791 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model2()
1793 case 320: /* 320x240 */ in cit_start_model2()
1795 cit_write_reg(gspca_dev, 0x0040, 0x0111); in cit_start_model2()
1796 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model2()
1799 cit_write_reg(gspca_dev, 0x009b, 0x010f); in cit_start_model2()
1800 cit_write_reg(gspca_dev, 0x00bb, 0x010f); in cit_start_model2()
1805 * 0x0004: no effect in cit_start_model2()
1806 * 0x0006: hardware effect in cit_start_model2()
1807 * 0x0008: no effect in cit_start_model2()
1808 * 0x000a: stops video stream, probably important h/w setting in cit_start_model2()
1809 * 0x000c: changes color in hardware manner (not user setting) in cit_start_model2()
1810 * 0x0012: changes number of colors (does not affect speed) in cit_start_model2()
1811 * 0x002a: no effect in cit_start_model2()
1812 * 0x002c: hardware setting (related to scan lines) in cit_start_model2()
1813 * 0x002e: stops video stream, probably important h/w setting in cit_start_model2()
1815 cit_model2_Packet1(gspca_dev, 0x000a, 0x005c); in cit_start_model2()
1816 cit_model2_Packet1(gspca_dev, 0x0004, 0x0000); in cit_start_model2()
1817 cit_model2_Packet1(gspca_dev, 0x0006, 0x00fb); in cit_start_model2()
1818 cit_model2_Packet1(gspca_dev, 0x0008, 0x0000); in cit_start_model2()
1819 cit_model2_Packet1(gspca_dev, 0x000c, 0x0009); in cit_start_model2()
1820 cit_model2_Packet1(gspca_dev, 0x0012, 0x000a); in cit_start_model2()
1821 cit_model2_Packet1(gspca_dev, 0x002a, 0x0000); in cit_start_model2()
1822 cit_model2_Packet1(gspca_dev, 0x002c, 0x0000); in cit_start_model2()
1823 cit_model2_Packet1(gspca_dev, 0x002e, 0x0008); in cit_start_model2()
1826 * Function 0x0030 pops up all over the place. Apparently in cit_start_model2()
1830 cit_model2_Packet1(gspca_dev, 0x0030, 0x0000); in cit_start_model2()
1834 * 0-3 work, and picture shifts left or right. Don't change. in cit_start_model2()
1838 cit_model2_Packet1(gspca_dev, 0x0014, 0x0002); in cit_start_model2()
1839 cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */ in cit_start_model2()
1840 cit_model2_Packet1(gspca_dev, 0x0018, 0x004a); /* Another hardware setting */ in cit_start_model2()
1843 case 320: /* 320x240 */ in cit_start_model2()
1844 cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); in cit_start_model2()
1845 cit_model2_Packet1(gspca_dev, 0x0016, 0x0005); /* Horizontal shift */ in cit_start_model2()
1846 cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Another hardware setting */ in cit_start_model2()
1849 #if 0 in cit_start_model2()
1852 cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); /* Windows sets this to 8 */ in cit_start_model2()
1853 cit_model2_Packet1(gspca_dev, 0x0016, 0x0003); /* Horizontal shift */ in cit_start_model2()
1854 cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Windows sets this to 0x0045 */ in cit_start_model2()
1859 cit_model2_Packet1(gspca_dev, 0x0014, 0x0003); in cit_start_model2()
1860 cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */ in cit_start_model2()
1861 cit_model2_Packet1(gspca_dev, 0x0018, 0x004a); /* Another hardware setting */ in cit_start_model2()
1868 if (0) in cit_start_model2()
1869 cit_model2_Packet1(gspca_dev, 0x001a, 0x005a); in cit_start_model2()
1872 * We have our own frame rate setting varying from 0 (slowest) to 6 in cit_start_model2()
1873 * (fastest). The camera model 2 allows frame rate in range [0..0x1F] in cit_start_model2()
1874 # where 0 is also the slowest setting. However for all practical in cit_start_model2()
1883 * 320x240: [8..31] in cit_start_model2()
1884 * 352x240: [10..31] in cit_start_model2()
1889 cit_model2_Packet1(gspca_dev, 0x001c, clock_div); in cit_start_model2()
1899 cit_model2_Packet1(gspca_dev, 0x0026, 0x00c2); in cit_start_model2()
1901 case 320: /* 320x240 */ in cit_start_model2()
1902 cit_model2_Packet1(gspca_dev, 0x0026, 0x0044); in cit_start_model2()
1904 #if 0 in cit_start_model2()
1906 cit_model2_Packet1(gspca_dev, 0x0026, 0x0046); in cit_start_model2()
1910 cit_model2_Packet1(gspca_dev, 0x0026, 0x0048); in cit_start_model2()
1914 cit_model2_Packet1(gspca_dev, 0x0028, v4l2_ctrl_g_ctrl(sd->lighting)); in cit_start_model2()
1919 cit_model2_Packet1(gspca_dev, 0x001e, 0x002f); in cit_start_model2()
1921 cit_model2_Packet1(gspca_dev, 0x0020, 0x0034); in cit_start_model2()
1923 cit_model2_Packet1(gspca_dev, 0x0022, 0x00a0); in cit_start_model2()
1926 cit_model2_Packet1(gspca_dev, 0x0030, 0x0004); in cit_start_model2()
1928 return 0; in cit_start_model2()
1933 const unsigned short compression = 0; /* 0=none, 7=best frame rate */ in cit_start_model3()
1934 int i, clock_div = 0; in cit_start_model3()
1938 cit_read_reg(gspca_dev, 0x128, 1); in cit_start_model3()
1940 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_model3()
1941 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model3()
1942 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model3()
1943 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_start_model3()
1944 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_start_model3()
1945 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_start_model3()
1946 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_start_model3()
1947 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_start_model3()
1948 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model3()
1949 cit_write_reg(gspca_dev, 0x0002, 0x0115); in cit_start_model3()
1950 cit_write_reg(gspca_dev, 0x0003, 0x0115); in cit_start_model3()
1951 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model3()
1952 cit_write_reg(gspca_dev, 0x000b, 0x0115); in cit_start_model3()
1956 if (0) { in cit_start_model3()
1957 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_start_model3()
1958 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_start_model3()
1959 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model3()
1960 cit_write_reg(gspca_dev, 0x0079, 0x012d); in cit_start_model3()
1961 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_start_model3()
1962 cit_write_reg(gspca_dev, 0xcd41, 0x0124); in cit_start_model3()
1963 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model3()
1964 cit_read_reg(gspca_dev, 0x0126, 1); in cit_start_model3()
1967 cit_model3_Packet1(gspca_dev, 0x000a, 0x0040); in cit_start_model3()
1968 cit_model3_Packet1(gspca_dev, 0x000b, 0x00f6); in cit_start_model3()
1969 cit_model3_Packet1(gspca_dev, 0x000c, 0x0002); in cit_start_model3()
1970 cit_model3_Packet1(gspca_dev, 0x000d, 0x0020); in cit_start_model3()
1971 cit_model3_Packet1(gspca_dev, 0x000e, 0x0033); in cit_start_model3()
1972 cit_model3_Packet1(gspca_dev, 0x000f, 0x0007); in cit_start_model3()
1973 cit_model3_Packet1(gspca_dev, 0x0010, 0x0000); in cit_start_model3()
1974 cit_model3_Packet1(gspca_dev, 0x0011, 0x0070); in cit_start_model3()
1975 cit_model3_Packet1(gspca_dev, 0x0012, 0x0030); in cit_start_model3()
1976 cit_model3_Packet1(gspca_dev, 0x0013, 0x0000); in cit_start_model3()
1977 cit_model3_Packet1(gspca_dev, 0x0014, 0x0001); in cit_start_model3()
1978 cit_model3_Packet1(gspca_dev, 0x0015, 0x0001); in cit_start_model3()
1979 cit_model3_Packet1(gspca_dev, 0x0016, 0x0001); in cit_start_model3()
1980 cit_model3_Packet1(gspca_dev, 0x0017, 0x0001); in cit_start_model3()
1981 cit_model3_Packet1(gspca_dev, 0x0018, 0x0000); in cit_start_model3()
1982 cit_model3_Packet1(gspca_dev, 0x001e, 0x00c3); in cit_start_model3()
1983 cit_model3_Packet1(gspca_dev, 0x0020, 0x0000); in cit_start_model3()
1984 cit_model3_Packet1(gspca_dev, 0x0028, 0x0010); in cit_start_model3()
1985 cit_model3_Packet1(gspca_dev, 0x0029, 0x0054); in cit_start_model3()
1986 cit_model3_Packet1(gspca_dev, 0x002a, 0x0013); in cit_start_model3()
1987 cit_model3_Packet1(gspca_dev, 0x002b, 0x0007); in cit_start_model3()
1988 cit_model3_Packet1(gspca_dev, 0x002d, 0x0028); in cit_start_model3()
1989 cit_model3_Packet1(gspca_dev, 0x002e, 0x0000); in cit_start_model3()
1990 cit_model3_Packet1(gspca_dev, 0x0031, 0x0000); in cit_start_model3()
1991 cit_model3_Packet1(gspca_dev, 0x0032, 0x0000); in cit_start_model3()
1992 cit_model3_Packet1(gspca_dev, 0x0033, 0x0000); in cit_start_model3()
1993 cit_model3_Packet1(gspca_dev, 0x0034, 0x0000); in cit_start_model3()
1994 cit_model3_Packet1(gspca_dev, 0x0035, 0x0038); in cit_start_model3()
1995 cit_model3_Packet1(gspca_dev, 0x003a, 0x0001); in cit_start_model3()
1996 cit_model3_Packet1(gspca_dev, 0x003c, 0x001e); in cit_start_model3()
1997 cit_model3_Packet1(gspca_dev, 0x003f, 0x000a); in cit_start_model3()
1998 cit_model3_Packet1(gspca_dev, 0x0041, 0x0000); in cit_start_model3()
1999 cit_model3_Packet1(gspca_dev, 0x0046, 0x003f); in cit_start_model3()
2000 cit_model3_Packet1(gspca_dev, 0x0047, 0x0000); in cit_start_model3()
2001 cit_model3_Packet1(gspca_dev, 0x0050, 0x0005); in cit_start_model3()
2002 cit_model3_Packet1(gspca_dev, 0x0052, 0x001a); in cit_start_model3()
2003 cit_model3_Packet1(gspca_dev, 0x0053, 0x0003); in cit_start_model3()
2004 cit_model3_Packet1(gspca_dev, 0x005a, 0x006b); in cit_start_model3()
2005 cit_model3_Packet1(gspca_dev, 0x005d, 0x001e); in cit_start_model3()
2006 cit_model3_Packet1(gspca_dev, 0x005e, 0x0030); in cit_start_model3()
2007 cit_model3_Packet1(gspca_dev, 0x005f, 0x0041); in cit_start_model3()
2008 cit_model3_Packet1(gspca_dev, 0x0064, 0x0008); in cit_start_model3()
2009 cit_model3_Packet1(gspca_dev, 0x0065, 0x0015); in cit_start_model3()
2010 cit_model3_Packet1(gspca_dev, 0x0068, 0x000f); in cit_start_model3()
2011 cit_model3_Packet1(gspca_dev, 0x0079, 0x0000); in cit_start_model3()
2012 cit_model3_Packet1(gspca_dev, 0x007a, 0x0000); in cit_start_model3()
2013 cit_model3_Packet1(gspca_dev, 0x007c, 0x003f); in cit_start_model3()
2014 cit_model3_Packet1(gspca_dev, 0x0082, 0x000f); in cit_start_model3()
2015 cit_model3_Packet1(gspca_dev, 0x0085, 0x0000); in cit_start_model3()
2016 cit_model3_Packet1(gspca_dev, 0x0099, 0x0000); in cit_start_model3()
2017 cit_model3_Packet1(gspca_dev, 0x009b, 0x0023); in cit_start_model3()
2018 cit_model3_Packet1(gspca_dev, 0x009c, 0x0022); in cit_start_model3()
2019 cit_model3_Packet1(gspca_dev, 0x009d, 0x0096); in cit_start_model3()
2020 cit_model3_Packet1(gspca_dev, 0x009e, 0x0096); in cit_start_model3()
2021 cit_model3_Packet1(gspca_dev, 0x009f, 0x000a); in cit_start_model3()
2025 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_model3()
2026 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_model3()
2027 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_model3()
2028 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2029 cit_write_reg(gspca_dev, 0x0024, 0x010b); /* Differs everywhere */ in cit_start_model3()
2030 cit_write_reg(gspca_dev, 0x00a9, 0x0119); in cit_start_model3()
2031 cit_write_reg(gspca_dev, 0x0016, 0x011b); in cit_start_model3()
2032 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same on 160x120, 320x240 */ in cit_start_model3()
2033 cit_write_reg(gspca_dev, 0x0003, 0x011e); /* Same on 160x120, 640x480 */ in cit_start_model3()
2034 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2035 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2036 cit_write_reg(gspca_dev, 0x0018, 0x0102); in cit_start_model3()
2037 cit_write_reg(gspca_dev, 0x0004, 0x0104); in cit_start_model3()
2038 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_model3()
2039 cit_write_reg(gspca_dev, 0x0028, 0x011c); in cit_start_model3()
2040 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2041 cit_write_reg(gspca_dev, 0x0000, 0x0118); in cit_start_model3()
2042 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_model3()
2043 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2044 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2048 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_model3()
2049 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_model3()
2050 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_model3()
2051 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2052 cit_write_reg(gspca_dev, 0x0028, 0x010b); /* Differs everywhere */ in cit_start_model3()
2053 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same */ in cit_start_model3()
2054 cit_write_reg(gspca_dev, 0x0000, 0x011e); in cit_start_model3()
2055 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2056 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2058 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2059 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2060 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2061 cit_write_reg(gspca_dev, 0x00d9, 0x0119); in cit_start_model3()
2062 cit_write_reg(gspca_dev, 0x0006, 0x011b); in cit_start_model3()
2063 cit_write_reg(gspca_dev, 0x0021, 0x0102); /* Same on 320x240, 640x480 */ in cit_start_model3()
2064 cit_write_reg(gspca_dev, 0x0010, 0x0104); in cit_start_model3()
2065 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_model3()
2066 cit_write_reg(gspca_dev, 0x003f, 0x011c); in cit_start_model3()
2067 cit_write_reg(gspca_dev, 0x001c, 0x0118); in cit_start_model3()
2068 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_model3()
2072 cit_write_reg(gspca_dev, 0x00f0, 0x0105); in cit_start_model3()
2073 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2074 cit_write_reg(gspca_dev, 0x0038, 0x010b); /* Differs everywhere */ in cit_start_model3()
2075 cit_write_reg(gspca_dev, 0x00d9, 0x0119); /* Same on 320x240, 640x480 */ in cit_start_model3()
2076 cit_write_reg(gspca_dev, 0x0006, 0x011b); /* Same on 320x240, 640x480 */ in cit_start_model3()
2077 cit_write_reg(gspca_dev, 0x0004, 0x011d); /* NC */ in cit_start_model3()
2078 cit_write_reg(gspca_dev, 0x0003, 0x011e); /* Same on 160x120, 640x480 */ in cit_start_model3()
2079 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2080 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2081 cit_write_reg(gspca_dev, 0x0021, 0x0102); /* Same on 320x240, 640x480 */ in cit_start_model3()
2082 cit_write_reg(gspca_dev, 0x0016, 0x0104); /* NC */ in cit_start_model3()
2083 cit_write_reg(gspca_dev, 0x0004, 0x011a); /* Same on 320x240, 640x480 */ in cit_start_model3()
2084 cit_write_reg(gspca_dev, 0x003f, 0x011c); /* Same on 320x240, 640x480 */ in cit_start_model3()
2085 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2086 cit_write_reg(gspca_dev, 0x001c, 0x0118); /* Same on 320x240, 640x480 */ in cit_start_model3()
2087 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2088 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2089 cit_write_reg(gspca_dev, 0x0040, 0x0101); in cit_start_model3()
2090 cit_write_reg(gspca_dev, 0x0040, 0x0103); in cit_start_model3()
2091 cit_write_reg(gspca_dev, 0x0000, 0x0132); /* Same on 320x240, 640x480 */ in cit_start_model3()
2096 cit_model3_Packet1(gspca_dev, 0x007e, 0x000e); /* Hue */ in cit_start_model3()
2097 cit_model3_Packet1(gspca_dev, 0x0036, 0x0011); /* Brightness */ in cit_start_model3()
2098 cit_model3_Packet1(gspca_dev, 0x0060, 0x0002); /* Sharpness */ in cit_start_model3()
2099 cit_model3_Packet1(gspca_dev, 0x0061, 0x0004); /* Sharpness */ in cit_start_model3()
2100 cit_model3_Packet1(gspca_dev, 0x0062, 0x0005); /* Sharpness */ in cit_start_model3()
2101 cit_model3_Packet1(gspca_dev, 0x0063, 0x0014); /* Sharpness */ in cit_start_model3()
2102 cit_model3_Packet1(gspca_dev, 0x0096, 0x00a0); /* Red sharpness */ in cit_start_model3()
2103 cit_model3_Packet1(gspca_dev, 0x0097, 0x0096); /* Blue sharpness */ in cit_start_model3()
2104 cit_model3_Packet1(gspca_dev, 0x0067, 0x0001); /* Contrast */ in cit_start_model3()
2105 cit_model3_Packet1(gspca_dev, 0x005b, 0x000c); /* Contrast */ in cit_start_model3()
2106 cit_model3_Packet1(gspca_dev, 0x005c, 0x0016); /* Contrast */ in cit_start_model3()
2107 cit_model3_Packet1(gspca_dev, 0x0098, 0x000b); in cit_start_model3()
2108 cit_model3_Packet1(gspca_dev, 0x002c, 0x0003); /* Was 1, broke 640x480 */ in cit_start_model3()
2109 cit_model3_Packet1(gspca_dev, 0x002f, 0x002a); in cit_start_model3()
2110 cit_model3_Packet1(gspca_dev, 0x0030, 0x0029); in cit_start_model3()
2111 cit_model3_Packet1(gspca_dev, 0x0037, 0x0002); in cit_start_model3()
2112 cit_model3_Packet1(gspca_dev, 0x0038, 0x0059); in cit_start_model3()
2113 cit_model3_Packet1(gspca_dev, 0x003d, 0x002e); in cit_start_model3()
2114 cit_model3_Packet1(gspca_dev, 0x003e, 0x0028); in cit_start_model3()
2115 cit_model3_Packet1(gspca_dev, 0x0078, 0x0005); in cit_start_model3()
2116 cit_model3_Packet1(gspca_dev, 0x007b, 0x0011); in cit_start_model3()
2117 cit_model3_Packet1(gspca_dev, 0x007d, 0x004b); in cit_start_model3()
2118 cit_model3_Packet1(gspca_dev, 0x007f, 0x0022); in cit_start_model3()
2119 cit_model3_Packet1(gspca_dev, 0x0080, 0x000c); in cit_start_model3()
2120 cit_model3_Packet1(gspca_dev, 0x0081, 0x000b); in cit_start_model3()
2121 cit_model3_Packet1(gspca_dev, 0x0083, 0x00fd); in cit_start_model3()
2122 cit_model3_Packet1(gspca_dev, 0x0086, 0x000b); in cit_start_model3()
2123 cit_model3_Packet1(gspca_dev, 0x0087, 0x000b); in cit_start_model3()
2124 cit_model3_Packet1(gspca_dev, 0x007e, 0x000e); in cit_start_model3()
2125 cit_model3_Packet1(gspca_dev, 0x0096, 0x00a0); /* Red sharpness */ in cit_start_model3()
2126 cit_model3_Packet1(gspca_dev, 0x0097, 0x0096); /* Blue sharpness */ in cit_start_model3()
2127 cit_model3_Packet1(gspca_dev, 0x0098, 0x000b); in cit_start_model3()
2132 cit_write_reg(gspca_dev, clock_div, 0x0111); /* Clock Divider */ in cit_start_model3()
2136 cit_model3_Packet1(gspca_dev, 0x001f, 0x0000); /* Same */ in cit_start_model3()
2137 cit_model3_Packet1(gspca_dev, 0x0039, 0x001f); /* Same */ in cit_start_model3()
2138 cit_model3_Packet1(gspca_dev, 0x003b, 0x003c); /* Same */ in cit_start_model3()
2139 cit_model3_Packet1(gspca_dev, 0x0040, 0x000a); in cit_start_model3()
2140 cit_model3_Packet1(gspca_dev, 0x0051, 0x000a); in cit_start_model3()
2143 cit_model3_Packet1(gspca_dev, 0x001f, 0x0000); /* Same */ in cit_start_model3()
2144 cit_model3_Packet1(gspca_dev, 0x0039, 0x001f); /* Same */ in cit_start_model3()
2145 cit_model3_Packet1(gspca_dev, 0x003b, 0x003c); /* Same */ in cit_start_model3()
2146 cit_model3_Packet1(gspca_dev, 0x0040, 0x0008); in cit_start_model3()
2147 cit_model3_Packet1(gspca_dev, 0x0051, 0x000b); in cit_start_model3()
2150 cit_model3_Packet1(gspca_dev, 0x001f, 0x0002); /* !Same */ in cit_start_model3()
2151 cit_model3_Packet1(gspca_dev, 0x0039, 0x003e); /* !Same */ in cit_start_model3()
2152 cit_model3_Packet1(gspca_dev, 0x0040, 0x0008); in cit_start_model3()
2153 cit_model3_Packet1(gspca_dev, 0x0051, 0x000a); in cit_start_model3()
2159 for (i = 0; i < ARRAY_SIZE(rca_initdata); i++) { in cit_start_model3()
2160 if (rca_initdata[i][0]) in cit_start_model3()
2161 cit_read_reg(gspca_dev, rca_initdata[i][2], 0); in cit_start_model3()
2168 return 0; in cit_start_model3()
2175 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_model4()
2176 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model4()
2177 cit_write_reg(gspca_dev, 0x00bc, 0x012c); in cit_start_model4()
2178 cit_write_reg(gspca_dev, 0x0080, 0x012b); in cit_start_model4()
2179 cit_write_reg(gspca_dev, 0x0000, 0x0108); in cit_start_model4()
2180 cit_write_reg(gspca_dev, 0x0001, 0x0133); in cit_start_model4()
2181 cit_write_reg(gspca_dev, 0x009b, 0x010f); in cit_start_model4()
2182 cit_write_reg(gspca_dev, 0x00bb, 0x010f); in cit_start_model4()
2183 cit_model4_Packet1(gspca_dev, 0x0038, 0x0000); in cit_start_model4()
2184 cit_model4_Packet1(gspca_dev, 0x000a, 0x005c); in cit_start_model4()
2186 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2187 cit_write_reg(gspca_dev, 0x0004, 0x012f); in cit_start_model4()
2188 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2189 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2190 cit_write_reg(gspca_dev, 0x00fb, 0x012e); in cit_start_model4()
2191 cit_write_reg(gspca_dev, 0x0000, 0x0130); in cit_start_model4()
2192 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2193 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2194 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2195 cit_write_reg(gspca_dev, 0x000c, 0x0127); in cit_start_model4()
2196 cit_write_reg(gspca_dev, 0x0009, 0x012e); in cit_start_model4()
2197 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2199 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2200 cit_write_reg(gspca_dev, 0x0012, 0x012f); in cit_start_model4()
2201 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2202 cit_write_reg(gspca_dev, 0x0008, 0x0127); in cit_start_model4()
2203 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2204 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2205 cit_write_reg(gspca_dev, 0x002a, 0x012d); in cit_start_model4()
2206 cit_write_reg(gspca_dev, 0x0000, 0x012f); in cit_start_model4()
2207 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2208 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2209 cit_model4_Packet1(gspca_dev, 0x0034, 0x0000); in cit_start_model4()
2213 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2214 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2215 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2216 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2217 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2218 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2219 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2220 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2221 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2222 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2223 cit_write_reg(gspca_dev, 0x000a, 0x0127); in cit_start_model4()
2224 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2225 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2226 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2227 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2228 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2229 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2230 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2231 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2232 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2233 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2234 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2235 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2236 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2237 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2238 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2239 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2240 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2241 cit_write_reg(gspca_dev, 0x00eb, 0x012e); in cit_start_model4()
2242 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2243 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2244 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2245 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2246 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2247 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2248 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2249 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2250 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2251 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2252 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2253 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2254 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2255 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2256 cit_write_reg(gspca_dev, 0x0017, 0x0127); in cit_start_model4()
2257 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2258 cit_write_reg(gspca_dev, 0x0031, 0x0130); in cit_start_model4()
2259 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2260 cit_write_reg(gspca_dev, 0x0017, 0x012d); in cit_start_model4()
2261 cit_write_reg(gspca_dev, 0x0078, 0x012f); in cit_start_model4()
2262 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2263 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2264 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2268 cit_write_reg(gspca_dev, 0x0038, 0x0119); in cit_start_model4()
2269 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2270 cit_write_reg(gspca_dev, 0x00b9, 0x010a); in cit_start_model4()
2271 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2272 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2273 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2274 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2275 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2276 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2277 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2278 cit_write_reg(gspca_dev, 0x000b, 0x0127); in cit_start_model4()
2279 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2280 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2281 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2282 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2283 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2284 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2285 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2286 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2287 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2288 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2289 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2290 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2291 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2292 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2293 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2294 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2295 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2296 cit_write_reg(gspca_dev, 0x00c7, 0x012e); in cit_start_model4()
2297 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2298 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2299 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2300 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2301 cit_write_reg(gspca_dev, 0x0025, 0x0127); in cit_start_model4()
2302 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2303 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2304 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2305 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2306 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2307 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2308 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2309 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2310 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2311 cit_write_reg(gspca_dev, 0x0048, 0x0127); in cit_start_model4()
2312 cit_write_reg(gspca_dev, 0x0035, 0x012e); in cit_start_model4()
2313 cit_write_reg(gspca_dev, 0x00d0, 0x0130); in cit_start_model4()
2314 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2315 cit_write_reg(gspca_dev, 0x0048, 0x012d); in cit_start_model4()
2316 cit_write_reg(gspca_dev, 0x0090, 0x012f); in cit_start_model4()
2317 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2318 cit_write_reg(gspca_dev, 0x0001, 0x0127); in cit_start_model4()
2319 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2323 cit_write_reg(gspca_dev, 0x0038, 0x0119); in cit_start_model4()
2324 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2325 cit_write_reg(gspca_dev, 0x00b9, 0x010a); in cit_start_model4()
2326 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2327 cit_write_reg(gspca_dev, 0x002c, 0x0103); in cit_start_model4()
2328 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2329 cit_write_reg(gspca_dev, 0x0024, 0x0105); in cit_start_model4()
2330 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2331 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2332 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2333 cit_write_reg(gspca_dev, 0x0007, 0x0127); in cit_start_model4()
2334 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2335 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2336 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2337 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_start_model4()
2338 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2339 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2340 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2341 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2342 cit_write_reg(gspca_dev, 0x005e, 0x012d); in cit_start_model4()
2343 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2344 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2345 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2346 cit_write_reg(gspca_dev, 0x0049, 0x0130); in cit_start_model4()
2347 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2348 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2349 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2350 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2351 cit_write_reg(gspca_dev, 0x00c7, 0x012e); in cit_start_model4()
2352 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2353 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2354 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2355 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2356 cit_write_reg(gspca_dev, 0x0028, 0x0127); in cit_start_model4()
2357 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2358 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2359 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2360 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2361 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2362 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2363 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2364 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2365 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2366 cit_write_reg(gspca_dev, 0x0010, 0x0127); in cit_start_model4()
2367 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2368 cit_write_reg(gspca_dev, 0x002a, 0x0130); in cit_start_model4()
2369 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2370 cit_write_reg(gspca_dev, 0x0010, 0x012d); in cit_start_model4()
2371 cit_write_reg(gspca_dev, 0x006d, 0x012f); in cit_start_model4()
2372 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2373 cit_write_reg(gspca_dev, 0x0001, 0x0127); in cit_start_model4()
2374 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2379 case 320: /* 320x240 */ in cit_start_model4()
2380 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2381 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2382 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2383 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2384 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2385 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2386 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2387 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2388 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2389 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2390 cit_write_reg(gspca_dev, 0x000a, 0x0127); in cit_start_model4()
2391 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2392 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2393 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2394 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2395 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2396 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2397 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2398 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2399 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2400 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2401 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2402 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2403 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2404 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2405 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2406 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2407 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2408 cit_write_reg(gspca_dev, 0x00eb, 0x012e); in cit_start_model4()
2409 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2410 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2411 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2412 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2413 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2414 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2415 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2416 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2417 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2418 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2419 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2420 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2421 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2422 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2423 cit_write_reg(gspca_dev, 0x0017, 0x0127); in cit_start_model4()
2424 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2425 cit_write_reg(gspca_dev, 0x0031, 0x0130); in cit_start_model4()
2426 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2427 cit_write_reg(gspca_dev, 0x0017, 0x012d); in cit_start_model4()
2428 cit_write_reg(gspca_dev, 0x0078, 0x012f); in cit_start_model4()
2429 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2430 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2431 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2435 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2436 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model4()
2437 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2438 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2439 cit_write_reg(gspca_dev, 0x002c, 0x0103); in cit_start_model4()
2440 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2441 cit_write_reg(gspca_dev, 0x0024, 0x0105); in cit_start_model4()
2442 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2443 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2444 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2445 cit_write_reg(gspca_dev, 0x0006, 0x0127); in cit_start_model4()
2446 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2447 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2448 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2449 cit_write_reg(gspca_dev, 0x0002, 0x012f); in cit_start_model4()
2450 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2451 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2452 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2453 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2454 cit_write_reg(gspca_dev, 0x005e, 0x012d); in cit_start_model4()
2455 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2456 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2457 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2458 cit_write_reg(gspca_dev, 0x0049, 0x0130); in cit_start_model4()
2459 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2460 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2461 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2462 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2463 cit_write_reg(gspca_dev, 0x00cf, 0x012e); in cit_start_model4()
2464 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2465 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2466 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2467 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2468 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2469 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2470 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2471 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2472 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2473 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2474 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2475 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2476 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2477 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2478 cit_write_reg(gspca_dev, 0x0010, 0x0127); in cit_start_model4()
2479 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2480 cit_write_reg(gspca_dev, 0x0025, 0x0130); in cit_start_model4()
2481 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2482 cit_write_reg(gspca_dev, 0x0010, 0x012d); in cit_start_model4()
2483 cit_write_reg(gspca_dev, 0x0048, 0x012f); in cit_start_model4()
2484 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2485 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2486 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2491 cit_model4_Packet1(gspca_dev, 0x0038, 0x0004); in cit_start_model4()
2493 return 0; in cit_start_model4()
2498 const unsigned short compression = 0; /* 0=none, 7=best frame rate */ in cit_start_ibm_netcam_pro()
2502 if (clock_div < 0) in cit_start_ibm_netcam_pro()
2505 cit_write_reg(gspca_dev, 0x0003, 0x0133); in cit_start_ibm_netcam_pro()
2506 cit_write_reg(gspca_dev, 0x0000, 0x0117); in cit_start_ibm_netcam_pro()
2507 cit_write_reg(gspca_dev, 0x0008, 0x0123); in cit_start_ibm_netcam_pro()
2508 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_ibm_netcam_pro()
2509 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_ibm_netcam_pro()
2510 /* cit_write_reg(gspca_dev, 0x0002, 0x0112); see sd_stop0 */ in cit_start_ibm_netcam_pro()
2511 cit_write_reg(gspca_dev, 0x0000, 0x0133); in cit_start_ibm_netcam_pro()
2512 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_start_ibm_netcam_pro()
2513 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_start_ibm_netcam_pro()
2514 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_start_ibm_netcam_pro()
2515 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_start_ibm_netcam_pro()
2516 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_ibm_netcam_pro()
2517 /* cit_write_reg(gspca_dev, 0x000b, 0x0115); see sd_stop0 */ in cit_start_ibm_netcam_pro()
2519 cit_model3_Packet1(gspca_dev, 0x0049, 0x0000); in cit_start_ibm_netcam_pro()
2521 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2522 cit_write_reg(gspca_dev, 0x003a, 0x0102); /* Hstart */ in cit_start_ibm_netcam_pro()
2523 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2524 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2525 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_ibm_netcam_pro()
2526 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2527 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_ibm_netcam_pro()
2528 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_ibm_netcam_pro()
2529 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_ibm_netcam_pro()
2533 cit_write_reg(gspca_dev, 0x0024, 0x010b); in cit_start_ibm_netcam_pro()
2534 cit_write_reg(gspca_dev, 0x0089, 0x0119); in cit_start_ibm_netcam_pro()
2535 cit_write_reg(gspca_dev, 0x000a, 0x011b); in cit_start_ibm_netcam_pro()
2536 cit_write_reg(gspca_dev, 0x0003, 0x011e); in cit_start_ibm_netcam_pro()
2537 cit_write_reg(gspca_dev, 0x0007, 0x0104); in cit_start_ibm_netcam_pro()
2538 cit_write_reg(gspca_dev, 0x0009, 0x011a); in cit_start_ibm_netcam_pro()
2539 cit_write_reg(gspca_dev, 0x008b, 0x011c); in cit_start_ibm_netcam_pro()
2540 cit_write_reg(gspca_dev, 0x0008, 0x0118); in cit_start_ibm_netcam_pro()
2541 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_ibm_netcam_pro()
2543 case 320: /* 320x240 */ in cit_start_ibm_netcam_pro()
2544 cit_write_reg(gspca_dev, 0x0028, 0x010b); in cit_start_ibm_netcam_pro()
2545 cit_write_reg(gspca_dev, 0x00d9, 0x0119); in cit_start_ibm_netcam_pro()
2546 cit_write_reg(gspca_dev, 0x0006, 0x011b); in cit_start_ibm_netcam_pro()
2547 cit_write_reg(gspca_dev, 0x0000, 0x011e); in cit_start_ibm_netcam_pro()
2548 cit_write_reg(gspca_dev, 0x000e, 0x0104); in cit_start_ibm_netcam_pro()
2549 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_ibm_netcam_pro()
2550 cit_write_reg(gspca_dev, 0x003f, 0x011c); in cit_start_ibm_netcam_pro()
2551 cit_write_reg(gspca_dev, 0x000c, 0x0118); in cit_start_ibm_netcam_pro()
2552 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_ibm_netcam_pro()
2556 cit_model3_Packet1(gspca_dev, 0x0019, 0x0031); in cit_start_ibm_netcam_pro()
2557 cit_model3_Packet1(gspca_dev, 0x001a, 0x0003); in cit_start_ibm_netcam_pro()
2558 cit_model3_Packet1(gspca_dev, 0x001b, 0x0038); in cit_start_ibm_netcam_pro()
2559 cit_model3_Packet1(gspca_dev, 0x001c, 0x0000); in cit_start_ibm_netcam_pro()
2560 cit_model3_Packet1(gspca_dev, 0x0024, 0x0001); in cit_start_ibm_netcam_pro()
2561 cit_model3_Packet1(gspca_dev, 0x0027, 0x0001); in cit_start_ibm_netcam_pro()
2562 cit_model3_Packet1(gspca_dev, 0x002a, 0x0004); in cit_start_ibm_netcam_pro()
2563 cit_model3_Packet1(gspca_dev, 0x0035, 0x000b); in cit_start_ibm_netcam_pro()
2564 cit_model3_Packet1(gspca_dev, 0x003f, 0x0001); in cit_start_ibm_netcam_pro()
2565 cit_model3_Packet1(gspca_dev, 0x0044, 0x0000); in cit_start_ibm_netcam_pro()
2566 cit_model3_Packet1(gspca_dev, 0x0054, 0x0000); in cit_start_ibm_netcam_pro()
2567 cit_model3_Packet1(gspca_dev, 0x00c4, 0x0000); in cit_start_ibm_netcam_pro()
2568 cit_model3_Packet1(gspca_dev, 0x00e7, 0x0001); in cit_start_ibm_netcam_pro()
2569 cit_model3_Packet1(gspca_dev, 0x00e9, 0x0001); in cit_start_ibm_netcam_pro()
2570 cit_model3_Packet1(gspca_dev, 0x00ee, 0x0000); in cit_start_ibm_netcam_pro()
2571 cit_model3_Packet1(gspca_dev, 0x00f3, 0x00c0); in cit_start_ibm_netcam_pro()
2573 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_ibm_netcam_pro()
2574 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_ibm_netcam_pro()
2578 for (i = 0; i < ARRAY_SIZE(rca_initdata); i++) { in cit_start_ibm_netcam_pro()
2579 if (rca_initdata[i][0]) in cit_start_ibm_netcam_pro()
2580 cit_read_reg(gspca_dev, rca_initdata[i][2], 0); in cit_start_ibm_netcam_pro()
2587 return 0; in cit_start_ibm_netcam_pro()
2597 if (packet_size < 0) in sd_start()
2622 cit_write_reg(gspca_dev, packet_size >> 8, 0x0106); in sd_start()
2623 cit_write_reg(gspca_dev, packet_size & 0xff, 0x0107); in sd_start()
2627 return 0; in sd_start()
2648 intfc = gspca_dev->dev->actconfig->intf_cache[0]; in sd_isoc_init()
2659 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(max_packet_size); in sd_isoc_init()
2661 return 0; in sd_isoc_init()
2684 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; in sd_isoc_nego()
2685 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in sd_isoc_nego()
2692 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); in sd_isoc_nego()
2695 if (ret < 0) in sd_isoc_nego()
2703 cit_write_reg(gspca_dev, 0x0000, 0x010c); in sd_stopN()
2716 restart from a gain of 0, which does not look good when in sd_stop0()
2718 /* cit_write_reg(gspca_dev, 0x0000, 0x0112); */ in sd_stop0()
2719 cit_write_reg(gspca_dev, 0x00c0, 0x0100); /* LED Off */ in sd_stop0()
2723 cit_read_reg(gspca_dev, 0x0100, 0); in sd_stop0()
2724 cit_write_reg(gspca_dev, 0x81, 0x0100); /* LED Off */ in sd_stop0()
2730 cit_model2_Packet1(gspca_dev, 0x0030, 0x0004); in sd_stop0()
2732 cit_write_reg(gspca_dev, 0x0080, 0x0100); /* LED Off */ in sd_stop0()
2733 cit_write_reg(gspca_dev, 0x0020, 0x0111); in sd_stop0()
2734 cit_write_reg(gspca_dev, 0x00a0, 0x0111); in sd_stop0()
2736 cit_model2_Packet1(gspca_dev, 0x0030, 0x0002); in sd_stop0()
2738 cit_write_reg(gspca_dev, 0x0020, 0x0111); in sd_stop0()
2739 cit_write_reg(gspca_dev, 0x0000, 0x0112); in sd_stop0()
2742 cit_write_reg(gspca_dev, 0x0006, 0x012c); in sd_stop0()
2743 cit_model3_Packet1(gspca_dev, 0x0046, 0x0000); in sd_stop0()
2744 cit_read_reg(gspca_dev, 0x0116, 0); in sd_stop0()
2745 cit_write_reg(gspca_dev, 0x0064, 0x0116); in sd_stop0()
2746 cit_read_reg(gspca_dev, 0x0115, 0); in sd_stop0()
2747 cit_write_reg(gspca_dev, 0x0003, 0x0115); in sd_stop0()
2748 cit_write_reg(gspca_dev, 0x0008, 0x0123); in sd_stop0()
2749 cit_write_reg(gspca_dev, 0x0000, 0x0117); in sd_stop0()
2750 cit_write_reg(gspca_dev, 0x0000, 0x0112); in sd_stop0()
2751 cit_write_reg(gspca_dev, 0x0080, 0x0100); in sd_stop0()
2754 cit_model3_Packet1(gspca_dev, 0x0049, 0x00ff); in sd_stop0()
2755 cit_write_reg(gspca_dev, 0x0006, 0x012c); in sd_stop0()
2756 cit_write_reg(gspca_dev, 0x0000, 0x0116); in sd_stop0()
2760 /* cit_write_reg(gspca_dev, 0x0006, 0x0115); */ in sd_stop0()
2761 cit_write_reg(gspca_dev, 0x0008, 0x0123); in sd_stop0()
2762 cit_write_reg(gspca_dev, 0x0000, 0x0117); in sd_stop0()
2763 cit_write_reg(gspca_dev, 0x0003, 0x0133); in sd_stop0()
2764 cit_write_reg(gspca_dev, 0x0000, 0x0111); in sd_stop0()
2767 /* cit_write_reg(gspca_dev, 0x0000, 0x0112); */ in sd_stop0()
2768 cit_write_reg(gspca_dev, 0x00c0, 0x0100); in sd_stop0()
2775 input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); in sd_stop0()
2777 sd->button_state = 0; in sd_stop0()
2785 u8 byte3 = 0, byte4 = 0; in cit_find_sof()
2795 byte3 = 0x02; in cit_find_sof()
2796 byte4 = 0x0a; in cit_find_sof()
2799 byte3 = 0x02; in cit_find_sof()
2800 byte4 = 0x0e; in cit_find_sof()
2802 case 320: /* 320x240 */ in cit_find_sof()
2803 byte3 = 0x02; in cit_find_sof()
2804 byte4 = 0x08; in cit_find_sof()
2807 byte3 = 0x02; in cit_find_sof()
2808 byte4 = 0x00; in cit_find_sof()
2811 byte3 = 0x03; in cit_find_sof()
2812 byte4 = 0x08; in cit_find_sof()
2818 byte3 = 0x00; in cit_find_sof()
2820 for (i = 0; i < len; i++) { in cit_find_sof()
2821 /* For this model the SOF always starts at offset 0 in cit_find_sof()
2827 case 0: in cit_find_sof()
2828 if (data[i] == 0x00) in cit_find_sof()
2832 if (data[i] == 0xff) in cit_find_sof()
2834 else if (data[i] == 0x00) in cit_find_sof()
2837 sd->sof_read = 0; in cit_find_sof()
2842 else if (data[i] == 0x00) in cit_find_sof()
2845 sd->sof_read = 0; in cit_find_sof()
2849 sd->sof_read = 0; in cit_find_sof()
2852 if (byte3 == 0x00 && data[i] == 0xff) in cit_find_sof()
2854 else if (data[i] == 0x00) in cit_find_sof()
2857 sd->sof_read = 0; in cit_find_sof()
2866 for (i = 0; i < len; i++) { in cit_find_sof()
2868 case 0: in cit_find_sof()
2869 if (data[i] == 0x00) in cit_find_sof()
2873 sd->sof_read = 0; in cit_find_sof()
2874 if (data[i] == 0xff) { in cit_find_sof()
2912 n = 0; in sd_pkt_scan()
2915 gspca_frame_add(gspca_dev, FIRST_PACKET, NULL, 0); in sd_pkt_scan()
2938 cit_read_reg(gspca_dev, 0x0113, 0); in cit_check_button()
2939 new_button_state = !gspca_dev->usb_buf[0]; in cit_check_button()
2945 cit_write_reg(gspca_dev, 0x01, 0x0113); in cit_check_button()
2962 gspca_dev->usb_err = 0; in sd_s_ctrl()
2965 return 0; in sd_s_ctrl()
3037 V4L2_CID_BRIGHTNESS, 0, 63, 1, 32); in sd_init_controls()
3040 V4L2_CID_CONTRAST, 0, 20, 1, 10); in sd_init_controls()
3043 V4L2_CID_HUE, 0, 127, 1, 63); in sd_init_controls()
3046 V4L2_CID_SHARPNESS, 0, 6, 1, 3); in sd_init_controls()
3049 V4L2_CID_BACKLIGHT_COMPENSATION, 0, 2, 1, 1); in sd_init_controls()
3052 V4L2_CID_HFLIP, 0, 1, 1, 0); in sd_init_controls()
3058 return 0; in sd_init_controls()
3096 { USB_DEVICE_VER(0x0545, 0x8080, 0x0001, 0x0001), .driver_info = CIT_MODEL0 },
3097 { USB_DEVICE_VER(0x0545, 0x8080, 0x0002, 0x0002), .driver_info = CIT_MODEL1 },
3098 { USB_DEVICE_VER(0x0545, 0x8080, 0x030a, 0x030a), .driver_info = CIT_MODEL2 },
3099 { USB_DEVICE_VER(0x0545, 0x8080, 0x0301, 0x0301), .driver_info = CIT_MODEL3 },
3100 { USB_DEVICE_VER(0x0545, 0x8002, 0x030a, 0x030a), .driver_info = CIT_MODEL4 },
3101 { USB_DEVICE_VER(0x0545, 0x800c, 0x030a, 0x030a), .driver_info = CIT_MODEL2 },
3102 { USB_DEVICE_VER(0x0545, 0x800d, 0x030a, 0x030a), .driver_info = CIT_MODEL4 },
3121 if (intf->cur_altsetting->desc.bInterfaceNumber != 0) in sd_probe()
3125 if (intf->cur_altsetting->desc.bInterfaceNumber != 0) in sd_probe()