Searched refs:osr (Results 1 – 7 of 7) sorted by relevance
/sound/soc/codecs/ |
D | nau8540.c | 360 static int nau8540_clock_check(struct nau8540 *nau8540, int rate, int osr) in nau8540_clock_check() argument 362 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8540_clock_check() 365 if (rate * osr > CLK_ADC_MAX) { in nau8540_clock_check() 378 unsigned int val_len = 0, osr; in nau8540_hw_params() local 386 regmap_read(nau8540->regmap, NAU8540_REG_ADC_SAMPLE_RATE, &osr); in nau8540_hw_params() 387 osr &= NAU8540_ADC_OSR_MASK; in nau8540_hw_params() 388 if (nau8540_clock_check(nau8540, params_rate(params), osr)) in nau8540_hw_params() 392 osr_adc_sel[osr].clk_src << NAU8540_CLK_ADC_SRC_SFT); in nau8540_hw_params()
|
D | nau8824.c | 1040 int stream, int rate, int osr) in nau8824_clock_check() argument 1045 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8824_clock_check() 1047 osrate = osr_dac_sel[osr].osr; in nau8824_clock_check() 1049 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8824_clock_check() 1051 osrate = osr_adc_sel[osr].osr; in nau8824_clock_check() 1054 if (!osrate || rate * osr > CLK_DA_AD_MAX) { in nau8824_clock_check() 1067 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8824_hw_params() local 1080 NAU8824_REG_DAC_FILTER_CTRL_1, &osr); in nau8824_hw_params() 1081 osr &= NAU8824_DAC_OVERSAMPLE_MASK; in nau8824_hw_params() 1083 nau8824->fs, osr)) in nau8824_hw_params() [all …]
|
D | nau8825.c | 101 unsigned int osr; member 1219 int stream, int rate, int osr) in nau8825_clock_check() argument 1224 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8825_clock_check() 1226 osrate = osr_dac_sel[osr].osr; in nau8825_clock_check() 1228 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8825_clock_check() 1230 osrate = osr_adc_sel[osr].osr; in nau8825_clock_check() 1233 if (!osrate || rate * osr > CLK_DA_AD_MAX) { in nau8825_clock_check() 1247 unsigned int val_len = 0, osr, ctrl_val, bclk_fs, bclk_div; in nau8825_hw_params() local 1258 regmap_read(nau8825->regmap, NAU8825_REG_DAC_CTRL1, &osr); in nau8825_hw_params() 1259 osr &= NAU8825_DAC_OVERSAMPLE_MASK; in nau8825_hw_params() [all …]
|
D | wm8580.c | 542 int i, ratio, osr; in wm8580_paif_hw_params() local 583 osr = WM8580_DACOSR; in wm8580_paif_hw_params() 587 osr = 0; in wm8580_paif_hw_params() 592 snd_soc_component_update_bits(component, WM8580_PAIF3, WM8580_DACOSR, osr); in wm8580_paif_hw_params()
|
D | nau8540.h | 234 unsigned int osr; member
|
D | nau8824.h | 466 unsigned int osr; member
|
/sound/soc/fsl/ |
D | fsl_micfil.c | 114 int qsel, osr; in get_pdm_clk() local 118 osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK) in get_pdm_clk() 126 bclk = rate * 8 * osr / 2; /* kfactor = 0.5 */ in get_pdm_clk() 130 bclk = rate * 4 * osr * 1; /* kfactor = 1 */ in get_pdm_clk() 134 bclk = rate * 2 * osr * 2; /* kfactor = 2 */ in get_pdm_clk() 137 bclk = rate * osr * 4; /* kfactor = 4 */ in get_pdm_clk()
|