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