Lines Matching defs:rate
157 static int set_sample_rate(struct echoaudio *chip, u32 rate)
161 if (snd_BUG_ON(rate >= 50000 &&
168 "Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n");
169 /* Save the rate anyhow */
170 chip->comm_page->sample_rate = cpu_to_le32(rate);
171 chip->sample_rate = rate;
181 switch (rate) {
214 /* If this is a non-standard rate, then the driver needs to
217 if (rate > 50000) {
218 base_rate = rate >> 1;
221 base_rate = rate;
239 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */
240 chip->sample_rate = rate;
242 "set_sample_rate: %d clock %d\n", rate, control_reg);