Lines Matching refs:contrast
27 struct v4l2_ctrl *contrast; member
1628 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1848 u8 contrast[6]; in setcontrast() local
1850 k2 = sd->contrast->val * 37 / (CONTRAST_MAX + 1) in setcontrast()
1852 contrast[0] = (k2 + 1) / 2; /* red */ in setcontrast()
1853 contrast[1] = 0; in setcontrast()
1854 contrast[2] = k2; /* green */ in setcontrast()
1855 contrast[3] = 0; in setcontrast()
1856 contrast[4] = k2 / 5; /* blue */ in setcontrast()
1857 contrast[5] = 0; in setcontrast()
1858 reg_w(gspca_dev, 0x84, contrast, sizeof contrast); in setcontrast()