Home
last modified time | relevance | path

Searched refs:gam (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/media/usb/gspca/gl860/
Dgl860-mi1320.c344 s32 gam = sd->vcur.gamma; in mi1320_camera_settings() local
490 if (gam != sd->vold.gamma) { in mi1320_camera_settings()
491 sd->vold.gamma = gam; in mi1320_camera_settings()
492 if (gam < 0 || gam > sd->vmax.gamma) in mi1320_camera_settings()
493 gam = 0; in mi1320_camera_settings()
495 gam = 2 * gam; in mi1320_camera_settings()
499 ctrl_out(gspca_dev, 0x40, 1, 0xba02 + gam, 0x00f1, 0, NULL); in mi1320_camera_settings()
Dgl860-ov2640.c342 s32 gam = sd->vcur.gamma; in ov2640_camera_settings() local
428 if (gam != sd->vold.gamma) { in ov2640_camera_settings()
429 sd->vold.gamma = gam; in ov2640_camera_settings()
430 if (gam < 0 || gam > sd->vmax.gamma) in ov2640_camera_settings()
431 gam = 0; in ov2640_camera_settings()
435 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + gam, 0x007d, 0, NULL); in ov2640_camera_settings()
Dgl860-mi2020.c630 s32 gam = sd->vcur.gamma; in mi2020_camera_settings() local
734 if (cntr != sd->vold.contrast || gam != sd->vold.gamma) { in mi2020_camera_settings()
738 sd->vold.gamma = gam; in mi2020_camera_settings()
739 if (gam < 0 || gam > sd->vmax.gamma) in mi2020_camera_settings()
740 gam = 0; in mi2020_camera_settings()
746 dat_multi4[2] = dat_multi2[2] = cntr * 0x10 + 2 - gam; in mi2020_camera_settings()