• Home
  • Raw
  • Download

Lines Matching refs:gspca_dev

176 static int  mi1320_init_at_startup(struct gspca_dev *gspca_dev);
177 static int mi1320_configure_alt(struct gspca_dev *gspca_dev);
178 static int mi1320_init_pre_alt(struct gspca_dev *gspca_dev);
179 static int mi1320_init_post_alt(struct gspca_dev *gspca_dev);
180 static void mi1320_post_unset_alt(struct gspca_dev *gspca_dev);
181 static int mi1320_sensor_settings(struct gspca_dev *gspca_dev);
182 static int mi1320_camera_settings(struct gspca_dev *gspca_dev);
185 void mi1320_init_settings(struct gspca_dev *gspca_dev) in mi1320_init_settings() argument
187 struct sd *sd = (struct sd *) gspca_dev; in mi1320_init_settings()
222 static void common(struct gspca_dev *gspca_dev) in common() argument
226 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 22, dat_common00); in common()
227 ctrl_out(gspca_dev, 0x40, 1, 0x0041, 0x0000, 0, NULL); in common()
228 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 32, dat_common01); in common()
229 n = fetch_validx(gspca_dev, tbl_common, ARRAY_SIZE(tbl_common)); in common()
230 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 48, dat_common02); in common()
231 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 48, dat_common03); in common()
232 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 16, dat_common04); in common()
233 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 48, dat_common05); in common()
234 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 44, dat_common06); in common()
235 keep_on_fetching_validx(gspca_dev, tbl_common, in common()
237 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 52, dat_common07); in common()
238 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 48, dat_common08); in common()
239 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 48, dat_common09); in common()
240 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 56, dat_common10); in common()
241 keep_on_fetching_validx(gspca_dev, tbl_common, in common()
243 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 40, dat_common11); in common()
244 keep_on_fetching_validx(gspca_dev, tbl_common, in common()
248 static int mi1320_init_at_startup(struct gspca_dev *gspca_dev) in mi1320_init_at_startup() argument
250 fetch_validx(gspca_dev, tbl_init_at_startup, in mi1320_init_at_startup()
253 common(gspca_dev); in mi1320_init_at_startup()
260 static int mi1320_init_pre_alt(struct gspca_dev *gspca_dev) in mi1320_init_pre_alt() argument
262 struct sd *sd = (struct sd *) gspca_dev; in mi1320_init_pre_alt()
278 common(gspca_dev); in mi1320_init_pre_alt()
280 mi1320_sensor_settings(gspca_dev); in mi1320_init_pre_alt()
282 mi1320_init_post_alt(gspca_dev); in mi1320_init_pre_alt()
287 static int mi1320_init_post_alt(struct gspca_dev *gspca_dev) in mi1320_init_post_alt() argument
289 mi1320_camera_settings(gspca_dev); in mi1320_init_post_alt()
294 static int mi1320_sensor_settings(struct gspca_dev *gspca_dev) in mi1320_sensor_settings() argument
296 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi1320_sensor_settings()
298 ctrl_out(gspca_dev, 0x40, 5, 0x0001, 0x0000, 0, NULL); in mi1320_sensor_settings()
300 fetch_validx(gspca_dev, tbl_sensor_settings_common, in mi1320_sensor_settings()
305 fetch_validx(gspca_dev, tbl_sensor_settings_1280, in mi1320_sensor_settings()
307 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 64, tbl_1280[0]); in mi1320_sensor_settings()
308 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 40, tbl_1280[1]); in mi1320_sensor_settings()
309 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, tbl_1280[2]); in mi1320_sensor_settings()
313 fetch_validx(gspca_dev, tbl_sensor_settings_800, in mi1320_sensor_settings()
315 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 64, tbl_800[0]); in mi1320_sensor_settings()
316 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 40, tbl_800[1]); in mi1320_sensor_settings()
317 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, tbl_800[2]); in mi1320_sensor_settings()
321 fetch_validx(gspca_dev, tbl_sensor_settings_640, in mi1320_sensor_settings()
323 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 60, tbl_640[0]); in mi1320_sensor_settings()
324 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 40, tbl_640[1]); in mi1320_sensor_settings()
325 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, 12, tbl_640[2]); in mi1320_sensor_settings()
331 static int mi1320_configure_alt(struct gspca_dev *gspca_dev) in mi1320_configure_alt() argument
333 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi1320_configure_alt()
337 gspca_dev->alt = 3 + 1; in mi1320_configure_alt()
342 gspca_dev->alt = 1 + 1; in mi1320_configure_alt()
348 static int mi1320_camera_settings(struct gspca_dev *gspca_dev) in mi1320_camera_settings() argument
350 struct sd *sd = (struct sd *) gspca_dev; in mi1320_camera_settings()
369 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
370 ctrl_out(gspca_dev, 0x40, 1, 0xba02, 0x00f1, 0, NULL); in mi1320_camera_settings()
371 ctrl_out(gspca_dev, 0x40, 1, 0xba00 , 0x005b, 0, NULL); in mi1320_camera_settings()
372 ctrl_out(gspca_dev, 0x40, 1, 0xba01 + freq, 0x00f1, 0, NULL); in mi1320_camera_settings()
382 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
384 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
386 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
388 ctrl_out(gspca_dev, 0x40, 3, in mi1320_camera_settings()
393 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
395 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
397 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
399 ctrl_out(gspca_dev, 0x40, 3, in mi1320_camera_settings()
404 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
406 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
408 ctrl_out(gspca_dev, 0x40, 1, in mi1320_camera_settings()
410 ctrl_out(gspca_dev, 0x40, 3, in mi1320_camera_settings()
422 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
423 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
424 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + bright, 0x0034, 0, NULL); in mi1320_camera_settings()
425 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + bright, 0x00f1, 0, NULL); in mi1320_camera_settings()
434 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
435 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
436 ctrl_out(gspca_dev, 0x40, 1, 0xba00 , 0x0025, 0, NULL); in mi1320_camera_settings()
437 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + sat, 0x00f1, 0, NULL); in mi1320_camera_settings()
445 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
446 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
447 ctrl_out(gspca_dev, 0x40, 1, 0xba00 , 0x0005, 0, NULL); in mi1320_camera_settings()
448 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + sharp, 0x00f1, 0, NULL); in mi1320_camera_settings()
460 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
461 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
462 ctrl_out(gspca_dev, 0x40, 1, 0xba70, 0x00e2, 0, NULL); in mi1320_camera_settings()
463 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + hue * (hue < 6), 0x00f1, in mi1320_camera_settings()
474 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
475 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
476 ctrl_out(gspca_dev, 0x40, 1, 0xba74, 0x0006, 0, NULL); in mi1320_camera_settings()
477 ctrl_out(gspca_dev, 0x40, 1, 0xba80 + backlight, 0x00f1, in mi1320_camera_settings()
485 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
486 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
487 ctrl_out(gspca_dev, 0x40, 1, 0xba70, 0x00e2, 0, NULL); in mi1320_camera_settings()
488 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + hue * (hue < 6), 0x00f1, in mi1320_camera_settings()
498 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 4, dat_hvflip1); in mi1320_camera_settings()
499 ctrl_out(gspca_dev, 0x40, 3, 0xba00, 0x0200, 4, dat_hvflip2); in mi1320_camera_settings()
508 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
509 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
510 ctrl_out(gspca_dev, 0x40, 1, 0xba04 , 0x003b, 0, NULL); in mi1320_camera_settings()
511 ctrl_out(gspca_dev, 0x40, 1, 0xba02 + gam, 0x00f1, 0, NULL); in mi1320_camera_settings()
519 ctrl_out(gspca_dev, 0x40, 1, 0xba00, 0x00f0, 0, NULL); in mi1320_camera_settings()
520 ctrl_out(gspca_dev, 0x40, 1, 0xba01, 0x00f1, 0, NULL); in mi1320_camera_settings()
521 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + tbl_cntr1[cntr], 0x0035, in mi1320_camera_settings()
523 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + tbl_cntr2[cntr], 0x00f1, in mi1320_camera_settings()
530 static void mi1320_post_unset_alt(struct gspca_dev *gspca_dev) in mi1320_post_unset_alt() argument
532 ctrl_out(gspca_dev, 0x40, 5, 0x0000, 0x0000, 0, NULL); in mi1320_post_unset_alt()
534 fetch_validx(gspca_dev, tbl_post_unset_alt, in mi1320_post_unset_alt()