Lines Matching +full:0 +full:x28

26 #define AgfaCl20 0
55 .priv = 0},
68 .priv = 0},
87 {0x00, 0x0003, 0x816b}, /* SSI not active sync with vsync,
88 * hue (H byte) = 0,
92 {0x00, 0x0000, 0x8167}, /* brightness = 0 */
93 {0x00, 0x0020, 0x8168}, /* contrast = 0 */
94 {0x00, 0x0003, 0x816b}, /* SSI not active sync with vsync,
95 * hue (H byte) = 0, saturation/hue enable,
97 * was 0x0003, now 0x0000.
99 {0x00, 0x0000, 0x816a}, /* hue (L byte) = 0 */
100 {0x00, 0x0020, 0x8169}, /* saturation = 0x20 */
101 {0x00, 0x0050, 0x8157}, /* edge gain high threshold */
102 {0x00, 0x0030, 0x8158}, /* edge gain low threshold */
103 {0x00, 0x0028, 0x8159}, /* edge bandwidth high threshold */
104 {0x00, 0x000a, 0x815a}, /* edge bandwidth low threshold */
105 {0x00, 0x0001, 0x8202}, /* clock rate compensation = 1/25 sec/frame */
106 {0x0c, 0x0004, 0x0000},
111 {0x00, 0x00, 0x8211},
112 {0x00, 0x01, 0x82c0},
113 {0x00, 0x10, 0x82cb},
114 {0x00, 0x0f, 0x800d},
115 {0x00, 0x82, 0x8225},
116 {0x00, 0x21, 0x8228},
117 {0x00, 0x00, 0x8203},
118 {0x00, 0x00, 0x8204},
119 {0x00, 0x08, 0x8205},
120 {0x00, 0xf8, 0x8206},
121 {0x00, 0x28, 0x8207},
122 {0x00, 0xa0, 0x8208},
123 {0x00, 0x08, 0x824a},
124 {0x00, 0x08, 0x8214},
125 {0x00, 0x80, 0x82c1},
126 {0x00, 0x00, 0x82c2},
127 {0x00, 0x00, 0x82ca},
128 {0x00, 0x80, 0x82c1},
129 {0x00, 0x04, 0x82c2},
130 {0x00, 0x00, 0x82ca},
131 {0x00, 0xfc, 0x8100},
132 {0x00, 0xfc, 0x8105},
133 {0x00, 0x30, 0x8101},
134 {0x00, 0x00, 0x8102},
135 {0x00, 0x00, 0x8103},
136 {0x00, 0x66, 0x8107},
137 {0x00, 0x00, 0x816b},
138 {0x00, 0x00, 0x8155},
139 {0x00, 0x01, 0x8156},
140 {0x00, 0x60, 0x8157},
141 {0x00, 0x40, 0x8158},
142 {0x00, 0x0a, 0x8159},
143 {0x00, 0x06, 0x815a},
144 {0x00, 0x00, 0x813f},
145 {0x00, 0x00, 0x8200},
146 {0x00, 0x19, 0x8201},
147 {0x00, 0x00, 0x82c1},
148 {0x00, 0xa0, 0x82c2},
149 {0x00, 0x00, 0x82ca},
150 {0x00, 0x00, 0x8117},
151 {0x00, 0x00, 0x8118},
152 {0x00, 0x65, 0x8119},
153 {0x00, 0x00, 0x811a},
154 {0x00, 0x00, 0x811b},
155 {0x00, 0x55, 0x811c},
156 {0x00, 0x65, 0x811d},
157 {0x00, 0x55, 0x811e},
158 {0x00, 0x16, 0x811f},
159 {0x00, 0x19, 0x8120},
160 {0x00, 0x80, 0x8103},
161 {0x00, 0x83, 0x816b},
162 {0x00, 0x25, 0x8168},
163 {0x00, 0x01, 0x820f},
164 {0x00, 0xff, 0x8115},
165 {0x00, 0x48, 0x8116},
166 {0x00, 0x50, 0x8151},
167 {0x00, 0x40, 0x8152},
168 {0x00, 0x78, 0x8153},
169 {0x00, 0x40, 0x8154},
170 {0x00, 0x00, 0x8167},
171 {0x00, 0x20, 0x8168},
172 {0x00, 0x00, 0x816a},
173 {0x00, 0x03, 0x816b},
174 {0x00, 0x20, 0x8169},
175 {0x00, 0x60, 0x8157},
176 {0x00, 0x00, 0x8190},
177 {0x00, 0x00, 0x81a1},
178 {0x00, 0x00, 0x81b2},
179 {0x00, 0x27, 0x8191},
180 {0x00, 0x27, 0x81a2},
181 {0x00, 0x27, 0x81b3},
182 {0x00, 0x4b, 0x8192},
183 {0x00, 0x4b, 0x81a3},
184 {0x00, 0x4b, 0x81b4},
185 {0x00, 0x66, 0x8193},
186 {0x00, 0x66, 0x81a4},
187 {0x00, 0x66, 0x81b5},
188 {0x00, 0x79, 0x8194},
189 {0x00, 0x79, 0x81a5},
190 {0x00, 0x79, 0x81b6},
191 {0x00, 0x8a, 0x8195},
192 {0x00, 0x8a, 0x81a6},
193 {0x00, 0x8a, 0x81b7},
194 {0x00, 0x9b, 0x8196},
195 {0x00, 0x9b, 0x81a7},
196 {0x00, 0x9b, 0x81b8},
197 {0x00, 0xa6, 0x8197},
198 {0x00, 0xa6, 0x81a8},
199 {0x00, 0xa6, 0x81b9},
200 {0x00, 0xb2, 0x8198},
201 {0x00, 0xb2, 0x81a9},
202 {0x00, 0xb2, 0x81ba},
203 {0x00, 0xbe, 0x8199},
204 {0x00, 0xbe, 0x81aa},
205 {0x00, 0xbe, 0x81bb},
206 {0x00, 0xc8, 0x819a},
207 {0x00, 0xc8, 0x81ab},
208 {0x00, 0xc8, 0x81bc},
209 {0x00, 0xd2, 0x819b},
210 {0x00, 0xd2, 0x81ac},
211 {0x00, 0xd2, 0x81bd},
212 {0x00, 0xdb, 0x819c},
213 {0x00, 0xdb, 0x81ad},
214 {0x00, 0xdb, 0x81be},
215 {0x00, 0xe4, 0x819d},
216 {0x00, 0xe4, 0x81ae},
217 {0x00, 0xe4, 0x81bf},
218 {0x00, 0xed, 0x819e},
219 {0x00, 0xed, 0x81af},
220 {0x00, 0xed, 0x81c0},
221 {0x00, 0xf7, 0x819f},
222 {0x00, 0xf7, 0x81b0},
223 {0x00, 0xf7, 0x81c1},
224 {0x00, 0xff, 0x81a0},
225 {0x00, 0xff, 0x81b1},
226 {0x00, 0xff, 0x81c2},
227 {0x00, 0x03, 0x8156},
228 {0x00, 0x00, 0x8211},
229 {0x00, 0x20, 0x8168},
230 {0x00, 0x01, 0x8202},
231 {0x00, 0x30, 0x8101},
232 {0x00, 0x00, 0x8111},
233 {0x00, 0x00, 0x8112},
234 {0x00, 0x00, 0x8113},
235 {0x00, 0x00, 0x8114},
241 0x05, 0x03, 0x03, 0x05, 0x07, 0x0c, 0x0f, 0x12,
242 0x04, 0x04, 0x04, 0x06, 0x08, 0x11, 0x12, 0x11,
243 0x04, 0x04, 0x05, 0x07, 0x0c, 0x11, 0x15, 0x11,
244 0x04, 0x05, 0x07, 0x09, 0x0f, 0x1a, 0x18, 0x13,
245 0x05, 0x07, 0x0b, 0x11, 0x14, 0x21, 0x1f, 0x17,
246 0x07, 0x0b, 0x11, 0x13, 0x18, 0x1f, 0x22, 0x1c,
247 0x0f, 0x13, 0x17, 0x1a, 0x1f, 0x24, 0x24, 0x1e,
248 0x16, 0x1c, 0x1d, 0x1d, 0x22, 0x1e, 0x1f, 0x1e},
250 0x05, 0x05, 0x07, 0x0e, 0x1e, 0x1e, 0x1e, 0x1e,
251 0x05, 0x06, 0x08, 0x14, 0x1e, 0x1e, 0x1e, 0x1e,
252 0x07, 0x08, 0x11, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e,
253 0x0e, 0x14, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e,
254 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e,
255 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e,
256 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e,
257 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e}
262 0x02, 0x01, 0x01, 0x02, 0x02, 0x04, 0x05, 0x06,
263 0x01, 0x01, 0x01, 0x02, 0x03, 0x06, 0x06, 0x06,
264 0x01, 0x01, 0x02, 0x02, 0x04, 0x06, 0x07, 0x06,
265 0x01, 0x02, 0x02, 0x03, 0x05, 0x09, 0x08, 0x06,
266 0x02, 0x02, 0x04, 0x06, 0x07, 0x0b, 0x0a, 0x08,
267 0x02, 0x04, 0x06, 0x06, 0x08, 0x0a, 0x0b, 0x09,
268 0x05, 0x06, 0x08, 0x09, 0x0a, 0x0c, 0x0c, 0x0a,
269 0x07, 0x09, 0x0a, 0x0a, 0x0b, 0x0a, 0x0a, 0x0a},
271 0x02, 0x02, 0x02, 0x05, 0x0a, 0x0a, 0x0a, 0x0a,
272 0x02, 0x02, 0x03, 0x07, 0x0a, 0x0a, 0x0a, 0x0a,
273 0x02, 0x03, 0x06, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
274 0x05, 0x07, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
275 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
276 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
277 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
278 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a}
282 { /* Q-table Y-components start registers 0x8800 */
283 0x06, 0x04, 0x04, 0x06, 0x0a, 0x10, 0x14, 0x18,
284 0x05, 0x05, 0x06, 0x08, 0x0a, 0x17, 0x18, 0x16,
285 0x06, 0x05, 0x06, 0x0a, 0x10, 0x17, 0x1c, 0x16,
286 0x06, 0x07, 0x09, 0x0c, 0x14, 0x23, 0x20, 0x19,
287 0x07, 0x09, 0x0f, 0x16, 0x1b, 0x2c, 0x29, 0x1f,
288 0x0a, 0x0e, 0x16, 0x1a, 0x20, 0x2a, 0x2d, 0x25,
289 0x14, 0x1a, 0x1f, 0x23, 0x29, 0x30, 0x30, 0x28,
290 0x1d, 0x25, 0x26, 0x27, 0x2d, 0x28, 0x29, 0x28,
292 { /* Q-table C-components start registers 0x8840 */
293 0x07, 0x07, 0x0a, 0x13, 0x28, 0x28, 0x28, 0x28,
294 0x07, 0x08, 0x0a, 0x1a, 0x28, 0x28, 0x28, 0x28,
295 0x0a, 0x0a, 0x16, 0x28, 0x28, 0x28, 0x28, 0x28,
296 0x13, 0x1a, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
297 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
298 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
299 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28,
300 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28}
309 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r()
310 0, in reg_r()
312 0, /* value */ in reg_r()
321 gspca_dbg(gspca_dev, D_USBO, "reg write: [0x%02x] = 0x%02x\n", in reg_w()
324 usb_sndctrlpipe(gspca_dev->dev, 0), in reg_w()
327 value, index, NULL, 0, 500); in reg_w()
328 if (ret < 0) in reg_w()
341 gspca_dev->usb_buf[1] = 0; in reg_r_12()
343 usb_rcvctrlpipe(gspca_dev->dev, 0), in reg_r_12()
346 0, /* value */ in reg_r_12()
350 if (ret < 0) { in reg_r_12()
354 return (gspca_dev->usb_buf[1] << 8) + gspca_dev->usb_buf[0]; in reg_r_12()
367 while (--cnt > 0) { in reg_r_wait()
370 return 0; in reg_r_wait()
379 int ret, i = 0; in write_vector()
381 while (data[i][0] != 0 || data[i][1] != 0 || data[i][2] != 0) { in write_vector()
382 ret = reg_w(gspca_dev, data[i][0], data[i][2], data[i][1]); in write_vector()
383 if (ret < 0) in write_vector()
387 return 0; in write_vector()
399 for (i = 0; i < 64; i++) { in spca50x_setup_qtable()
400 err = reg_w(gspca_dev, request, ybase + i, qtable[0][i]); in spca50x_setup_qtable()
401 if (err < 0) in spca50x_setup_qtable()
406 for (i = 0; i < 64; i++) { in spca50x_setup_qtable()
408 if (err < 0) in spca50x_setup_qtable()
411 return 0; in spca50x_setup_qtable()
416 reg_r(gspca_dev, 0x0d04, 2); in spca500_ping310()
417 gspca_dbg(gspca_dev, D_STREAM, "ClickSmart310 ping 0x0d04 0x%02x 0x%02x\n", in spca500_ping310()
418 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_ping310()
423 reg_r(gspca_dev, 0x0d05, 2); in spca500_clksmart310_init()
424 gspca_dbg(gspca_dev, D_STREAM, "ClickSmart310 init 0x0d05 0x%02x 0x%02x\n", in spca500_clksmart310_init()
425 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in spca500_clksmart310_init()
426 reg_w(gspca_dev, 0x00, 0x8167, 0x5a); in spca500_clksmart310_init()
429 reg_w(gspca_dev, 0x00, 0x8168, 0x22); in spca500_clksmart310_init()
430 reg_w(gspca_dev, 0x00, 0x816a, 0xc0); in spca500_clksmart310_init()
431 reg_w(gspca_dev, 0x00, 0x816b, 0x0b); in spca500_clksmart310_init()
432 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init()
433 reg_w(gspca_dev, 0x00, 0x8157, 0x5b); in spca500_clksmart310_init()
434 reg_w(gspca_dev, 0x00, 0x8158, 0x5b); in spca500_clksmart310_init()
435 reg_w(gspca_dev, 0x00, 0x813f, 0x03); in spca500_clksmart310_init()
436 reg_w(gspca_dev, 0x00, 0x8151, 0x4a); in spca500_clksmart310_init()
437 reg_w(gspca_dev, 0x00, 0x8153, 0x78); in spca500_clksmart310_init()
438 reg_w(gspca_dev, 0x00, 0x0d01, 0x04); in spca500_clksmart310_init()
440 reg_w(gspca_dev, 0x00, 0x0d02, 0x01); in spca500_clksmart310_init()
441 reg_w(gspca_dev, 0x00, 0x8169, 0x25); in spca500_clksmart310_init()
442 reg_w(gspca_dev, 0x00, 0x0d01, 0x02); in spca500_clksmart310_init()
451 reg_w(gspca_dev, 0, 0x8001, xmult); in spca500_setmode()
454 reg_w(gspca_dev, 0, 0x8002, ymult); in spca500_setmode()
458 reg_w(gspca_dev, 0, 0x8003, mode << 4); in spca500_setmode()
466 err = reg_w(gspca_dev, 0xe0, 0x0001, 0x0000); in spca500_full_reset()
467 if (err < 0) in spca500_full_reset()
471 err = reg_r_wait(gspca_dev, 0x06, 0x0000, 0x0000); in spca500_full_reset()
472 if (err < 0) in spca500_full_reset()
474 err = reg_w(gspca_dev, 0xe0, 0x0000, 0x0000); in spca500_full_reset()
475 if (err < 0) in spca500_full_reset()
477 err = reg_r_wait(gspca_dev, 0x06, 0, 0); in spca500_full_reset()
478 if (err < 0) { in spca500_full_reset()
483 return 0; in spca500_full_reset()
494 if (usb_set_interface(gspca_dev->dev, gspca_dev->iface, 0) < 0) { in spca500_synch310()
500 reg_r(gspca_dev, 0x0d00, 1); in spca500_synch310()
509 gspca_dev->alt) < 0) { in spca500_synch310()
513 return 0; in spca500_synch310()
525 reg_w(gspca_dev, 0x00, 0x0d01, 0x01); in spca500_reinit()
526 reg_w(gspca_dev, 0x00, 0x0d03, 0x00); in spca500_reinit()
527 reg_w(gspca_dev, 0x00, 0x0d02, 0x01); in spca500_reinit()
530 reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in spca500_reinit()
532 err = spca50x_setup_qtable(gspca_dev, 0x00, 0x8800, 0x8840, in spca500_reinit()
534 if (err < 0) in spca500_reinit()
538 reg_w(gspca_dev, 0x00, 0x8880, 2); in spca500_reinit()
540 reg_w(gspca_dev, 0x00, 0x800a, 0x00); in spca500_reinit()
542 reg_w(gspca_dev, 0x00, 0x820f, 0x01); in spca500_reinit()
544 reg_w(gspca_dev, 0x00, 0x870a, 0x04); in spca500_reinit()
546 reg_w(gspca_dev, 0, 0x8003, 0x00); in spca500_reinit()
548 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in spca500_reinit()
550 if (reg_r_wait(gspca_dev, 0, 0x8000, 0x44) != 0) { in spca500_reinit()
551 reg_r(gspca_dev, 0x816b, 1); in spca500_reinit()
552 Data = gspca_dev->usb_buf[0]; in spca500_reinit()
553 reg_w(gspca_dev, 0x00, 0x816b, Data); in spca500_reinit()
573 return 0; in sd_config()
588 return 0; in sd_init()
601 0x22); /* JPEG 411 */ in sd_start()
605 xmult = 0x16; in sd_start()
606 ymult = 0x12; in sd_start()
608 xmult = 0x28; in sd_start()
609 ymult = 0x1e; in sd_start()
613 reg_r(gspca_dev, 0x8a04, 1); in sd_start()
614 gspca_dbg(gspca_dev, D_STREAM, "Spca500 Sensor Address 0x%02x\n", in sd_start()
615 gspca_dev->usb_buf[0]); in sd_start()
616 gspca_dbg(gspca_dev, D_STREAM, "Spca500 curr_mode: %d Xmult: 0x%02x, Ymult: 0x%02x", in sd_start()
625 reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
626 reg_w(gspca_dev, 0x00, 0x8880, 3); in sd_start()
628 0x00, 0x8800, 0x8840, in sd_start()
630 if (err < 0) in sd_start()
633 reg_w(gspca_dev, 0x00, 0x870a, 0x04); in sd_start()
636 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
638 if (reg_r_wait(gspca_dev, 0, 0x8000, 0x44) != 0) in sd_start()
641 reg_r(gspca_dev, 0x816b, 1); in sd_start()
642 Data = gspca_dev->usb_buf[0]; in sd_start()
643 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
650 err = reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
651 if (err < 0) in sd_start()
653 reg_w(gspca_dev, 0x00, 0x8880, 3); in sd_start()
655 0x00, 0x8800, 0x8840, in sd_start()
657 if (err < 0) in sd_start()
661 reg_w(gspca_dev, 0x00, 0x870a, 0x04); in sd_start()
664 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
666 if (reg_r_wait(gspca_dev, 0, 0x8000, 0x44) != 0) in sd_start()
669 reg_r(gspca_dev, 0x816b, 1); in sd_start()
670 Data = gspca_dev->usb_buf[0]; in sd_start()
671 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
680 if (err < 0) in sd_start()
684 err = reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
685 if (err < 0) in sd_start()
687 reg_w(gspca_dev, 0x00, 0x8880, 3); in sd_start()
689 0x00, 0x8800, 0x8840, in sd_start()
691 if (err < 0) in sd_start()
695 reg_w(gspca_dev, 0x20, 0x0001, 0x0004); in sd_start()
698 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
700 if (reg_r_wait(gspca_dev, 0, 0x8000, 0x44) != 0) in sd_start()
703 reg_r(gspca_dev, 0x816b, 1); in sd_start()
704 Data = gspca_dev->usb_buf[0]; in sd_start()
705 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
713 if (err < 0) in sd_start()
716 reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
717 reg_w(gspca_dev, 0x00, 0x8880, 0); in sd_start()
719 0x00, 0x8800, 0x8840, in sd_start()
721 if (err < 0) in sd_start()
725 reg_w(gspca_dev, 0x20, 0x0001, 0x0004); in sd_start()
728 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
730 if (reg_r_wait(gspca_dev, 0, 0x8000, 0x44) != 0) in sd_start()
733 reg_r(gspca_dev, 0x816b, 1); in sd_start()
734 Data = gspca_dev->usb_buf[0]; in sd_start()
735 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
750 reg_w(gspca_dev, 0x00, 0x0d01, 0x01); in sd_start()
752 reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
755 0x00, 0x8800, 0x8840, qtable_pocketdv); in sd_start()
756 if (err < 0) in sd_start()
758 reg_w(gspca_dev, 0x00, 0x8880, 2); in sd_start()
761 reg_w(gspca_dev, 0x00, 0x800a, 0x00); in sd_start()
763 reg_w(gspca_dev, 0x00, 0x820f, 0x01); in sd_start()
765 reg_w(gspca_dev, 0x00, 0x870a, 0x04); in sd_start()
769 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
771 reg_r_wait(gspca_dev, 0, 0x8000, 0x44); in sd_start()
773 reg_r(gspca_dev, 0x816b, 1); in sd_start()
774 Data = gspca_dev->usb_buf[0]; in sd_start()
775 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
779 reg_w(gspca_dev, 0x02, 0x00, 0x00); in sd_start()
781 reg_w(gspca_dev, 0x00, 0x850a, 0x0001); in sd_start()
784 0x00, 0x8800, in sd_start()
785 0x8840, qtable_creative_pccam); in sd_start()
786 if (err < 0) in sd_start()
788 reg_w(gspca_dev, 0x00, 0x8880, 3); in sd_start()
789 reg_w(gspca_dev, 0x00, 0x800a, 0x00); in sd_start()
791 reg_w(gspca_dev, 0x00, 0x870a, 0x04); in sd_start()
796 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_start()
797 reg_r_wait(gspca_dev, 0, 0x8000, 0x44); in sd_start()
799 reg_r(gspca_dev, 0x816b, 1); in sd_start()
800 Data = gspca_dev->usb_buf[0]; in sd_start()
801 reg_w(gspca_dev, 0x00, 0x816b, Data); in sd_start()
805 return 0; in sd_start()
810 reg_w(gspca_dev, 0, 0x8003, 0x00); in sd_stopN()
813 reg_w(gspca_dev, 0x00, 0x8000, 0x0004); in sd_stopN()
814 reg_r(gspca_dev, 0x8000, 1); in sd_stopN()
815 gspca_dbg(gspca_dev, D_STREAM, "stop SPCA500 done reg8000: 0x%2x\n", in sd_stopN()
816 gspca_dev->usb_buf[0]); in sd_stopN()
825 static __u8 ffd9[] = {0xff, 0xd9}; in sd_pkt_scan()
827 /* frames are jpeg 4.1.1 without 0xff escape */ in sd_pkt_scan()
828 if (data[0] == 0xff) { in sd_pkt_scan()
829 if (data[1] != 0x01) { /* drop packet */ in sd_pkt_scan()
847 /* add 0x00 after 0xff */ in sd_pkt_scan()
848 i = 0; in sd_pkt_scan()
850 if (data[i] == 0xff) { in sd_pkt_scan()
855 *data = 0x00; in sd_pkt_scan()
856 i = 0; in sd_pkt_scan()
865 reg_w(gspca_dev, 0x00, 0x8167, in setbrightness()
871 reg_w(gspca_dev, 0x00, 0x8168, val); in setcontrast()
876 reg_w(gspca_dev, 0x00, 0x8169, val); in setcolors()
884 gspca_dev->usb_err = 0; in sd_s_ctrl()
887 return 0; in sd_s_ctrl()
914 V4L2_CID_BRIGHTNESS, 0, 255, 1, 127); in sd_init_controls()
916 V4L2_CID_CONTRAST, 0, 63, 1, 31); in sd_init_controls()
918 V4L2_CID_SATURATION, 0, 63, 1, 31); in sd_init_controls()
924 return 0; in sd_init_controls()
940 {USB_DEVICE(0x040a, 0x0300), .driver_info = KodakEZ200},
941 {USB_DEVICE(0x041e, 0x400a), .driver_info = CreativePCCam300},
942 {USB_DEVICE(0x046d, 0x0890), .driver_info = LogitechTraveler},
943 {USB_DEVICE(0x046d, 0x0900), .driver_info = LogitechClickSmart310},
944 {USB_DEVICE(0x046d, 0x0901), .driver_info = LogitechClickSmart510},
945 {USB_DEVICE(0x04a5, 0x300c), .driver_info = BenqDC1016},
946 {USB_DEVICE(0x04fc, 0x7333), .driver_info = PalmPixDC85},
947 {USB_DEVICE(0x055f, 0xc200), .driver_info = MustekGsmart300},
948 {USB_DEVICE(0x055f, 0xc220), .driver_info = Gsmartmini},
949 {USB_DEVICE(0x06bd, 0x0404), .driver_info = AgfaCl20},
950 {USB_DEVICE(0x06be, 0x0800), .driver_info = Optimedia},
951 {USB_DEVICE(0x084d, 0x0003), .driver_info = DLinkDSC350},
952 {USB_DEVICE(0x08ca, 0x0103), .driver_info = AiptekPocketDV},
953 {USB_DEVICE(0x2899, 0x012c), .driver_info = ToptroIndus},
954 {USB_DEVICE(0x8086, 0x0630), .driver_info = IntelPocketPCCamera},