• Home
  • Raw
  • Download

Lines Matching +full:0 +full:x05

33 #define IntelPCCameraPro 0
62 .priv = 0},
67 #define SPCA50X_REG_USB 0x02 /* spca505 501 */
69 #define SPCA50X_USB_CTRL 0x00 /* spca505 */
70 #define SPCA50X_CUSB_ENABLE 0x01 /* spca505 */
72 #define SPCA50X_REG_GLOBAL 0x03 /* spca505 */
73 #define SPCA50X_GMISC0_IDSEL 0x01 /* Global control device ID select spca505 */
74 #define SPCA50X_GLOBAL_MISC0 0x00 /* Global control miscellaneous 0 spca505 */
76 #define SPCA50X_GLOBAL_MISC1 0x01 /* 505 */
77 #define SPCA50X_GLOBAL_MISC3 0x03 /* 505 */
78 #define SPCA50X_GMISC3_SAA7113RST 0x20 /* Not sure about this one spca505 */
81 #define SPCA50X_REG_COMPRESS 0x04
90 {SPCA50X_REG_GLOBAL, 0x00, SPCA50X_GLOBAL_MISC3},
91 {SPCA50X_REG_GLOBAL, 0x00, SPCA50X_GLOBAL_MISC1},
95 {0x05, 0x01, 0x10},
97 {0x05, 0x0f, 0x11},
100 {0x06, 0x10, 0x08},
101 {0x06, 0x00, 0x09},
102 {0x06, 0x00, 0x0a},
103 {0x06, 0x00, 0x0b},
104 {0x06, 0x10, 0x0c},
105 {0x06, 0x00, 0x0d},
106 {0x06, 0x00, 0x0e},
107 {0x06, 0x00, 0x0f},
108 {0x06, 0x10, 0x10},
109 {0x06, 0x02, 0x11},
110 {0x06, 0x00, 0x12},
111 {0x06, 0x04, 0x13},
112 {0x06, 0x02, 0x14},
113 {0x06, 0x8a, 0x51},
114 {0x06, 0x40, 0x52},
115 {0x06, 0xb6, 0x53},
116 {0x06, 0x3d, 0x54},
126 {0x03, 0x04, 0x01},
128 {0x03, 0x00, 0x01},
130 /* Setup compression and image registers. 0x6 and 0x7 seem to be
132 {0x04, 0x10, 0x01},
133 /* DIFF(0x50), was (0x10) */
134 {0x04, 0x00, 0x04},
135 {0x04, 0x00, 0x05},
136 {0x04, 0x20, 0x06},
137 {0x04, 0x20, 0x07},
139 {0x08, 0x0a, 0x00},
140 /* DIFF (0x4a), was (0xa) */
142 {0x05, 0x00, 0x10},
143 {0x05, 0x00, 0x11},
144 {0x05, 0x00, 0x00},
146 {0x05, 0x00, 0x01},
148 {0x05, 0x00, 0x02},
150 {0x05, 0x00, 0x03},
152 {0x05, 0x00, 0x04},
154 {0x05, 0x80, 0x05},
156 {0x05, 0xe0, 0x06},
158 {0x05, 0x20, 0x07},
160 {0x05, 0xa0, 0x08},
162 {0x05, 0x0, 0x12},
164 {0x05, 0x02, 0x0f},
166 {0x05, 0x10, 0x46},
168 {0x05, 0x8, 0x4a},
171 {0x03, 0x08, 0x03},
172 /* DIFF (0x3,0x28,0x3) */
173 {0x03, 0x08, 0x01},
174 {0x03, 0x0c, 0x03},
176 {0x03, 0x21, 0x00},
177 /* DIFF (0x39) */
180 {0x06, 0x10, 0x08},
181 {0x06, 0x00, 0x09},
182 {0x06, 0x00, 0x0a},
183 {0x06, 0x00, 0x0b},
184 {0x06, 0x10, 0x0c},
185 {0x06, 0x00, 0x0d},
186 {0x06, 0x00, 0x0e},
187 {0x06, 0x00, 0x0f},
188 {0x06, 0x10, 0x10},
189 {0x06, 0x02, 0x11},
190 {0x06, 0x00, 0x12},
191 {0x06, 0x04, 0x13},
192 {0x06, 0x02, 0x14},
193 {0x06, 0x8a, 0x51},
194 {0x06, 0x40, 0x52},
195 {0x06, 0xb6, 0x53},
196 {0x06, 0x3d, 0x54},
199 {0x06, 0x3f, 0x1},
201 {0x06, 0x10, 0x02},
202 {0x06, 0x64, 0x07},
203 {0x06, 0x10, 0x08},
204 {0x06, 0x00, 0x09},
205 {0x06, 0x00, 0x0a},
206 {0x06, 0x00, 0x0b},
207 {0x06, 0x10, 0x0c},
208 {0x06, 0x00, 0x0d},
209 {0x06, 0x00, 0x0e},
210 {0x06, 0x00, 0x0f},
211 {0x06, 0x10, 0x10},
212 {0x06, 0x02, 0x11},
213 {0x06, 0x00, 0x12},
214 {0x06, 0x04, 0x13},
215 {0x06, 0x02, 0x14},
216 {0x06, 0x8a, 0x51},
217 {0x06, 0x40, 0x52},
218 {0x06, 0xb6, 0x53},
219 {0x06, 0x3d, 0x54},
220 {0x06, 0x60, 0x57},
221 {0x06, 0x20, 0x58},
222 {0x06, 0x15, 0x59},
223 {0x06, 0x05, 0x5a},
225 {0x05, 0x01, 0xc0},
226 {0x05, 0x10, 0xcb},
227 {0x05, 0x80, 0xc1},
229 {0x05, 0x0, 0xc2},
230 /* 4 was 0 */
231 {0x05, 0x00, 0xca},
232 {0x05, 0x80, 0xc1},
234 {0x05, 0x04, 0xc2},
235 {0x05, 0x00, 0xca},
236 {0x05, 0x0, 0xc1},
238 {0x05, 0x00, 0xc2},
239 {0x05, 0x00, 0xca},
240 {0x05, 0x40, 0xc1},
242 {0x05, 0x17, 0xc2},
243 {0x05, 0x00, 0xca},
244 {0x05, 0x80, 0xc1},
246 {0x05, 0x06, 0xc2},
247 {0x05, 0x00, 0xca},
248 {0x05, 0x80, 0xc1},
250 {0x05, 0x04, 0xc2},
251 {0x05, 0x00, 0xca},
253 {0x03, 0x4c, 0x3},
254 {0x03, 0x18, 0x1},
256 {0x06, 0x70, 0x51},
257 {0x06, 0xbe, 0x53},
258 {0x06, 0x71, 0x57},
259 {0x06, 0x20, 0x58},
260 {0x06, 0x05, 0x59},
261 {0x06, 0x15, 0x5a},
263 {0x04, 0x00, 0x08},
264 /* Compress = OFF (0x1 to turn on) */
265 {0x04, 0x12, 0x09},
266 {0x04, 0x21, 0x0a},
267 {0x04, 0x10, 0x0b},
268 {0x04, 0x21, 0x0c},
269 {0x04, 0x05, 0x00},
271 {0x04, 0x00, 0x01},
273 {0x06, 0x3f, 0x01},
275 {0x04, 0x00, 0x04},
276 {0x04, 0x00, 0x05},
277 {0x04, 0x40, 0x06},
278 {0x04, 0x40, 0x07},
280 {0x06, 0x1c, 0x17},
281 {0x06, 0xe2, 0x19},
282 {0x06, 0x1c, 0x1b},
283 {0x06, 0xe2, 0x1d},
284 {0x06, 0xaa, 0x1f},
285 {0x06, 0x70, 0x20},
287 {0x05, 0x01, 0x10},
288 {0x05, 0x00, 0x11},
289 {0x05, 0x01, 0x00},
290 {0x05, 0x05, 0x01},
291 {0x05, 0x00, 0xc1},
293 {0x05, 0x00, 0xc2},
294 {0x05, 0x00, 0xca},
296 {0x06, 0x70, 0x51},
297 {0x06, 0xbe, 0x53},
306 #define initial_brightness 0x7f /* 0x0(white)-0xff(black) */
307 /* #define initial_brightness 0x0 //0x0(white)-0xff(black) */
313 {0x02, 0x00, 0x00}, /* init */
314 {0x02, 0x00, 0x01},
315 {0x02, 0x00, 0x02},
316 {0x02, 0x00, 0x03},
317 {0x02, 0x00, 0x04},
318 {0x02, 0x00, 0x05},
319 {0x02, 0x00, 0x06},
320 {0x02, 0x00, 0x07},
321 {0x02, 0x00, 0x08},
322 {0x02, 0x00, 0x09},
323 {0x03, 0x00, 0x00},
324 {0x03, 0x00, 0x01},
325 {0x03, 0x00, 0x02},
326 {0x03, 0x00, 0x03},
327 {0x03, 0x00, 0x04},
328 {0x03, 0x00, 0x05},
329 {0x03, 0x00, 0x06},
330 {0x04, 0x00, 0x00},
331 {0x04, 0x00, 0x02},
332 {0x04, 0x00, 0x04},
333 {0x04, 0x00, 0x05},
334 {0x04, 0x00, 0x06},
335 {0x04, 0x00, 0x07},
336 {0x04, 0x00, 0x08},
337 {0x04, 0x00, 0x09},
338 {0x04, 0x00, 0x0a},
339 {0x04, 0x00, 0x0b},
340 {0x04, 0x00, 0x0c},
341 {0x07, 0x00, 0x00},
342 {0x07, 0x00, 0x03},
343 {0x08, 0x00, 0x00},
344 {0x08, 0x00, 0x01},
345 {0x08, 0x00, 0x02},
346 {0x06, 0x18, 0x08},
347 {0x06, 0xfc, 0x09},
348 {0x06, 0xfc, 0x0a},
349 {0x06, 0xfc, 0x0b},
350 {0x06, 0x18, 0x0c},
351 {0x06, 0xfc, 0x0d},
352 {0x06, 0xfc, 0x0e},
353 {0x06, 0xfc, 0x0f},
354 {0x06, 0x18, 0x10},
355 {0x06, 0xfe, 0x12},
356 {0x06, 0x00, 0x11},
357 {0x06, 0x00, 0x14},
358 {0x06, 0x00, 0x13},
359 {0x06, 0x28, 0x51},
360 {0x06, 0xff, 0x53},
361 {0x02, 0x00, 0x08},
363 {0x03, 0x00, 0x03},
364 {0x03, 0x10, 0x03},
373 /* {0x02,0x00,0x00}, */
374 {0x03, 0x04, 0x01}, /* rst */
375 {0x03, 0x00, 0x01},
376 {0x03, 0x00, 0x00},
377 {0x03, 0x21, 0x00},
378 {0x03, 0x00, 0x04},
379 {0x03, 0x00, 0x03},
380 {0x03, 0x18, 0x03},
381 {0x03, 0x08, 0x01},
382 {0x03, 0x1c, 0x03},
383 {0x03, 0x5c, 0x03},
384 {0x03, 0x5c, 0x03},
385 {0x03, 0x18, 0x01},
388 {0x04, 0x10, 0x01},
389 {0x04, 0x00, 0x04},
390 {0x04, 0x00, 0x05},
391 {0x04, 0x20, 0x06},
392 {0x04, 0x20, 0x07},
394 {0x08, 0x0a, 0x00},
396 {0x05, 0x00, 0x10},
397 {0x05, 0x00, 0x11},
398 {0x05, 0x00, 0x12},
399 {0x05, 0x6f, 0x00},
400 {0x05, initial_brightness >> 6, 0x00},
401 {0x05, (initial_brightness << 2) & 0xff, 0x01},
402 {0x05, 0x00, 0x02},
403 {0x05, 0x01, 0x03},
404 {0x05, 0x00, 0x04},
405 {0x05, 0x03, 0x05},
406 {0x05, 0xe0, 0x06},
407 {0x05, 0x20, 0x07},
408 {0x05, 0xa0, 0x08},
409 {0x05, 0x00, 0x12},
410 {0x05, 0x02, 0x0f},
411 {0x05, 0x80, 0x14}, /* max exposure off (0=on) */
412 {0x05, 0x01, 0xb0},
413 {0x05, 0x01, 0xbf},
414 {0x03, 0x02, 0x06},
415 {0x05, 0x10, 0x46},
416 {0x05, 0x08, 0x4a},
418 {0x06, 0x00, 0x01},
419 {0x06, 0x10, 0x02},
420 {0x06, 0x64, 0x07},
421 {0x06, 0x18, 0x08},
422 {0x06, 0xfc, 0x09},
423 {0x06, 0xfc, 0x0a},
424 {0x06, 0xfc, 0x0b},
425 {0x04, 0x00, 0x01},
426 {0x06, 0x18, 0x0c},
427 {0x06, 0xfc, 0x0d},
428 {0x06, 0xfc, 0x0e},
429 {0x06, 0xfc, 0x0f},
430 {0x06, 0x11, 0x10}, /* contrast */
431 {0x06, 0x00, 0x11},
432 {0x06, 0xfe, 0x12},
433 {0x06, 0x00, 0x13},
434 {0x06, 0x00, 0x14},
435 {0x06, 0x9d, 0x51},
436 {0x06, 0x40, 0x52},
437 {0x06, 0x7c, 0x53},
438 {0x06, 0x40, 0x54},
439 {0x06, 0x02, 0x57},
440 {0x06, 0x03, 0x58},
441 {0x06, 0x15, 0x59},
442 {0x06, 0x05, 0x5a},
443 {0x06, 0x03, 0x56},
444 {0x06, 0x02, 0x3f},
445 {0x06, 0x00, 0x40},
446 {0x06, 0x39, 0x41},
447 {0x06, 0x69, 0x42},
448 {0x06, 0x87, 0x43},
449 {0x06, 0x9e, 0x44},
450 {0x06, 0xb1, 0x45},
451 {0x06, 0xbf, 0x46},
452 {0x06, 0xcc, 0x47},
453 {0x06, 0xd5, 0x48},
454 {0x06, 0xdd, 0x49},
455 {0x06, 0xe3, 0x4a},
456 {0x06, 0xe8, 0x4b},
457 {0x06, 0xed, 0x4c},
458 {0x06, 0xf2, 0x4d},
459 {0x06, 0xf7, 0x4e},
460 {0x06, 0xfc, 0x4f},
461 {0x06, 0xff, 0x50},
463 {0x05, 0x01, 0xc0},
464 {0x05, 0x10, 0xcb},
465 {0x05, 0x40, 0xc1},
466 {0x05, 0x04, 0xc2},
467 {0x05, 0x00, 0xca},
468 {0x05, 0x40, 0xc1},
469 {0x05, 0x09, 0xc2},
470 {0x05, 0x00, 0xca},
471 {0x05, 0xc0, 0xc1},
472 {0x05, 0x09, 0xc2},
473 {0x05, 0x00, 0xca},
474 {0x05, 0x40, 0xc1},
475 {0x05, 0x59, 0xc2},
476 {0x05, 0x00, 0xca},
477 {0x04, 0x00, 0x01},
478 {0x05, 0x80, 0xc1},
479 {0x05, 0xec, 0xc2},
480 {0x05, 0x0, 0xca},
482 {0x06, 0x02, 0x57},
483 {0x06, 0x01, 0x58},
484 {0x06, 0x15, 0x59},
485 {0x06, 0x0a, 0x5a},
486 {0x06, 0x01, 0x57},
487 {0x06, 0x8a, 0x03},
488 {0x06, 0x0a, 0x6c},
489 {0x06, 0x30, 0x01},
490 {0x06, 0x20, 0x02},
491 {0x06, 0x00, 0x03},
493 {0x05, 0x8c, 0x25},
495 {0x06, 0x4d, 0x51}, /* maybe saturation (4d) */
496 {0x06, 0x84, 0x53}, /* making green (84) */
497 {0x06, 0x00, 0x57}, /* sharpness (1) */
498 {0x06, 0x18, 0x08},
499 {0x06, 0xfc, 0x09},
500 {0x06, 0xfc, 0x0a},
501 {0x06, 0xfc, 0x0b},
502 {0x06, 0x18, 0x0c}, /* maybe hue (18) */
503 {0x06, 0xfc, 0x0d},
504 {0x06, 0xfc, 0x0e},
505 {0x06, 0xfc, 0x0f},
506 {0x06, 0x18, 0x10}, /* maybe contrast (18) */
508 {0x05, 0x01, 0x02},
510 {0x04, 0x00, 0x08}, /* compression */
511 {0x04, 0x12, 0x09},
512 {0x04, 0x21, 0x0a},
513 {0x04, 0x10, 0x0b},
514 {0x04, 0x21, 0x0c},
515 {0x04, 0x1d, 0x00}, /* imagetype (1d) */
516 {0x04, 0x41, 0x01}, /* hardware snapcontrol */
518 {0x04, 0x00, 0x04},
519 {0x04, 0x00, 0x05},
520 {0x04, 0x10, 0x06},
521 {0x04, 0x10, 0x07},
522 {0x04, 0x40, 0x06},
523 {0x04, 0x40, 0x07},
524 {0x04, 0x00, 0x04},
525 {0x04, 0x00, 0x05},
527 {0x06, 0x1c, 0x17},
528 {0x06, 0xe2, 0x19},
529 {0x06, 0x1c, 0x1b},
530 {0x06, 0xe2, 0x1d},
531 {0x06, 0x5f, 0x1f},
532 {0x06, 0x32, 0x20},
534 {0x05, initial_brightness >> 6, 0x00},
535 {0x05, (initial_brightness << 2) & 0xff, 0x01},
536 {0x05, 0x06, 0xc1},
537 {0x05, 0x58, 0xc2},
538 {0x05, 0x00, 0xca},
539 {0x05, 0x00, 0x11},
550 usb_sndctrlpipe(dev, 0), in reg_write()
553 value, index, NULL, 0, 500); in reg_write()
554 gspca_dbg(gspca_dev, D_USBO, "reg write: 0x%02x,0x%02x:0x%02x, %d\n", in reg_write()
556 if (ret < 0) in reg_write()
569 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_read()
572 0, /* value */ in reg_read()
576 if (ret < 0) in reg_read()
578 return (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]; in reg_read()
584 int ret, i = 0; in write_vector()
586 while (data[i][0] != 0) { in write_vector()
587 ret = reg_write(gspca_dev, data[i][0], data[i][2], in write_vector()
589 if (ret < 0) in write_vector()
593 return 0; in write_vector()
611 return 0; in sd_config()
624 return 0; in sd_init()
629 reg_write(gspca_dev, 0x05, 0x00, (255 - brightness) >> 6); in setbrightness()
630 reg_write(gspca_dev, 0x05, 0x01, (255 - brightness) << 2); in setbrightness()
639 {0x00, 0x10, 0x10}, /* 640x480 */ in sd_start()
640 {0x01, 0x1a, 0x1a}, /* 352x288 */ in sd_start()
641 {0x02, 0x1c, 0x1d}, /* 320x240 */ in sd_start()
642 {0x04, 0x34, 0x34}, /* 176x144 */ in sd_start()
643 {0x05, 0x40, 0x40} /* 160x120 */ in sd_start()
650 ret = reg_read(gspca_dev, 0x06, 0x16); in sd_start()
652 if (ret < 0) { in sd_start()
656 if (ret != 0x0101) { in sd_start()
657 pr_err("After vector read returns 0x%04x should be 0x0101\n", in sd_start()
661 ret = reg_write(gspca_dev, 0x06, 0x16, 0x0a); in sd_start()
662 if (ret < 0) in sd_start()
664 reg_write(gspca_dev, 0x05, 0xc2, 0x12); in sd_start()
669 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_start()
672 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x00, mode_tb[mode][0]); in sd_start()
673 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x06, mode_tb[mode][1]); in sd_start()
674 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x07, mode_tb[mode][2]); in sd_start()
684 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_stopN()
687 /* called on streamoff with alt 0 and on disconnect */
694 reg_write(gspca_dev, 0x03, 0x03, 0x20); in sd_stop0()
695 reg_write(gspca_dev, 0x03, 0x01, 0x00); in sd_stop0()
696 reg_write(gspca_dev, 0x03, 0x00, 0x01); in sd_stop0()
697 reg_write(gspca_dev, 0x05, 0x10, 0x01); in sd_stop0()
698 reg_write(gspca_dev, 0x05, 0x11, 0x0f); in sd_stop0()
705 switch (data[0]) { in sd_pkt_scan()
706 case 0: /* start of frame */ in sd_pkt_scan()
707 gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); in sd_pkt_scan()
712 case 0xff: /* drop */ in sd_pkt_scan()
727 gspca_dev->usb_err = 0; in sd_s_ctrl()
730 return 0; in sd_s_ctrl()
751 V4L2_CID_BRIGHTNESS, 0, 255, 1, 127); in sd_init_controls()
757 return 0; in sd_init_controls()
774 {USB_DEVICE(0x041e, 0x401d), .driver_info = Nxultra},
775 {USB_DEVICE(0x0733, 0x0430), .driver_info = IntelPCCameraPro},