Lines Matching refs:def
154 int r, def; in pwc_init_controls() local
162 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, BRIGHTNESS_FORMATTER, &def); in pwc_init_controls()
163 if (r || def > 127) in pwc_init_controls()
164 def = 63; in pwc_init_controls()
166 V4L2_CID_BRIGHTNESS, 0, 127, 1, def); in pwc_init_controls()
168 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, CONTRAST_FORMATTER, &def); in pwc_init_controls()
169 if (r || def > 63) in pwc_init_controls()
170 def = 31; in pwc_init_controls()
172 V4L2_CID_CONTRAST, 0, 63, 1, def); in pwc_init_controls()
180 &def); in pwc_init_controls()
181 if (r || def < -100 || def > 100) in pwc_init_controls()
182 def = 0; in pwc_init_controls()
184 V4L2_CID_SATURATION, -100, 100, 1, def); in pwc_init_controls()
187 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, GAMMA_FORMATTER, &def); in pwc_init_controls()
188 if (r || def > 31) in pwc_init_controls()
189 def = 15; in pwc_init_controls()
191 V4L2_CID_GAMMA, 0, 31, 1, def); in pwc_init_controls()
194 r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL, WB_MODE_FORMATTER, &def); in pwc_init_controls()
195 if (r || def > awb_auto) in pwc_init_controls()
196 def = awb_auto; in pwc_init_controls()
199 cfg.def = def; in pwc_init_controls()
206 PRESET_MANUAL_RED_GAIN_FORMATTER, &def); in pwc_init_controls()
208 def = 127; in pwc_init_controls()
210 V4L2_CID_RED_BALANCE, 0, 255, 1, def); in pwc_init_controls()
213 PRESET_MANUAL_BLUE_GAIN_FORMATTER, &def); in pwc_init_controls()
215 def = 127; in pwc_init_controls()
217 V4L2_CID_BLUE_BALANCE, 0, 255, 1, def); in pwc_init_controls()
222 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AGC_MODE_FORMATTER, &def); in pwc_init_controls()
223 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
224 def = 0; in pwc_init_controls()
227 V4L2_CID_AUTOGAIN, 0, 1, 1, def == 0); in pwc_init_controls()
231 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_AGC_FORMATTER, &def); in pwc_init_controls()
232 if (r || def > 63) in pwc_init_controls()
233 def = 31; in pwc_init_controls()
235 V4L2_CID_GAIN, 0, 63, 1, def); in pwc_init_controls()
240 &def); in pwc_init_controls()
241 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
242 def = 0; in pwc_init_controls()
250 1, 0, def != 0); in pwc_init_controls()
256 READ_SHUTTER_FORMATTER, &def); in pwc_init_controls()
257 if (r || def > 655) in pwc_init_controls()
258 def = 655; in pwc_init_controls()
260 V4L2_CID_EXPOSURE, 0, 655, 1, def); in pwc_init_controls()
268 READ_SHUTTER_FORMATTER, &def); in pwc_init_controls()
269 if (r || def > 255) in pwc_init_controls()
270 def = 255; in pwc_init_controls()
272 V4L2_CID_EXPOSURE, 0, 255, 1, def); in pwc_init_controls()
283 &def); in pwc_init_controls()
284 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
285 def = 0xff; in pwc_init_controls()
288 V4L2_CID_COLORFX, 1, 0, def == 0); in pwc_init_controls()
291 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AUTO_CONTOUR_FORMATTER, &def); in pwc_init_controls()
292 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
293 def = 0; in pwc_init_controls()
295 cfg.def = def == 0; in pwc_init_controls()
300 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_CONTOUR_FORMATTER, &def); in pwc_init_controls()
301 if (r || def > 63) in pwc_init_controls()
302 def = 31; in pwc_init_controls()
304 cfg.def = def; in pwc_init_controls()
311 BACK_LIGHT_COMPENSATION_FORMATTER, &def); in pwc_init_controls()
312 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
313 def = 0; in pwc_init_controls()
316 cfg.def = def == 0; in pwc_init_controls()
321 FLICKERLESS_MODE_FORMATTER, &def); in pwc_init_controls()
322 if (r || (def != 0 && def != 0xff)) in pwc_init_controls()
323 def = 0; in pwc_init_controls()
326 cfg.def = def == 0; in pwc_init_controls()
331 DYNAMIC_NOISE_CONTROL_FORMATTER, &def); in pwc_init_controls()
332 if (r || def > 3) in pwc_init_controls()
333 def = 2; in pwc_init_controls()
335 cfg.def = def; in pwc_init_controls()
352 AWB_CONTROL_SPEED_FORMATTER, &def); in pwc_init_controls()
353 if (r || def < 1 || def > 32) in pwc_init_controls()
354 def = 1; in pwc_init_controls()
356 cfg.def = def; in pwc_init_controls()
360 AWB_CONTROL_DELAY_FORMATTER, &def); in pwc_init_controls()
361 if (r || def > 63) in pwc_init_controls()
362 def = 0; in pwc_init_controls()
364 cfg.def = def; in pwc_init_controls()