Home
last modified time | relevance | path

Searched refs:ccdcparam (Results 1 – 2 of 2) sorted by relevance

/drivers/media/platform/davinci/
Ddm355_ccdc.c267 static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam) in validate_ccdc_param() argument
269 if (ccdcparam->datasft < CCDC_DATA_NO_SHIFT || in validate_ccdc_param()
270 ccdcparam->datasft > CCDC_DATA_SHIFT_6BIT) { in validate_ccdc_param()
275 if (ccdcparam->mfilt1 < CCDC_NO_MEDIAN_FILTER1 || in validate_ccdc_param()
276 ccdcparam->mfilt1 > CCDC_MEDIAN_FILTER1) { in validate_ccdc_param()
281 if (ccdcparam->mfilt2 < CCDC_NO_MEDIAN_FILTER2 || in validate_ccdc_param()
282 ccdcparam->mfilt2 > CCDC_MEDIAN_FILTER2) { in validate_ccdc_param()
287 if ((ccdcparam->med_filt_thres < 0) || in validate_ccdc_param()
288 (ccdcparam->med_filt_thres > CCDC_MED_FILT_THRESH)) { in validate_ccdc_param()
294 if (ccdcparam->data_sz < CCDC_DATA_16BITS || in validate_ccdc_param()
[all …]
Ddm644x_ccdc.c223 static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam) in validate_ccdc_param() argument
225 if (ccdcparam->alaw.enable) { in validate_ccdc_param()
226 u8 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); in validate_ccdc_param()
227 u8 max_data = ccdc_data_size_max_bit(ccdcparam->data_sz); in validate_ccdc_param()
229 if ((ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) || in validate_ccdc_param()
230 (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_15_6) || in validate_ccdc_param()