Lines Matching refs:rate
159 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate() argument
161 if (snd_BUG_ON(rate < 8000 || rate > 50000)) in set_sample_rate()
169 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
170 chip->sample_rate = rate; in set_sample_rate()
177 dev_dbg(chip->card->dev, "set_sample_rate(%d)\n", rate); in set_sample_rate()
178 chip->sample_rate = rate; in set_sample_rate()
179 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
189 u32 rate; in set_input_clock() local
191 rate = 0; in set_input_clock()
194 rate = chip->sample_rate; in set_input_clock()
218 if (rate) in set_input_clock()
219 set_sample_rate(chip, rate); in set_input_clock()