Lines Matching refs:def
166 int r, def; in pwc_init_controls() local
174 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, BRIGHTNESS_FORMATTER, &def); in pwc_init_controls()
175 if (r || def > 127) in pwc_init_controls()
176 def = 63; in pwc_init_controls()
178 V4L2_CID_BRIGHTNESS, 0, 127, 1, def); in pwc_init_controls()
180 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, CONTRAST_FORMATTER, &def); in pwc_init_controls()
181 if (r || def > 63) in pwc_init_controls()
182 def = 31; in pwc_init_controls()
184 V4L2_CID_CONTRAST, 0, 63, 1, def); in pwc_init_controls()
192 &def); in pwc_init_controls()
193 if (r || def < -100 || def > 100) in pwc_init_controls()
194 def = 0; in pwc_init_controls()
196 V4L2_CID_SATURATION, -100, 100, 1, def); in pwc_init_controls()
199 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, GAMMA_FORMATTER, &def); in pwc_init_controls()
200 if (r || def > 31) in pwc_init_controls()
201 def = 15; in pwc_init_controls()
203 V4L2_CID_GAMMA, 0, 31, 1, def); in pwc_init_controls()
206 r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL, WB_MODE_FORMATTER, &def); in pwc_init_controls()
207 if (r || def > awb_auto) in pwc_init_controls()
208 def = awb_auto; in pwc_init_controls()
211 cfg.def = def; in pwc_init_controls()
218 PRESET_MANUAL_RED_GAIN_FORMATTER, &def); in pwc_init_controls()
220 def = 127; in pwc_init_controls()
222 V4L2_CID_RED_BALANCE, 0, 255, 1, def); in pwc_init_controls()
225 PRESET_MANUAL_BLUE_GAIN_FORMATTER, &def); in pwc_init_controls()
227 def = 127; in pwc_init_controls()
229 V4L2_CID_BLUE_BALANCE, 0, 255, 1, def); in pwc_init_controls()
234 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AGC_MODE_FORMATTER, &def); in pwc_init_controls()
235 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
236 def = 0; in pwc_init_controls()
239 V4L2_CID_AUTOGAIN, 0, 1, 1, def == 0); in pwc_init_controls()
243 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_AGC_FORMATTER, &def); in pwc_init_controls()
244 if (r || def > 63) in pwc_init_controls()
245 def = 31; in pwc_init_controls()
247 V4L2_CID_GAIN, 0, 63, 1, def); in pwc_init_controls()
252 &def); in pwc_init_controls()
253 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
254 def = 0; in pwc_init_controls()
262 1, 0, def != 0); in pwc_init_controls()
268 READ_SHUTTER_FORMATTER, &def); in pwc_init_controls()
269 if (r || def > 655) in pwc_init_controls()
270 def = 655; in pwc_init_controls()
272 V4L2_CID_EXPOSURE, 0, 655, 1, def); in pwc_init_controls()
280 READ_SHUTTER_FORMATTER, &def); in pwc_init_controls()
281 if (r || def > 255) in pwc_init_controls()
282 def = 255; in pwc_init_controls()
284 V4L2_CID_EXPOSURE, 0, 255, 1, def); in pwc_init_controls()
295 &def); in pwc_init_controls()
296 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
297 def = 0xff; in pwc_init_controls()
300 V4L2_CID_COLORFX, 1, 0, def == 0); in pwc_init_controls()
303 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AUTO_CONTOUR_FORMATTER, &def); in pwc_init_controls()
304 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
305 def = 0; in pwc_init_controls()
307 cfg.def = def == 0; in pwc_init_controls()
312 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_CONTOUR_FORMATTER, &def); in pwc_init_controls()
313 if (r || def > 63) in pwc_init_controls()
314 def = 31; in pwc_init_controls()
316 cfg.def = def; in pwc_init_controls()
323 BACK_LIGHT_COMPENSATION_FORMATTER, &def); in pwc_init_controls()
324 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
325 def = 0; in pwc_init_controls()
328 cfg.def = def == 0; in pwc_init_controls()
333 FLICKERLESS_MODE_FORMATTER, &def); in pwc_init_controls()
334 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
335 def = 0; in pwc_init_controls()
338 cfg.def = def == 0; in pwc_init_controls()
343 DYNAMIC_NOISE_CONTROL_FORMATTER, &def); in pwc_init_controls()
344 if (r || def > 3) in pwc_init_controls()
345 def = 2; in pwc_init_controls()
347 cfg.def = def; in pwc_init_controls()
364 AWB_CONTROL_SPEED_FORMATTER, &def); in pwc_init_controls()
365 if (r || def < 1 || def > 32) in pwc_init_controls()
366 def = 1; in pwc_init_controls()
368 cfg.def = def; in pwc_init_controls()
372 AWB_CONTROL_DELAY_FORMATTER, &def); in pwc_init_controls()
373 if (r || def > 63) in pwc_init_controls()
374 def = 0; in pwc_init_controls()
376 cfg.def = def; in pwc_init_controls()