Home | History | Annotate | Download | only in audio

Lines Matching full:rate

72     .rate = OUT_SAMPLING_RATE,
81 .rate = IN_SAMPLING_RATE,
91 .rate = SCO_SAMPLING_RATE,
262 * Due to the lack of sample rate converters in the SoC,
281 * the most common rate, but group 2 is required for SCO.
286 if (((out->pcm_config->rate % 8000 == 0) &&
287 (in->pcm_config->rate % 8000) != 0) ||
288 ((out->pcm_config->rate % 11025 == 0) &&
289 (in->pcm_config->rate % 11025) != 0))
303 * If the stream rate differs from the PCM rate, we need to
306 if (out_get_sample_rate(&out->stream.common) != out->pcm_config->rate) {
308 out->pcm_config->rate,
313 out->buffer_frames = (pcm_config_out.period_size * out->pcm_config->rate) /
332 * Due to the lack of sample rate converters in the SoC,
349 * the most common rate, but group 2 is required for SCO.
354 if (((in->pcm_config->rate % 8000 == 0) &&
355 (out->pcm_config->rate % 8000) != 0) ||
356 ((in->pcm_config->rate % 11025 == 0) &&
357 (out->pcm_config->rate % 11025) != 0))
371 * If the stream rate differs from the PCM rate, we need to
374 if (in_get_sample_rate(&in->stream.common) != in->pcm_config->rate) {
378 ret = create_resampler(in->pcm_config->rate,
455 /* read_frames() reads frames from kernel driver, down samples to capture rate
497 return pcm_config_out.rate;
500 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate)
602 return (pcm_config_out.period_size * period_count * 1000) / pcm_config_out.rate;
676 /* Change sample rate, if necessary */
677 if (out_get_sample_rate(&stream->common) != out->pcm_config->rate) {
704 * 1000000) / out->pcm_config->rate);
821 static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate)
837 in->pcm_config->rate;
1171 size = (pcm_config_in.period_size * config->sample_rate) / pcm_config_in.rate;