Lines Matching refs:osr
103 unsigned int osr; member
1239 unsigned int osr; in nau8825_get_osr() local
1243 NAU8825_REG_DAC_CTRL1, &osr); in nau8825_get_osr()
1244 osr &= NAU8825_DAC_OVERSAMPLE_MASK; in nau8825_get_osr()
1245 if (osr >= ARRAY_SIZE(osr_dac_sel)) in nau8825_get_osr()
1247 return &osr_dac_sel[osr]; in nau8825_get_osr()
1250 NAU8825_REG_ADC_RATE, &osr); in nau8825_get_osr()
1251 osr &= NAU8825_ADC_SYNC_DOWN_MASK; in nau8825_get_osr()
1252 if (osr >= ARRAY_SIZE(osr_adc_sel)) in nau8825_get_osr()
1254 return &osr_adc_sel[osr]; in nau8825_get_osr()
1263 const struct nau8825_osr_attr *osr; in nau8825_dai_startup() local
1265 osr = nau8825_get_osr(nau8825, substream->stream); in nau8825_dai_startup()
1266 if (!osr || !osr->osr) in nau8825_dai_startup()
1271 0, CLK_DA_AD_MAX / osr->osr); in nau8825_dai_startup()
1281 const struct nau8825_osr_attr *osr; in nau8825_hw_params() local
1292 osr = nau8825_get_osr(nau8825, substream->stream); in nau8825_hw_params()
1293 if (!osr || !osr->osr) in nau8825_hw_params()
1295 if (params_rate(params) * osr->osr > CLK_DA_AD_MAX) in nau8825_hw_params()
1300 osr->clk_src << NAU8825_CLK_DAC_SRC_SFT); in nau8825_hw_params()
1304 osr->clk_src << NAU8825_CLK_ADC_SRC_SFT); in nau8825_hw_params()