Lines Matching refs:rate
140 static int get_gpio_val(int rate) in get_gpio_val() argument
144 if (juli_rates[i] == rate) in get_gpio_val()
171 int rate; in juli_spdif_in_open() local
176 rate = snd_ak4114_external_rate(spec->ak4114); in juli_spdif_in_open()
177 if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) { in juli_spdif_in_open()
178 runtime->hw.rate_min = rate; in juli_spdif_in_open()
179 runtime->hw.rate_max = rate; in juli_spdif_in_open()
208 static void juli_akm_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate) in juli_akm_set_rate_val() argument
215 if (rate == 0) /* no hint - S/PDIF input is master or the new spdif in juli_akm_set_rate_val()
220 if (rate > 96000) { in juli_akm_set_rate_val()
223 } else if (rate > 48000) { in juli_akm_set_rate_val()
516 static void juli_set_rate(struct snd_ice1712 *ice, unsigned int rate) in juli_set_rate() argument
522 new = (old & ~GPIO_RATE_MASK) | get_gpio_val(rate); in juli_set_rate()
534 unsigned int rate) in juli_set_mclk() argument
556 int rate; in juli_ak4114_change() local
559 rate = snd_ak4114_external_rate(ak4114); in juli_ak4114_change()
562 juli_akm_set_rate_val(ice->akm, rate); in juli_ak4114_change()