Lines Matching refs:gspca_dev
175 static int ov2640_init_at_startup(struct gspca_dev *gspca_dev);
176 static int ov2640_configure_alt(struct gspca_dev *gspca_dev);
177 static int ov2640_init_pre_alt(struct gspca_dev *gspca_dev);
178 static int ov2640_init_post_alt(struct gspca_dev *gspca_dev);
179 static void ov2640_post_unset_alt(struct gspca_dev *gspca_dev);
180 static int ov2640_camera_settings(struct gspca_dev *gspca_dev);
183 void ov2640_init_settings(struct gspca_dev *gspca_dev) in ov2640_init_settings() argument
185 struct sd *sd = (struct sd *) gspca_dev; in ov2640_init_settings()
219 static void common(struct gspca_dev *gspca_dev) in common() argument
221 fetch_validx(gspca_dev, tbl_common, ARRAY_SIZE(tbl_common)); in common()
224 static int ov2640_init_at_startup(struct gspca_dev *gspca_dev) in ov2640_init_at_startup() argument
226 fetch_validx(gspca_dev, tbl_init_at_startup, in ov2640_init_at_startup()
229 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, dat_init1); in ov2640_init_at_startup()
231 common(gspca_dev); in ov2640_init_at_startup()
233 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0006, 1, c61); in ov2640_init_at_startup()
235 ctrl_out(gspca_dev, 0x40, 1, 0x00ef, 0x0006, 0, NULL); in ov2640_init_at_startup()
237 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0000, 1, c51); in ov2640_init_at_startup()
239 ctrl_out(gspca_dev, 0x40, 1, 0x0051, 0x0000, 0, NULL); in ov2640_init_at_startup()
245 static int ov2640_init_pre_alt(struct gspca_dev *gspca_dev) in ov2640_init_pre_alt() argument
247 struct sd *sd = (struct sd *) gspca_dev; in ov2640_init_pre_alt()
262 ov2640_init_post_alt(gspca_dev); in ov2640_init_pre_alt()
267 static int ov2640_init_post_alt(struct gspca_dev *gspca_dev) in ov2640_init_post_alt() argument
269 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in ov2640_init_post_alt()
272 ctrl_out(gspca_dev, 0x40, 5, 0x0001, 0x0000, 0, NULL); in ov2640_init_post_alt()
274 n = fetch_validx(gspca_dev, tbl_sensor_settings_common1, in ov2640_init_post_alt()
276 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, dat_post); in ov2640_init_post_alt()
277 common(gspca_dev); in ov2640_init_post_alt()
278 keep_on_fetching_validx(gspca_dev, tbl_sensor_settings_common1, in ov2640_init_post_alt()
283 n = fetch_validx(gspca_dev, tbl_640, ARRAY_SIZE(tbl_640)); in ov2640_init_post_alt()
284 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, dat_640); in ov2640_init_post_alt()
288 n = fetch_validx(gspca_dev, tbl_800, ARRAY_SIZE(tbl_800)); in ov2640_init_post_alt()
289 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, dat_800); in ov2640_init_post_alt()
294 n = fetch_validx(gspca_dev, tbl_big1, ARRAY_SIZE(tbl_big1)); in ov2640_init_post_alt()
297 n = fetch_validx(gspca_dev, tbl_big2, in ov2640_init_post_alt()
300 ctrl_out(gspca_dev, 0x40, 1, 0x601d, 0x0086, 0, NULL); in ov2640_init_post_alt()
301 ctrl_out(gspca_dev, 0x40, 1, 0x6001, 0x00d7, 0, NULL); in ov2640_init_post_alt()
302 ctrl_out(gspca_dev, 0x40, 1, 0x6082, 0x00d3, 0, NULL); in ov2640_init_post_alt()
305 n = fetch_validx(gspca_dev, tbl_big3, ARRAY_SIZE(tbl_big3)); in ov2640_init_post_alt()
308 ctrl_out(gspca_dev, 0x40, 1, 0x6001, 0x00ff, 0, NULL); in ov2640_init_post_alt()
309 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in ov2640_init_post_alt()
312 ctrl_out(gspca_dev, 0x40, 1, 0x6020, 0x008c, 0, NULL); in ov2640_init_post_alt()
313 ctrl_out(gspca_dev, 0x40, 1, 0x6001, 0x00ff, 0, NULL); in ov2640_init_post_alt()
314 ctrl_out(gspca_dev, 0x40, 1, 0x6076, 0x0018, 0, NULL); in ov2640_init_post_alt()
315 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in ov2640_init_post_alt()
321 n = fetch_validx(gspca_dev, tbl_sensor_settings_common2, in ov2640_init_post_alt()
324 ov2640_camera_settings(gspca_dev); in ov2640_init_post_alt()
329 static int ov2640_configure_alt(struct gspca_dev *gspca_dev) in ov2640_configure_alt() argument
331 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in ov2640_configure_alt()
335 gspca_dev->alt = 3 + 1; in ov2640_configure_alt()
341 gspca_dev->alt = 1 + 1; in ov2640_configure_alt()
347 static int ov2640_camera_settings(struct gspca_dev *gspca_dev) in ov2640_camera_settings() argument
349 struct sd *sd = (struct sd *) gspca_dev; in ov2640_camera_settings()
367 ctrl_out(gspca_dev, 0x40, 1, 0x6001 , 0x00ff, in ov2640_camera_settings()
369 ctrl_out(gspca_dev, 0x40, 1, 0x601e + backlight , 0x0024, in ov2640_camera_settings()
371 ctrl_out(gspca_dev, 0x40, 1, 0x601e + backlight - 10, 0x0025, in ov2640_camera_settings()
380 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
381 ctrl_out(gspca_dev, 0x40, 1, 0x6009 , 0x007c, 0, NULL); in ov2640_camera_settings()
382 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + bright, 0x007d, 0, NULL); in ov2640_camera_settings()
390 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
391 ctrl_out(gspca_dev, 0x40, 1, 0x6003 , 0x007c, 0, NULL); in ov2640_camera_settings()
392 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + wbal, 0x007d, 0, NULL); in ov2640_camera_settings()
400 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
401 ctrl_out(gspca_dev, 0x40, 1, 0x6007 , 0x007c, 0, NULL); in ov2640_camera_settings()
402 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + cntr, 0x007d, 0, NULL); in ov2640_camera_settings()
410 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
411 ctrl_out(gspca_dev, 0x40, 1, 0x6001 , 0x007c, 0, NULL); in ov2640_camera_settings()
412 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + sat, 0x007d, 0, NULL); in ov2640_camera_settings()
420 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
421 ctrl_out(gspca_dev, 0x40, 1, 0x6001 , 0x0092, 0, NULL); in ov2640_camera_settings()
422 ctrl_out(gspca_dev, 0x40, 1, 0x60c0 + sharp, 0x0093, 0, NULL); in ov2640_camera_settings()
430 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
431 ctrl_out(gspca_dev, 0x40, 1, 0x6002 , 0x007c, 0, NULL); in ov2640_camera_settings()
432 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + hue * (hue < 255), 0x007d, in ov2640_camera_settings()
445 ctrl_out(gspca_dev, 0x40, 1, 0x6000 , 0x00ff, 0, NULL); in ov2640_camera_settings()
446 ctrl_out(gspca_dev, 0x40, 1, 0x6008 , 0x007c, 0, NULL); in ov2640_camera_settings()
447 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + gam, 0x007d, 0, NULL); in ov2640_camera_settings()
455 ctrl_out(gspca_dev, 0x40, 1, 0x6001, 0x00ff, 0, NULL); in ov2640_camera_settings()
456 ctrl_out(gspca_dev, 0x40, 1, 0x6000, 0x8004, 0, NULL); in ov2640_camera_settings()
457 ctrl_in(gspca_dev, 0xc0, 2, 0x6000, 0x8004, 1, c28); in ov2640_camera_settings()
458 ctrl_out(gspca_dev, 0x40, 1, 0x6028 + mirror, 0x0004, 0, NULL); in ov2640_camera_settings()
461 ctrl_out(gspca_dev, 0x40, 1, 0x6001, 0x00ff, 0, NULL); in ov2640_camera_settings()
462 ctrl_out(gspca_dev, 0x40, 1, 0x6000, 0x8004, 0, NULL); in ov2640_camera_settings()
463 ctrl_in(gspca_dev, 0xc0, 2, 0x6000, 0x8004, 1, ca8); in ov2640_camera_settings()
464 ctrl_out(gspca_dev, 0x40, 1, 0x6028 + flip, 0x0004, 0, NULL); in ov2640_camera_settings()
466 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0000, 1, c50); in ov2640_camera_settings()
472 ctrl_out(gspca_dev, 0x40, 1, 0x6001 , 0x00ff, in ov2640_camera_settings()
474 ctrl_out(gspca_dev, 0x40, 1, 0x601e + backlight , 0x0024, in ov2640_camera_settings()
476 ctrl_out(gspca_dev, 0x40, 1, 0x601e + backlight - 10, 0x0025, in ov2640_camera_settings()
483 static void ov2640_post_unset_alt(struct gspca_dev *gspca_dev) in ov2640_post_unset_alt() argument
485 ctrl_out(gspca_dev, 0x40, 5, 0x0000, 0x0000, 0, NULL); in ov2640_post_unset_alt()
487 fetch_validx(gspca_dev, tbl_post_unset_alt, in ov2640_post_unset_alt()