Lines Matching refs:freq
17 unsigned int freq; in lola_sample_rate_convert() local
21 case 0: freq = 48000; break; in lola_sample_rate_convert()
22 case 1: freq = 44100; break; in lola_sample_rate_convert()
23 case 2: freq = 32000; break; in lola_sample_rate_convert()
31 case (1 << 2): freq *= 2; break; in lola_sample_rate_convert()
32 case (2 << 2): freq *= 4; break; in lola_sample_rate_convert()
33 case (5 << 2): freq /= 2; break; in lola_sample_rate_convert()
34 case (6 << 2): freq /= 4; break; in lola_sample_rate_convert()
41 case (1 << 5): freq = (freq * 999) / 1000; break; in lola_sample_rate_convert()
42 case (2 << 5): freq = (freq * 1001) / 1000; break; in lola_sample_rate_convert()
45 return freq; in lola_sample_rate_convert()
57 unsigned int freq) in check_gran_clock_compatibility() argument
67 if (freq > LOLA_MAXFREQ_AT_GRANULARITY_MIN) in check_gran_clock_compatibility()
70 if (freq > LOLA_MAXFREQ_AT_GRANULARITY_BELOW_MAX) in check_gran_clock_compatibility()
159 unsigned int freq = items[j] & 0xff; in lola_init_clock_widget() local
163 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget()
164 if (freq < chip->sample_rate_min) in lola_init_clock_widget()
166 else if (freq == 48000) { in lola_init_clock_widget()
172 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget()
173 if (freq < chip->sample_rate_min) in lola_init_clock_widget()
186 sc->freq = freq; in lola_init_clock_widget()
262 int freq = 0; in lola_set_clock() local
267 freq = chip->clock.cur_freq; in lola_set_clock()
272 freq = chip->clock.sample_clock[idx].freq; in lola_set_clock()
276 if (!freq || !valid) in lola_set_clock()
279 if (!check_gran_clock_compatibility(chip, chip->granularity, freq)) in lola_set_clock()
288 chip->clock.cur_freq = freq; in lola_set_clock()
303 chip->clock.sample_clock[i].freq == rate) in lola_set_sample_rate()