Lines Matching refs:freq
94 int val, freq;
97 freq = 0;
110 freq = 32000;
113 freq = 44100;
116 freq = 48000;
127 return freq;
148 static int vx_calc_clock_from_freq(struct vx_core *chip, int freq)
152 if (snd_BUG_ON(freq <= 0))
155 hexfreq = (28224000 * 10) / freq;
158 /* max freq = 55125 Hz */
169 return 0x5fe; /* min freq = 6893 Hz */
193 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq)
198 clock = vx_calc_clock_from_freq(chip, freq);
199 snd_printdd(KERN_DEBUG "set internal clock to 0x%x from freq %d\n", clock, freq);
231 int vx_set_clock(struct vx_core *chip, unsigned int freq)
256 if (chip->freq == freq)
258 vx_set_internal_clock(chip, freq);
262 if (chip->freq == freq)
264 chip->freq = freq;
275 int freq;
285 freq = vx_read_uer_status(chip, &chip->uer_detected);
286 if (freq < 0)
287 return freq;
292 if (freq == 48000 || freq == 44100 || freq == 32000)
293 chip->freq_detected = freq;