Lines Matching defs:rate

93  * locking rate makes sense only for internal clock mode
593 static void stdclock_set_rate(struct snd_ice1712 *ice, unsigned int rate)
597 if (stdclock_rate_list[i] == rate) {
605 unsigned int rate)
611 if (rate > 96000)
625 static int snd_vt1724_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate,
633 if (rate > ice->hw_rates->list[ice->hw_rates->count - 1])
639 /* running? we cannot change the rate now... */
641 return ((rate == ice->cur_rate) && !force) ? 0 : -EBUSY;
644 /* comparing required and current rate - makes sense for
647 return (rate == ice->cur_rate) ? 0 : -EBUSY;
651 /* force means the rate was switched by ucontrol, otherwise
652 * setting clock rate for internal clock mode */
654 if (force || (old_rate != rate))
656 else if (rate == ice->cur_rate) {
662 ice->cur_rate = rate;
666 ice->set_rate(ice, rate);
669 mclk_change = ice->set_mclk(ice, rate);
674 ice->gpio.set_pro_rate(ice, rate);
679 ice->akm[i].ops.set_rate_val(&ice->akm[i], rate);
682 ice->spdif.ops.setup_rate(ice, rate);
950 * set rate constraints
980 /* if the card has the internal rate locked (is_pro_locked), limit runtime
981 hw rates to the current internal rate only.
987 unsigned int rate;
989 rate = ice->get_rate(ice);
990 if (rate >= runtime->hw.rate_min
991 && rate <= runtime->hw.rate_max) {
992 runtime->hw.rate_min = rate;
993 runtime->hw.rate_max = rate;
1151 /* update SPDIF control bits according to the given rate */
1152 static void update_spdif_rate(struct snd_ice1712 *ice, unsigned int rate)
1160 switch (rate) {
1178 update_spdif_rate(ice, substream->runtime->rate);
1802 * rate
1837 unsigned int i, rate;
1844 rate = ice->get_rate(ice);
1847 if (ice->hw_rates->list[i] == rate) {
1888 /* if rate = 0 => external clock */
2723 int rate;
2725 rate = ice->cur_rate;
2727 rate = ice->pro_rate_default;
2728 snd_vt1724_set_pro_rate(ice, rate, 1);