Lines Matching +full:0 +full:x70
32 #define JEILINJ_MAX_TRANSFER 0x200
33 #define FRAME_HEADER_LEN 0x10
34 #define FRAME_START 0xFFFFFFFF
41 #define CAMQUALITY_MIN 0 /* highest cam quality */
72 .priv = 0},
77 .priv = 0}
81 * cam uses endpoint 0x03 to send commands, 0x84 for read commands,
82 * and 0x82 for bulk transfer.
90 if (gspca_dev->usb_err < 0) in jlj_write2()
96 if (retval < 0) { in jlj_write2()
98 gspca_dev->usb_buf[0], retval); in jlj_write2()
108 if (gspca_dev->usb_err < 0) in jlj_read1()
111 usb_rcvbulkpipe(gspca_dev->dev, 0x84), in jlj_read1()
113 *response = gspca_dev->usb_buf[0]; in jlj_read1()
114 if (retval < 0) { in jlj_read1()
116 gspca_dev->usb_buf[0], retval); in jlj_read1()
124 {0x71, 0x80}, in setfreq()
125 {0x70, 0x07} in setfreq()
128 freq_commands[0][1] |= val >> 1; in setfreq()
130 jlj_write2(gspca_dev, freq_commands[0]); in setfreq()
137 {0x71, 0x1E}, in setcamquality()
138 {0x70, 0x06} in setcamquality()
145 quality_commands[0][1] += camquality; in setcamquality()
147 jlj_write2(gspca_dev, quality_commands[0]); in setcamquality()
154 {0x94, 0x02}, in setautogain()
155 {0xcf, 0x00} in setautogain()
160 jlj_write2(gspca_dev, autogain_commands[0]); in setautogain()
167 {0x94, 0x02}, in setred()
168 {0xe6, 0x00} in setred()
173 jlj_write2(gspca_dev, setred_commands[0]); in setred()
180 {0x94, 0x02}, in setgreen()
181 {0xe7, 0x00} in setgreen()
186 jlj_write2(gspca_dev, setgreen_commands[0]); in setgreen()
193 {0x94, 0x02}, in setblue()
194 {0xe9, 0x00} in setblue()
199 jlj_write2(gspca_dev, setblue_commands[0]); in setblue()
207 u8 response = 0xff; in jlj_start()
210 {{0x71, 0x81}, 0, 0}, in jlj_start()
211 {{0x70, 0x05}, 0, JEILINJ_CMD_DELAY}, in jlj_start()
212 {{0x95, 0x70}, 1, 0}, in jlj_start()
213 {{0x71, 0x81 - gspca_dev->curr_mode}, 0, 0}, in jlj_start()
214 {{0x70, 0x04}, 0, JEILINJ_CMD_DELAY}, in jlj_start()
215 {{0x95, 0x70}, 1, 0}, in jlj_start()
216 {{0x71, 0x00}, 0, 0}, /* start streaming ??*/ in jlj_start()
217 {{0x70, 0x08}, 0, JEILINJ_CMD_DELAY}, in jlj_start()
218 {{0x95, 0x70}, 1, 0}, in jlj_start()
220 {{0x94, 0x02}, 0, 0}, in jlj_start()
221 {{0xde, 0x24}, 0, 0}, in jlj_start()
222 {{0x94, 0x02}, 0, 0}, in jlj_start()
223 {{0xdd, 0xf0}, 0, 0}, in jlj_start()
224 {{0x94, 0x02}, 0, 0}, in jlj_start()
225 {{0xe3, 0x2c}, 0, 0}, in jlj_start()
226 {{0x94, 0x02}, 0, 0}, in jlj_start()
227 {{0xe4, 0x00}, 0, 0}, in jlj_start()
228 {{0x94, 0x02}, 0, 0}, in jlj_start()
229 {{0xe5, 0x00}, 0, 0}, in jlj_start()
230 {{0x94, 0x02}, 0, 0}, in jlj_start()
231 {{0xe6, 0x2c}, 0, 0}, in jlj_start()
232 {{0x94, 0x03}, 0, 0}, in jlj_start()
233 {{0xaa, 0x00}, 0, 0} in jlj_start()
236 sd->blocks_left = 0; in jlj_start()
245 for (i = 0; i < start_commands_size; i++) { in jlj_start()
255 if (gspca_dev->usb_err < 0) in jlj_start()
267 gspca_dbg(gspca_dev, D_STREAM, "Got %d bytes out of %d for Block 0\n", in sd_pkt_scan()
274 header_marker = ((u32 *)data)[0]; in sd_pkt_scan()
276 sd->blocks_left = data[0x0a] - 1; in sd_pkt_scan()
277 gspca_dbg(gspca_dev, D_STREAM, "blocks_left = 0x%x\n", in sd_pkt_scan()
282 /* Toss line 0 of data block 0, keep the rest. */ in sd_pkt_scan()
286 } else if (sd->blocks_left > 0) { in sd_pkt_scan()
290 if (sd->blocks_left == 0) in sd_pkt_scan()
319 return 0; in sd_config()
327 {0x71, 0x00}, in sd_stopN()
328 {0x70, 0x09}, in sd_stopN()
329 {0x71, 0x80}, in sd_stopN()
330 {0x70, 0x05} in sd_stopN()
336 gspca_dev->urb[0]->pipe, in sd_stopN()
337 gspca_dev->urb[0]->transfer_buffer, in sd_stopN()
341 /* search for 0xff 0xd9 (EOF for JPEG) */ in sd_stopN()
342 i = 0; in sd_stopN()
343 buf = gspca_dev->urb[0]->transfer_buffer; in sd_stopN()
345 ((buf[i] != 0xff) || (buf[i+1] != 0xd9))) in sd_stopN()
353 for (i = 0; i < ARRAY_SIZE(stop_commands); i++) in sd_stopN()
371 0x21); /* JPEG 422 */ in sd_start()
381 {USB_DEVICE(0x0979, 0x0280), .driver_info = SAKAR_57379},
382 {USB_DEVICE(0x0979, 0x0270), .driver_info = SPORTSCAM_DV15},
394 gspca_dev->usb_err = 0; in sd_s_ctrl()
397 return 0; in sd_s_ctrl()
438 .def = 0, in sd_init_controls()
449 V4L2_CID_RED_BALANCE, 0, 3, 1, 2); in sd_init_controls()
451 V4L2_CID_GAIN, 0, 3, 1, 2); in sd_init_controls()
453 V4L2_CID_BLUE_BALANCE, 0, 3, 1, 2); in sd_init_controls()
462 return 0; in sd_init_controls()
471 return 0; in sd_set_jcomp()
479 memset(jcomp, 0, sizeof *jcomp); in sd_get_jcomp()
483 return 0; in sd_get_jcomp()