Lines Matching +full:0 +full:x650
37 .priv = 0},
47 if (gspca_dev->usb_err < 0) in reg_r()
48 return 0; in reg_r()
49 ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), in reg_r()
50 0x00, in reg_r()
52 0x00, in reg_r()
56 if (ret < 0) { in reg_r()
59 return 0; in reg_r()
61 return gspca_dev->usb_buf[0]; in reg_r()
71 if (gspca_dev->usb_err < 0) in reg_w()
73 ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in reg_w()
74 0x01, in reg_w()
79 0, in reg_w()
81 if (ret < 0) { in reg_w()
94 reg_w(gspca_dev, 0x634, (ads >> 16) & 0xff); in rcv_val()
95 reg_w(gspca_dev, 0x635, (ads >> 8) & 0xff); in rcv_val()
96 reg_w(gspca_dev, 0x636, ads & 0xff); in rcv_val()
97 reg_w(gspca_dev, 0x637, 0); in rcv_val()
98 reg_w(gspca_dev, 0x638, 4); /* len & 0xff */ in rcv_val()
99 reg_w(gspca_dev, 0x639, 0); /* len >> 8 */ in rcv_val()
100 reg_w(gspca_dev, 0x63a, 0); in rcv_val()
101 reg_w(gspca_dev, 0x63b, 0); in rcv_val()
102 reg_w(gspca_dev, 0x630, 5); in rcv_val()
103 if (gspca_dev->usb_err < 0) in rcv_val()
106 usb_rcvbulkpipe(dev, 0x05), in rcv_val()
111 if (ret < 0) { in rcv_val()
124 __u8 seq = 0; in snd_val()
126 if (ads == 0x003f08) { in snd_val()
127 reg_r(gspca_dev, 0x0704); in snd_val()
128 seq = reg_r(gspca_dev, 0x0705); in snd_val()
129 reg_r(gspca_dev, 0x0650); in snd_val()
130 reg_w(gspca_dev, 0x654, seq); in snd_val()
132 reg_w(gspca_dev, 0x654, (ads >> 16) & 0xff); in snd_val()
134 reg_w(gspca_dev, 0x655, (ads >> 8) & 0xff); in snd_val()
135 reg_w(gspca_dev, 0x656, ads & 0xff); in snd_val()
136 reg_w(gspca_dev, 0x657, 0); in snd_val()
137 reg_w(gspca_dev, 0x658, 0x04); /* size */ in snd_val()
138 reg_w(gspca_dev, 0x659, 0); in snd_val()
139 reg_w(gspca_dev, 0x65a, 0); in snd_val()
140 reg_w(gspca_dev, 0x65b, 0); in snd_val()
141 reg_w(gspca_dev, 0x650, 5); in snd_val()
142 if (gspca_dev->usb_err < 0) in snd_val()
144 gspca_dev->usb_buf[0] = val >> 24; in snd_val()
154 if (ret < 0) { in snd_val()
158 if (ads == 0x003f08) { in snd_val()
160 seq &= 0x3f; in snd_val()
161 reg_w(gspca_dev, 0x705, seq); in snd_val()
170 snd_val(gspca_dev, 0x003f08, parval); in set_par()
177 parval = 0x06000000 /* whiteness */ in setbrightness()
186 parval = 0x07000000 /* contrast */ in setcontrast()
195 parval = 0x08000000 /* saturation */ in setcolors()
203 ? 0x33640000 /* 50 Hz */ in setlightfreq()
204 : 0x33780000); /* 60 Hz */ in setlightfreq()
213 return 0; in sd_config()
223 ret = reg_r(gspca_dev, 0x0740); in sd_init()
224 if (gspca_dev->usb_err >= 0) { in sd_init()
225 if (ret != 0xff) { in sd_init()
226 pr_err("init reg: 0x%02x\n", ret); in sd_init()
242 0x22); /* JPEG 411 */ in sd_start()
248 set_par(gspca_dev, 0x10000000); in sd_start()
249 set_par(gspca_dev, 0x00000000); in sd_start()
250 set_par(gspca_dev, 0x8002e001); in sd_start()
251 set_par(gspca_dev, 0x14000000); in sd_start()
253 value = 0x8002e001; /* 640x480 */ in sd_start()
255 value = 0x4001f000; /* 320x240 */ in sd_start()
260 if (ret < 0) { in sd_start()
266 reg_r(gspca_dev, 0x0630); in sd_start()
267 rcv_val(gspca_dev, 0x000020); /* << (value ff ff ff ff) */ in sd_start()
268 reg_r(gspca_dev, 0x0650); in sd_start()
269 snd_val(gspca_dev, 0x000020, 0xffffffff); in sd_start()
270 reg_w(gspca_dev, 0x0620, 0); in sd_start()
271 reg_w(gspca_dev, 0x0630, 0); in sd_start()
272 reg_w(gspca_dev, 0x0640, 0); in sd_start()
273 reg_w(gspca_dev, 0x0650, 0); in sd_start()
274 reg_w(gspca_dev, 0x0660, 0); in sd_start()
275 set_par(gspca_dev, 0x09800000); /* Red ? */ in sd_start()
276 set_par(gspca_dev, 0x0a800000); /* Green ? */ in sd_start()
277 set_par(gspca_dev, 0x0b800000); /* Blue ? */ in sd_start()
278 set_par(gspca_dev, 0x0d030000); /* Gamma ? */ in sd_start()
281 set_par(gspca_dev, 0x01000000); in sd_start()
282 set_par(gspca_dev, 0x01000000); in sd_start()
283 if (gspca_dev->usb_err >= 0) in sd_start()
284 gspca_dbg(gspca_dev, D_STREAM, "camera started alt: 0x%02x\n", in sd_start()
294 set_par(gspca_dev, 0x02000000); in sd_stopN()
295 set_par(gspca_dev, 0x02000000); in sd_stopN()
297 reg_r(gspca_dev, 0x0630); in sd_stopN()
298 rcv_val(gspca_dev, 0x000020); /* << (value ff ff ff ff) */ in sd_stopN()
299 reg_r(gspca_dev, 0x0650); in sd_stopN()
300 snd_val(gspca_dev, 0x000020, 0xffffffff); in sd_stopN()
301 reg_w(gspca_dev, 0x0620, 0); in sd_stopN()
302 reg_w(gspca_dev, 0x0630, 0); in sd_stopN()
303 reg_w(gspca_dev, 0x0640, 0); in sd_stopN()
304 reg_w(gspca_dev, 0x0650, 0); in sd_stopN()
305 reg_w(gspca_dev, 0x0660, 0); in sd_stopN()
314 static unsigned char ffd9[] = {0xff, 0xd9}; in sd_pkt_scan()
317 * - 0xff 0xfe in sd_pkt_scan()
318 * - 0x08 0x00 - length (little endian ?!) in sd_pkt_scan()
320 * - 0x00 0x0c in sd_pkt_scan()
321 * - 0xff 0xd8 in sd_pkt_scan()
325 if (data[0] == 0xff && data[1] == 0xfe) { in sd_pkt_scan()
346 gspca_dev->usb_err = 0; in sd_s_ctrl()
349 return 0; in sd_s_ctrl()
379 V4L2_CID_BRIGHTNESS, 0, 255, 1, 127); in sd_init_controls()
381 V4L2_CID_CONTRAST, 0, 255, 1, 127); in sd_init_controls()
383 V4L2_CID_SATURATION, 0, 255, 1, 127); in sd_init_controls()
393 return 0; in sd_init_controls()
409 {USB_DEVICE(0x05e1, 0x0893)},