Lines Matching refs:rate
195 return out->config.rate; in out_get_sample_rate()
198 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument
309 return (PLAYBACK_PERIOD_SIZE * PLAYBACK_PERIOD_COUNT * 1000) / out->config.rate; in out_get_latency()
357 get_pcm_timestamp(out->pcm, out->config.rate, &info, true /*isOutput*/); in out_write()
475 return in->config.rate; in in_get_sample_rate()
478 static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate) in in_set_sample_rate() argument
480 ALOGV("in_set_sample_rate: %d", rate); in in_set_sample_rate()
697 get_pcm_timestamp(in->pcm, in->config.rate, &info, false /*isOutput*/); in in_read()
824 out->config.rate = PLAYBACK_CODEC_SAMPLING_RATE; in adev_open_output_stream()
829 if (out->config.rate != config->sample_rate || in adev_open_output_stream()
832 config->sample_rate = out->config.rate; in adev_open_output_stream()
839 out->config.channels, out->config.rate, out->config.format, devices); in adev_open_output_stream()
1020 in->config.rate = PLAYBACK_CODEC_SAMPLING_RATE; in adev_open_input_stream()
1022 in->config.rate = CAPTURE_CODEC_SAMPLING_RATE; in adev_open_input_stream()
1028 if (in->config.rate != config->sample_rate || in adev_open_input_stream()
1035 in->config.channels, in->config.rate, in->config.format, source); in adev_open_input_stream()