Lines Matching +full:0 +full:x53
23 #define IntelPCCameraPro 0
52 .priv = 0},
57 #define SPCA50X_REG_USB 0x02 /* spca505 501 */
59 #define SPCA50X_USB_CTRL 0x00 /* spca505 */
60 #define SPCA50X_CUSB_ENABLE 0x01 /* spca505 */
62 #define SPCA50X_REG_GLOBAL 0x03 /* spca505 */
63 #define SPCA50X_GMISC0_IDSEL 0x01 /* Global control device ID select spca505 */
64 #define SPCA50X_GLOBAL_MISC0 0x00 /* Global control miscellaneous 0 spca505 */
66 #define SPCA50X_GLOBAL_MISC1 0x01 /* 505 */
67 #define SPCA50X_GLOBAL_MISC3 0x03 /* 505 */
68 #define SPCA50X_GMISC3_SAA7113RST 0x20 /* Not sure about this one spca505 */
71 #define SPCA50X_REG_COMPRESS 0x04
80 {SPCA50X_REG_GLOBAL, 0x00, SPCA50X_GLOBAL_MISC3},
81 {SPCA50X_REG_GLOBAL, 0x00, SPCA50X_GLOBAL_MISC1},
85 {0x05, 0x01, 0x10},
87 {0x05, 0x0f, 0x11},
90 {0x06, 0x10, 0x08},
91 {0x06, 0x00, 0x09},
92 {0x06, 0x00, 0x0a},
93 {0x06, 0x00, 0x0b},
94 {0x06, 0x10, 0x0c},
95 {0x06, 0x00, 0x0d},
96 {0x06, 0x00, 0x0e},
97 {0x06, 0x00, 0x0f},
98 {0x06, 0x10, 0x10},
99 {0x06, 0x02, 0x11},
100 {0x06, 0x00, 0x12},
101 {0x06, 0x04, 0x13},
102 {0x06, 0x02, 0x14},
103 {0x06, 0x8a, 0x51},
104 {0x06, 0x40, 0x52},
105 {0x06, 0xb6, 0x53},
106 {0x06, 0x3d, 0x54},
116 {0x03, 0x04, 0x01},
118 {0x03, 0x00, 0x01},
120 /* Setup compression and image registers. 0x6 and 0x7 seem to be
122 {0x04, 0x10, 0x01},
123 /* DIFF(0x50), was (0x10) */
124 {0x04, 0x00, 0x04},
125 {0x04, 0x00, 0x05},
126 {0x04, 0x20, 0x06},
127 {0x04, 0x20, 0x07},
129 {0x08, 0x0a, 0x00},
130 /* DIFF (0x4a), was (0xa) */
132 {0x05, 0x00, 0x10},
133 {0x05, 0x00, 0x11},
134 {0x05, 0x00, 0x00},
136 {0x05, 0x00, 0x01},
138 {0x05, 0x00, 0x02},
140 {0x05, 0x00, 0x03},
142 {0x05, 0x00, 0x04},
144 {0x05, 0x80, 0x05},
146 {0x05, 0xe0, 0x06},
148 {0x05, 0x20, 0x07},
150 {0x05, 0xa0, 0x08},
152 {0x05, 0x0, 0x12},
154 {0x05, 0x02, 0x0f},
156 {0x05, 0x10, 0x46},
158 {0x05, 0x8, 0x4a},
161 {0x03, 0x08, 0x03},
162 /* DIFF (0x3,0x28,0x3) */
163 {0x03, 0x08, 0x01},
164 {0x03, 0x0c, 0x03},
166 {0x03, 0x21, 0x00},
167 /* DIFF (0x39) */
170 {0x06, 0x10, 0x08},
171 {0x06, 0x00, 0x09},
172 {0x06, 0x00, 0x0a},
173 {0x06, 0x00, 0x0b},
174 {0x06, 0x10, 0x0c},
175 {0x06, 0x00, 0x0d},
176 {0x06, 0x00, 0x0e},
177 {0x06, 0x00, 0x0f},
178 {0x06, 0x10, 0x10},
179 {0x06, 0x02, 0x11},
180 {0x06, 0x00, 0x12},
181 {0x06, 0x04, 0x13},
182 {0x06, 0x02, 0x14},
183 {0x06, 0x8a, 0x51},
184 {0x06, 0x40, 0x52},
185 {0x06, 0xb6, 0x53},
186 {0x06, 0x3d, 0x54},
189 {0x06, 0x3f, 0x1},
191 {0x06, 0x10, 0x02},
192 {0x06, 0x64, 0x07},
193 {0x06, 0x10, 0x08},
194 {0x06, 0x00, 0x09},
195 {0x06, 0x00, 0x0a},
196 {0x06, 0x00, 0x0b},
197 {0x06, 0x10, 0x0c},
198 {0x06, 0x00, 0x0d},
199 {0x06, 0x00, 0x0e},
200 {0x06, 0x00, 0x0f},
201 {0x06, 0x10, 0x10},
202 {0x06, 0x02, 0x11},
203 {0x06, 0x00, 0x12},
204 {0x06, 0x04, 0x13},
205 {0x06, 0x02, 0x14},
206 {0x06, 0x8a, 0x51},
207 {0x06, 0x40, 0x52},
208 {0x06, 0xb6, 0x53},
209 {0x06, 0x3d, 0x54},
210 {0x06, 0x60, 0x57},
211 {0x06, 0x20, 0x58},
212 {0x06, 0x15, 0x59},
213 {0x06, 0x05, 0x5a},
215 {0x05, 0x01, 0xc0},
216 {0x05, 0x10, 0xcb},
217 {0x05, 0x80, 0xc1},
219 {0x05, 0x0, 0xc2},
220 /* 4 was 0 */
221 {0x05, 0x00, 0xca},
222 {0x05, 0x80, 0xc1},
224 {0x05, 0x04, 0xc2},
225 {0x05, 0x00, 0xca},
226 {0x05, 0x0, 0xc1},
228 {0x05, 0x00, 0xc2},
229 {0x05, 0x00, 0xca},
230 {0x05, 0x40, 0xc1},
232 {0x05, 0x17, 0xc2},
233 {0x05, 0x00, 0xca},
234 {0x05, 0x80, 0xc1},
236 {0x05, 0x06, 0xc2},
237 {0x05, 0x00, 0xca},
238 {0x05, 0x80, 0xc1},
240 {0x05, 0x04, 0xc2},
241 {0x05, 0x00, 0xca},
243 {0x03, 0x4c, 0x3},
244 {0x03, 0x18, 0x1},
246 {0x06, 0x70, 0x51},
247 {0x06, 0xbe, 0x53},
248 {0x06, 0x71, 0x57},
249 {0x06, 0x20, 0x58},
250 {0x06, 0x05, 0x59},
251 {0x06, 0x15, 0x5a},
253 {0x04, 0x00, 0x08},
254 /* Compress = OFF (0x1 to turn on) */
255 {0x04, 0x12, 0x09},
256 {0x04, 0x21, 0x0a},
257 {0x04, 0x10, 0x0b},
258 {0x04, 0x21, 0x0c},
259 {0x04, 0x05, 0x00},
261 {0x04, 0x00, 0x01},
263 {0x06, 0x3f, 0x01},
265 {0x04, 0x00, 0x04},
266 {0x04, 0x00, 0x05},
267 {0x04, 0x40, 0x06},
268 {0x04, 0x40, 0x07},
270 {0x06, 0x1c, 0x17},
271 {0x06, 0xe2, 0x19},
272 {0x06, 0x1c, 0x1b},
273 {0x06, 0xe2, 0x1d},
274 {0x06, 0xaa, 0x1f},
275 {0x06, 0x70, 0x20},
277 {0x05, 0x01, 0x10},
278 {0x05, 0x00, 0x11},
279 {0x05, 0x01, 0x00},
280 {0x05, 0x05, 0x01},
281 {0x05, 0x00, 0xc1},
283 {0x05, 0x00, 0xc2},
284 {0x05, 0x00, 0xca},
286 {0x06, 0x70, 0x51},
287 {0x06, 0xbe, 0x53},
296 #define initial_brightness 0x7f /* 0x0(white)-0xff(black) */
297 /* #define initial_brightness 0x0 //0x0(white)-0xff(black) */
303 {0x02, 0x00, 0x00}, /* init */
304 {0x02, 0x00, 0x01},
305 {0x02, 0x00, 0x02},
306 {0x02, 0x00, 0x03},
307 {0x02, 0x00, 0x04},
308 {0x02, 0x00, 0x05},
309 {0x02, 0x00, 0x06},
310 {0x02, 0x00, 0x07},
311 {0x02, 0x00, 0x08},
312 {0x02, 0x00, 0x09},
313 {0x03, 0x00, 0x00},
314 {0x03, 0x00, 0x01},
315 {0x03, 0x00, 0x02},
316 {0x03, 0x00, 0x03},
317 {0x03, 0x00, 0x04},
318 {0x03, 0x00, 0x05},
319 {0x03, 0x00, 0x06},
320 {0x04, 0x00, 0x00},
321 {0x04, 0x00, 0x02},
322 {0x04, 0x00, 0x04},
323 {0x04, 0x00, 0x05},
324 {0x04, 0x00, 0x06},
325 {0x04, 0x00, 0x07},
326 {0x04, 0x00, 0x08},
327 {0x04, 0x00, 0x09},
328 {0x04, 0x00, 0x0a},
329 {0x04, 0x00, 0x0b},
330 {0x04, 0x00, 0x0c},
331 {0x07, 0x00, 0x00},
332 {0x07, 0x00, 0x03},
333 {0x08, 0x00, 0x00},
334 {0x08, 0x00, 0x01},
335 {0x08, 0x00, 0x02},
336 {0x06, 0x18, 0x08},
337 {0x06, 0xfc, 0x09},
338 {0x06, 0xfc, 0x0a},
339 {0x06, 0xfc, 0x0b},
340 {0x06, 0x18, 0x0c},
341 {0x06, 0xfc, 0x0d},
342 {0x06, 0xfc, 0x0e},
343 {0x06, 0xfc, 0x0f},
344 {0x06, 0x18, 0x10},
345 {0x06, 0xfe, 0x12},
346 {0x06, 0x00, 0x11},
347 {0x06, 0x00, 0x14},
348 {0x06, 0x00, 0x13},
349 {0x06, 0x28, 0x51},
350 {0x06, 0xff, 0x53},
351 {0x02, 0x00, 0x08},
353 {0x03, 0x00, 0x03},
354 {0x03, 0x10, 0x03},
363 /* {0x02,0x00,0x00}, */
364 {0x03, 0x04, 0x01}, /* rst */
365 {0x03, 0x00, 0x01},
366 {0x03, 0x00, 0x00},
367 {0x03, 0x21, 0x00},
368 {0x03, 0x00, 0x04},
369 {0x03, 0x00, 0x03},
370 {0x03, 0x18, 0x03},
371 {0x03, 0x08, 0x01},
372 {0x03, 0x1c, 0x03},
373 {0x03, 0x5c, 0x03},
374 {0x03, 0x5c, 0x03},
375 {0x03, 0x18, 0x01},
378 {0x04, 0x10, 0x01},
379 {0x04, 0x00, 0x04},
380 {0x04, 0x00, 0x05},
381 {0x04, 0x20, 0x06},
382 {0x04, 0x20, 0x07},
384 {0x08, 0x0a, 0x00},
386 {0x05, 0x00, 0x10},
387 {0x05, 0x00, 0x11},
388 {0x05, 0x00, 0x12},
389 {0x05, 0x6f, 0x00},
390 {0x05, initial_brightness >> 6, 0x00},
391 {0x05, (initial_brightness << 2) & 0xff, 0x01},
392 {0x05, 0x00, 0x02},
393 {0x05, 0x01, 0x03},
394 {0x05, 0x00, 0x04},
395 {0x05, 0x03, 0x05},
396 {0x05, 0xe0, 0x06},
397 {0x05, 0x20, 0x07},
398 {0x05, 0xa0, 0x08},
399 {0x05, 0x00, 0x12},
400 {0x05, 0x02, 0x0f},
401 {0x05, 0x80, 0x14}, /* max exposure off (0=on) */
402 {0x05, 0x01, 0xb0},
403 {0x05, 0x01, 0xbf},
404 {0x03, 0x02, 0x06},
405 {0x05, 0x10, 0x46},
406 {0x05, 0x08, 0x4a},
408 {0x06, 0x00, 0x01},
409 {0x06, 0x10, 0x02},
410 {0x06, 0x64, 0x07},
411 {0x06, 0x18, 0x08},
412 {0x06, 0xfc, 0x09},
413 {0x06, 0xfc, 0x0a},
414 {0x06, 0xfc, 0x0b},
415 {0x04, 0x00, 0x01},
416 {0x06, 0x18, 0x0c},
417 {0x06, 0xfc, 0x0d},
418 {0x06, 0xfc, 0x0e},
419 {0x06, 0xfc, 0x0f},
420 {0x06, 0x11, 0x10}, /* contrast */
421 {0x06, 0x00, 0x11},
422 {0x06, 0xfe, 0x12},
423 {0x06, 0x00, 0x13},
424 {0x06, 0x00, 0x14},
425 {0x06, 0x9d, 0x51},
426 {0x06, 0x40, 0x52},
427 {0x06, 0x7c, 0x53},
428 {0x06, 0x40, 0x54},
429 {0x06, 0x02, 0x57},
430 {0x06, 0x03, 0x58},
431 {0x06, 0x15, 0x59},
432 {0x06, 0x05, 0x5a},
433 {0x06, 0x03, 0x56},
434 {0x06, 0x02, 0x3f},
435 {0x06, 0x00, 0x40},
436 {0x06, 0x39, 0x41},
437 {0x06, 0x69, 0x42},
438 {0x06, 0x87, 0x43},
439 {0x06, 0x9e, 0x44},
440 {0x06, 0xb1, 0x45},
441 {0x06, 0xbf, 0x46},
442 {0x06, 0xcc, 0x47},
443 {0x06, 0xd5, 0x48},
444 {0x06, 0xdd, 0x49},
445 {0x06, 0xe3, 0x4a},
446 {0x06, 0xe8, 0x4b},
447 {0x06, 0xed, 0x4c},
448 {0x06, 0xf2, 0x4d},
449 {0x06, 0xf7, 0x4e},
450 {0x06, 0xfc, 0x4f},
451 {0x06, 0xff, 0x50},
453 {0x05, 0x01, 0xc0},
454 {0x05, 0x10, 0xcb},
455 {0x05, 0x40, 0xc1},
456 {0x05, 0x04, 0xc2},
457 {0x05, 0x00, 0xca},
458 {0x05, 0x40, 0xc1},
459 {0x05, 0x09, 0xc2},
460 {0x05, 0x00, 0xca},
461 {0x05, 0xc0, 0xc1},
462 {0x05, 0x09, 0xc2},
463 {0x05, 0x00, 0xca},
464 {0x05, 0x40, 0xc1},
465 {0x05, 0x59, 0xc2},
466 {0x05, 0x00, 0xca},
467 {0x04, 0x00, 0x01},
468 {0x05, 0x80, 0xc1},
469 {0x05, 0xec, 0xc2},
470 {0x05, 0x0, 0xca},
472 {0x06, 0x02, 0x57},
473 {0x06, 0x01, 0x58},
474 {0x06, 0x15, 0x59},
475 {0x06, 0x0a, 0x5a},
476 {0x06, 0x01, 0x57},
477 {0x06, 0x8a, 0x03},
478 {0x06, 0x0a, 0x6c},
479 {0x06, 0x30, 0x01},
480 {0x06, 0x20, 0x02},
481 {0x06, 0x00, 0x03},
483 {0x05, 0x8c, 0x25},
485 {0x06, 0x4d, 0x51}, /* maybe saturation (4d) */
486 {0x06, 0x84, 0x53}, /* making green (84) */
487 {0x06, 0x00, 0x57}, /* sharpness (1) */
488 {0x06, 0x18, 0x08},
489 {0x06, 0xfc, 0x09},
490 {0x06, 0xfc, 0x0a},
491 {0x06, 0xfc, 0x0b},
492 {0x06, 0x18, 0x0c}, /* maybe hue (18) */
493 {0x06, 0xfc, 0x0d},
494 {0x06, 0xfc, 0x0e},
495 {0x06, 0xfc, 0x0f},
496 {0x06, 0x18, 0x10}, /* maybe contrast (18) */
498 {0x05, 0x01, 0x02},
500 {0x04, 0x00, 0x08}, /* compression */
501 {0x04, 0x12, 0x09},
502 {0x04, 0x21, 0x0a},
503 {0x04, 0x10, 0x0b},
504 {0x04, 0x21, 0x0c},
505 {0x04, 0x1d, 0x00}, /* imagetype (1d) */
506 {0x04, 0x41, 0x01}, /* hardware snapcontrol */
508 {0x04, 0x00, 0x04},
509 {0x04, 0x00, 0x05},
510 {0x04, 0x10, 0x06},
511 {0x04, 0x10, 0x07},
512 {0x04, 0x40, 0x06},
513 {0x04, 0x40, 0x07},
514 {0x04, 0x00, 0x04},
515 {0x04, 0x00, 0x05},
517 {0x06, 0x1c, 0x17},
518 {0x06, 0xe2, 0x19},
519 {0x06, 0x1c, 0x1b},
520 {0x06, 0xe2, 0x1d},
521 {0x06, 0x5f, 0x1f},
522 {0x06, 0x32, 0x20},
524 {0x05, initial_brightness >> 6, 0x00},
525 {0x05, (initial_brightness << 2) & 0xff, 0x01},
526 {0x05, 0x06, 0xc1},
527 {0x05, 0x58, 0xc2},
528 {0x05, 0x00, 0xca},
529 {0x05, 0x00, 0x11},
540 usb_sndctrlpipe(dev, 0), in reg_write()
543 value, index, NULL, 0, 500); in reg_write()
544 gspca_dbg(gspca_dev, D_USBO, "reg write: 0x%02x,0x%02x:0x%02x, %d\n", in reg_write()
546 if (ret < 0) in reg_write()
559 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_read()
562 0, /* value */ in reg_read()
566 if (ret < 0) in reg_read()
568 return (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]; in reg_read()
574 int ret, i = 0; in write_vector()
576 while (data[i][0] != 0) { in write_vector()
577 ret = reg_write(gspca_dev, data[i][0], data[i][2], in write_vector()
579 if (ret < 0) in write_vector()
583 return 0; in write_vector()
601 return 0; in sd_config()
614 return 0; in sd_init()
619 reg_write(gspca_dev, 0x05, 0x00, (255 - brightness) >> 6); in setbrightness()
620 reg_write(gspca_dev, 0x05, 0x01, (255 - brightness) << 2); in setbrightness()
629 {0x00, 0x10, 0x10}, /* 640x480 */ in sd_start()
630 {0x01, 0x1a, 0x1a}, /* 352x288 */ in sd_start()
631 {0x02, 0x1c, 0x1d}, /* 320x240 */ in sd_start()
632 {0x04, 0x34, 0x34}, /* 176x144 */ in sd_start()
633 {0x05, 0x40, 0x40} /* 160x120 */ in sd_start()
640 ret = reg_read(gspca_dev, 0x06, 0x16); in sd_start()
642 if (ret < 0) { in sd_start()
646 if (ret != 0x0101) { in sd_start()
647 pr_err("After vector read returns 0x%04x should be 0x0101\n", in sd_start()
651 ret = reg_write(gspca_dev, 0x06, 0x16, 0x0a); in sd_start()
652 if (ret < 0) in sd_start()
654 reg_write(gspca_dev, 0x05, 0xc2, 0x12); in sd_start()
659 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_start()
662 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x00, mode_tb[mode][0]); in sd_start()
663 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x06, mode_tb[mode][1]); in sd_start()
664 reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x07, mode_tb[mode][2]); in sd_start()
674 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_stopN()
677 /* called on streamoff with alt 0 and on disconnect */
684 reg_write(gspca_dev, 0x03, 0x03, 0x20); in sd_stop0()
685 reg_write(gspca_dev, 0x03, 0x01, 0x00); in sd_stop0()
686 reg_write(gspca_dev, 0x03, 0x00, 0x01); in sd_stop0()
687 reg_write(gspca_dev, 0x05, 0x10, 0x01); in sd_stop0()
688 reg_write(gspca_dev, 0x05, 0x11, 0x0f); in sd_stop0()
695 switch (data[0]) { in sd_pkt_scan()
696 case 0: /* start of frame */ in sd_pkt_scan()
697 gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); in sd_pkt_scan()
702 case 0xff: /* drop */ in sd_pkt_scan()
717 gspca_dev->usb_err = 0; in sd_s_ctrl()
720 return 0; in sd_s_ctrl()
741 V4L2_CID_BRIGHTNESS, 0, 255, 1, 127); in sd_init_controls()
747 return 0; in sd_init_controls()
764 {USB_DEVICE(0x041e, 0x401d), .driver_info = Nxultra},
765 {USB_DEVICE(0x0733, 0x0430), .driver_info = IntelPCCameraPro},