Lines Matching refs:sample_rate
2349 if (out->sample_rate != pcm_device->pcm_profile->config.rate) { in out_open_pcm_devices()
2353 out->sample_rate, pcm_device->pcm_profile->config.rate); in out_open_pcm_devices()
2354 ret = create_resampler(out->sample_rate, in out_open_pcm_devices()
2537 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
2545 switch (sample_rate) { in check_input_parameters()
2563 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
2572 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
2584 size = (pcm_profile->config.period_size * sample_rate) / pcm_profile->config.rate; in get_input_buffer_size()
2595 return out->sample_rate; in out_get_sample_rate()
3110 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
3113 … bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size; in out_write()
3262 &out->sample_rate); in out_get_render_position()
3264 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
3306 &out->sample_rate); in out_get_presentation_position()
3308 __func__, dsp_frames, out->sample_rate); in out_get_presentation_position()
3327 (render_latency(out->usecase) * out->sample_rate / 1000000LL); in out_get_presentation_position()
3892 __func__, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
3903 out->sample_rate = config->sample_rate; in adev_open_output_stream()
3938 out->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
3950 out->compr_config.codec->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
3970 out->sample_rate = out->config.rate; in adev_open_output_stream()
3974 out->sample_rate = out->config.rate; in adev_open_output_stream()
4026 config->sample_rate = out->stream.common.get_sample_rate(&out->stream.common); in adev_open_output_stream()
4272 return get_input_buffer_size(config->sample_rate, in adev_get_input_buffer_size()
4295 if (check_input_parameters(config->sample_rate, config->format, in adev_open_input_stream()
4337 in->requested_rate = config->sample_rate; in adev_open_input_stream()
4338 if (config->sample_rate != CAPTURE_DEFAULT_SAMPLING_RATE) in adev_open_input_stream()