Lines Matching refs:rate
143 static u32 set_spdif_bits(struct echoaudio *chip, u32 control_reg, u32 rate) in set_spdif_bits() argument
147 switch (rate) { in set_spdif_bits()
256 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate() argument
265 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
266 chip->sample_rate = rate; in set_sample_rate()
271 if (snd_BUG_ON(rate >= 50000 && in set_sample_rate()
279 switch (rate) { in set_sample_rate()
297 if (rate > 50000) in set_sample_rate()
303 control_reg = set_spdif_bits(chip, control_reg, rate); in set_sample_rate()
305 base_rate = rate; in set_sample_rate()
315 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
316 chip->sample_rate = rate; in set_sample_rate()
318 "SetSampleRate: %d clock %x\n", rate, control_reg); in set_sample_rate()