Lines Matching defs:rate

112  * locking rate makes sense only for internal clock mode
612 static void stdclock_set_rate(struct snd_ice1712 *ice, unsigned int rate)
616 if (stdclock_rate_list[i] == rate) {
624 unsigned int rate)
630 if (rate > 96000)
644 static int snd_vt1724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate,
652 if (rate > ice->hw_rates->list[ice->hw_rates->count - 1])
658 /* running? we cannot change the rate now... */
660 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY;
663 /* comparing required and current rate - makes sense for
666 return (rate == ice->cur_rate) ? 0 : -EBUSY;
670 /* force means the rate was switched by ucontrol, otherwise
671 * setting clock rate for internal clock mode */
673 if (force || (old_rate != rate))
675 else if (rate == ice->cur_rate) {
681 ice->cur_rate = rate;
685 ice->set_rate(ice, rate);
688 mclk_change = ice->set_mclk(ice, rate);
693 ice->gpio.set_pro_rate(ice, rate);
698 ice->akm[i].ops.set_rate_val(&ice->akm[i], rate);
701 ice->spdif.ops.setup_rate(ice, rate);
969 * set rate constraints
999 /* if the card has the internal rate locked (is_pro_locked), limit runtime
1000 hw rates to the current internal rate only.
1006 unsigned int rate;
1008 rate = ice->get_rate(ice);
1009 if (rate >= runtime->hw.rate_min
1010 && rate <= runtime->hw.rate_max) {
1011 runtime->hw.rate_min = rate;
1012 runtime->hw.rate_max = rate;
1170 /* update SPDIF control bits according to the given rate */
1171 static void update_spdif_rate(struct snd_ice1712 *ice, unsigned int rate)
1179 switch (rate) {
1197 update_spdif_rate(ice, substream->runtime->rate);
1821 * rate
1856 unsigned int i, rate;
1863 rate = ice->get_rate(ice);
1866 if (ice->hw_rates->list[i] == rate) {
1907 /* if rate = 0 => external clock */
2818 int rate;
2820 rate = ice->cur_rate;
2822 rate = ice->pro_rate_default;
2823 snd_vt1724_set_pro_rate(ice, rate, 1);