Lines Matching defs:rate
160 static int set_sample_rate(struct echoaudio *chip, u32 rate)
164 if (snd_BUG_ON(rate >= 50000 &&
171 "Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n");
172 /* Save the rate anyhow */
173 chip->comm_page->sample_rate = cpu_to_le32(rate);
174 chip->sample_rate = rate;
184 switch (rate) {
217 /* If this is a non-standard rate, then the driver needs to
220 if (rate > 50000) {
221 base_rate = rate >> 1;
224 base_rate = rate;
242 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */
243 chip->sample_rate = rate;
245 "set_sample_rate: %d clock %d\n", rate, control_reg);