Lines Matching refs:rate
145 static u32 set_spdif_bits(struct echoaudio *chip, u32 control_reg, u32 rate)
149 switch (rate) {
258 static int set_sample_rate(struct echoaudio *chip, u32 rate)
265 "Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n");
266 /* Save the rate anyhow */
267 chip->comm_page->sample_rate = cpu_to_le32(rate);
268 chip->sample_rate = rate;
273 if (snd_BUG_ON(rate >= 50000 &&
281 switch (rate) {
299 if (rate > 50000)
305 control_reg = set_spdif_bits(chip, control_reg, rate);
307 base_rate = rate;
317 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */
318 chip->sample_rate = rate;
320 "SetSampleRate: %d clock %x\n", rate, control_reg);