Lines Matching refs:sample_rate
919 usecase->stream.out->sample_rate, in select_devices()
1559 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
1578 switch (sample_rate) { in check_input_parameters()
1596 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1603 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1606 size = (sample_rate * AUDIO_CAPTURE_PERIOD_DURATION_MSEC) / 1000; in get_input_buffer_size()
1628 return out->sample_rate; in out_get_sample_rate()
2090 &out->sample_rate); in out_get_render_position()
2094 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
2151 &out->sample_rate); in out_get_presentation_position()
2153 __func__, dsp_frames, out->sample_rate); in out_get_presentation_position()
2176 (platform_render_latency(out->usecase) * out->sample_rate / 1000000LL); in out_get_presentation_position()
2616 stream_handle(%p)",__func__, config->sample_rate, config->channel_mask, in adev_open_output_stream()
2631 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2652 if (config->sample_rate == 0) in adev_open_output_stream()
2653 config->sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE; in adev_open_output_stream()
2658 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2661 out->config.rate = config->sample_rate; in adev_open_output_stream()
2703 out->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
2727 out->compr_config.codec->sample_rate = in adev_open_output_stream()
2728 config->offload_info.sample_rate; in adev_open_output_stream()
2772 if (config->sample_rate == 0) in adev_open_output_stream()
2773 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
2774 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_output_stream()
2775 config->sample_rate != 8000) { in adev_open_output_stream()
2776 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
2780 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2781 out->config.rate = config->sample_rate; in adev_open_output_stream()
2797 out->sample_rate = out->config.rate; in adev_open_output_stream()
2803 out->sample_rate = out->config.rate; in adev_open_output_stream()
2807 __func__, devices, flags, format, out->sample_rate, out->bit_width); in adev_open_output_stream()
2810 devices, flags, format, out->sample_rate, in adev_open_output_stream()
2863 config->sample_rate = out->stream.common.get_sample_rate(&out->stream.common); in adev_open_output_stream()
3164 return get_input_buffer_size(config->sample_rate, config->format, channel_count, in adev_get_input_buffer_size()
3184 if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0) in adev_open_input_stream()
3195 stream_handle(%p) io_handle(%d)",__func__, config->sample_rate, config->channel_mask, in adev_open_input_stream()
3225 if (config->sample_rate == LOW_LATENCY_CAPTURE_SAMPLE_RATE && in adev_open_input_stream()
3233 in->config.rate = config->sample_rate; in adev_open_input_stream()
3237 if (config->sample_rate == 0) in adev_open_input_stream()
3238 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
3239 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_input_stream()
3240 config->sample_rate != 8000) { in adev_open_input_stream()
3241 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
3256 in->config.rate = config->sample_rate; in adev_open_input_stream()
3274 buffer_size = get_input_buffer_size(config->sample_rate, in adev_open_input_stream()