Lines Matching defs:rate
160 static unsigned int snd_emu10k1_capture_rate_reg(unsigned int rate)
162 switch (rate) {
187 static unsigned int snd_emu10k1_audigy_capture_rate_reg(unsigned int rate)
189 switch (rate) {
210 // This also sets the rate constraint by deleting SNDRV_PCM_RATE_KNOT
226 int rate;
228 rate = emu->emu1010.word_clock;
229 runtime->hw.rate_min = runtime->hw.rate_max = rate;
230 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate);
233 static unsigned int emu10k1_calc_pitch_target(unsigned int rate)
237 pitch_target = (rate << 8) / 375;
448 unsigned int rate;
450 rate = runtime->rate;
453 rate = rate * 480 / 441;
454 epcm->pitch_target = emu10k1_calc_pitch_target(rate);
564 unsigned rate = runtime->rate;
566 rate = rate * 480 / 441;
572 snd_emu10k1_audigy_capture_rate_reg(rate) :
573 snd_emu10k1_capture_rate_reg(rate);