Lines Matching +full:flip +full:- +full:chip

1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Subdriver for the GL860 chip with the MI1320 sensor
204 sd->vcur.backlight = 0; in mi1320_init_settings()
205 sd->vcur.brightness = 0; in mi1320_init_settings()
206 sd->vcur.sharpness = 6; in mi1320_init_settings()
207 sd->vcur.contrast = 10; in mi1320_init_settings()
208 sd->vcur.gamma = 20; in mi1320_init_settings()
209 sd->vcur.hue = 0; in mi1320_init_settings()
210 sd->vcur.saturation = 6; in mi1320_init_settings()
211 sd->vcur.whitebal = 0; in mi1320_init_settings()
212 sd->vcur.mirror = 0; in mi1320_init_settings()
213 sd->vcur.flip = 0; in mi1320_init_settings()
214 sd->vcur.AC50Hz = 1; in mi1320_init_settings()
216 sd->vmax.backlight = 2; in mi1320_init_settings()
217 sd->vmax.brightness = 8; in mi1320_init_settings()
218 sd->vmax.sharpness = 7; in mi1320_init_settings()
219 sd->vmax.contrast = 0; /* 10 but not working with this driver */ in mi1320_init_settings()
220 sd->vmax.gamma = 40; in mi1320_init_settings()
221 sd->vmax.hue = 5 + 1; in mi1320_init_settings()
222 sd->vmax.saturation = 8; in mi1320_init_settings()
223 sd->vmax.whitebal = 2; in mi1320_init_settings()
224 sd->vmax.mirror = 1; in mi1320_init_settings()
225 sd->vmax.flip = 1; in mi1320_init_settings()
226 sd->vmax.AC50Hz = 1; in mi1320_init_settings()
228 sd->dev_camera_settings = mi1320_camera_settings; in mi1320_init_settings()
229 sd->dev_init_at_startup = mi1320_init_at_startup; in mi1320_init_settings()
230 sd->dev_configure_alt = mi1320_configure_alt; in mi1320_init_settings()
231 sd->dev_init_pre_alt = mi1320_init_pre_alt; in mi1320_init_settings()
232 sd->dev_post_unset_alt = mi1320_post_unset_alt; in mi1320_init_settings()
279 sd->mirrorMask = 0; in mi1320_init_pre_alt()
281 sd->vold.backlight = -1; in mi1320_init_pre_alt()
282 sd->vold.brightness = -1; in mi1320_init_pre_alt()
283 sd->vold.sharpness = -1; in mi1320_init_pre_alt()
284 sd->vold.contrast = -1; in mi1320_init_pre_alt()
285 sd->vold.saturation = -1; in mi1320_init_pre_alt()
286 sd->vold.gamma = -1; in mi1320_init_pre_alt()
287 sd->vold.hue = -1; in mi1320_init_pre_alt()
288 sd->vold.whitebal = -1; in mi1320_init_pre_alt()
289 sd->vold.mirror = -1; in mi1320_init_pre_alt()
290 sd->vold.flip = -1; in mi1320_init_pre_alt()
291 sd->vold.AC50Hz = -1; in mi1320_init_pre_alt()
311 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi1320_sensor_settings()
348 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi1320_configure_alt()
352 gspca_dev->alt = 3 + 1; in mi1320_configure_alt()
357 gspca_dev->alt = 1 + 1; in mi1320_configure_alt()
367 s32 backlight = sd->vcur.backlight; in mi1320_camera_settings()
368 s32 bright = sd->vcur.brightness; in mi1320_camera_settings()
369 s32 sharp = sd->vcur.sharpness; in mi1320_camera_settings()
370 s32 cntr = sd->vcur.contrast; in mi1320_camera_settings()
371 s32 gam = sd->vcur.gamma; in mi1320_camera_settings()
372 s32 hue = sd->vcur.hue; in mi1320_camera_settings()
373 s32 sat = sd->vcur.saturation; in mi1320_camera_settings()
374 s32 wbal = sd->vcur.whitebal; in mi1320_camera_settings()
375 s32 mirror = (((sd->vcur.mirror > 0) ^ sd->mirrorMask) > 0); in mi1320_camera_settings()
376 s32 flip = (((sd->vcur.flip > 0) ^ sd->mirrorMask) > 0); in mi1320_camera_settings() local
377 s32 freq = (sd->vcur.AC50Hz > 0); in mi1320_camera_settings()
380 if (freq != sd->vold.AC50Hz) { in mi1320_camera_settings()
381 sd->vold.AC50Hz = freq; in mi1320_camera_settings()
390 if (wbal != sd->vold.whitebal) { in mi1320_camera_settings()
391 sd->vold.whitebal = wbal; in mi1320_camera_settings()
392 if (wbal < 0 || wbal > sd->vmax.whitebal) in mi1320_camera_settings()
431 if (bright != sd->vold.brightness) { in mi1320_camera_settings()
432 sd->vold.brightness = bright; in mi1320_camera_settings()
433 if (bright < 0 || bright > sd->vmax.brightness) in mi1320_camera_settings()
443 if (sat != sd->vold.saturation) { in mi1320_camera_settings()
444 sd->vold.saturation = sat; in mi1320_camera_settings()
445 if (sat < 0 || sat > sd->vmax.saturation) in mi1320_camera_settings()
455 if (sharp != sd->vold.sharpness) { in mi1320_camera_settings()
456 sd->vold.sharpness = sharp; in mi1320_camera_settings()
457 if (sharp < 0 || sharp > sd->vmax.sharpness) in mi1320_camera_settings()
466 if (hue != sd->vold.hue) { in mi1320_camera_settings()
468 if (hue < 0 || hue > sd->vmax.hue) in mi1320_camera_settings()
470 if (hue == sd->vmax.hue) in mi1320_camera_settings()
471 sd->swapRB = 1; in mi1320_camera_settings()
473 sd->swapRB = 0; in mi1320_camera_settings()
482 if (backlight != sd->vold.backlight) { in mi1320_camera_settings()
483 sd->vold.backlight = backlight; in mi1320_camera_settings()
484 if (backlight < 0 || backlight > sd->vmax.backlight) in mi1320_camera_settings()
497 if (hue != sd->vold.hue) { in mi1320_camera_settings()
498 sd->vold.hue = hue; in mi1320_camera_settings()
507 if (mirror != sd->vold.mirror || flip != sd->vold.flip) { in mi1320_camera_settings()
509 sd->vold.mirror = mirror; in mi1320_camera_settings()
510 sd->vold.flip = flip; in mi1320_camera_settings()
512 dat_hvflip2[3] = flip + 2 * mirror; in mi1320_camera_settings()
517 if (gam != sd->vold.gamma) { in mi1320_camera_settings()
518 sd->vold.gamma = gam; in mi1320_camera_settings()
519 if (gam < 0 || gam > sd->vmax.gamma) in mi1320_camera_settings()
529 if (cntr != sd->vold.contrast) { in mi1320_camera_settings()
530 sd->vold.contrast = cntr; in mi1320_camera_settings()
531 if (cntr < 0 || cntr > sd->vmax.contrast) in mi1320_camera_settings()