Lines Matching defs:rate
658 Description: This routine converts rate in HZ to hardware delta value.
661 rate - Real or Virtual channel number.
666 static unsigned int snd_trident_convert_rate(unsigned int rate)
674 if (rate == 44100)
676 else if (rate == 8000)
678 else if (rate == 48000)
681 delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff;
688 Description: This routine converts rate in HZ to hardware delta value.
691 rate - Real or Virtual channel number.
696 static unsigned int snd_trident_convert_adc_rate(unsigned int rate)
704 if (rate == 44100)
706 else if (rate == 8000)
708 else if (rate == 48000)
711 delta = ((48000 << 12) / rate) & 0x0000ffff;
718 Description: This routine converts rate in HZ to spurious threshold.
721 rate - Real or Virtual channel number.
726 static unsigned int snd_trident_spurious_threshold(unsigned int rate,
729 unsigned int res = (rate * period_size) / 48000;
916 /* set delta (rate) value */
917 voice->Delta = snd_trident_convert_rate(runtime->rate);
918 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1036 // Set channel sample rate, 4.12 format
1037 val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate;
1062 voice->Delta = snd_trident_convert_rate(runtime->rate);
1063 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1153 voice->Delta = snd_trident_convert_adc_rate(runtime->rate);
1154 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1178 evoice->Delta = snd_trident_convert_rate(runtime->rate);
1232 /* set sample rate */
1371 /* set delta (rate) value */
1372 voice->Delta = snd_trident_convert_rate(runtime->rate);
1373 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1421 /* set delta (rate) value */