Lines Matching refs:rate
42 #define SAMPLES_TO_US(rate, samples) \
43 (1000000000 / (((rate) * 1000) / (samples)))
45 #define US_TO_SAMPLES(rate, us) \
46 ((rate) / (1000000 / ((us) < 1000000 ? (us) : 1000000)))
289 /* A : DAC sample rate Fsref/1.5 */
817 dev_err(component->dev, "unsupported rate %d\n",
840 #define CALC_OSCSET(rate, refclk) ( \
841 ((((rate * 10000) / refclk) * 4096) + 7000) / 10000)
842 #define CALC_RATIOSET(rate, refclk) ( \
843 ((((refclk * 100000) / rate) * 16384) + 50000) / 100000)
857 switch (substream->runtime->rate) {
860 oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk);
861 ratioset = CALC_RATIOSET(substream->runtime->rate,
865 dev_err(component->dev, "unsupported rate %d\n",
866 substream->runtime->rate);
1053 unsigned int rate = substream->runtime->rate;
1063 dac33->alarm_threshold = US_TO_SAMPLES(rate,
1087 dac33->uthr = UTHR_FROM_PERIOD_SIZE(period_size, rate,
1095 SAMPLES_TO_US(substream->runtime->rate,
1169 substream->runtime->rate,
1183 substream->runtime->rate,
1205 substream->runtime->rate,
1246 substream->runtime->rate,
1261 substream->runtime->rate,