Lines Matching refs:sample_rate

1737 static int check_input_parameters(uint32_t sample_rate,  in check_input_parameters()  argument
1752 switch (sample_rate) { in check_input_parameters()
1764 ALOGE("%s: unsupported (%d) samplerate passed ", __func__, sample_rate); in check_input_parameters()
1771 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1778 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1781 size = (sample_rate * AUDIO_CAPTURE_PERIOD_DURATION_MSEC) / 1000; in get_input_buffer_size()
1802 return out->sample_rate; in out_get_sample_rate()
2361 compress_get_tstamp(out->compr, &frames, &out->sample_rate); in out_get_render_position()
2364 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
2403 &out->sample_rate); in out_get_presentation_position()
2405 __func__, dsp_frames, out->sample_rate); in out_get_presentation_position()
2420 (platform_render_latency(out->usecase) * out->sample_rate / 1000000LL); in out_get_presentation_position()
3206 __func__, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
3217 out->sample_rate = config->sample_rate; in adev_open_output_stream()
3232 if (config->sample_rate == 0) in adev_open_output_stream()
3233 config->sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE; in adev_open_output_stream()
3240 out->sample_rate = config->sample_rate; in adev_open_output_stream()
3244 out->config.rate = config->sample_rate; in adev_open_output_stream()
3280 out->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
3292 out->compr_config.codec->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
3308 if (config->sample_rate == 0) in adev_open_output_stream()
3309 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
3310 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_output_stream()
3311 config->sample_rate != 8000) { in adev_open_output_stream()
3312 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
3316 out->sample_rate = config->sample_rate; in adev_open_output_stream()
3317 out->config.rate = config->sample_rate; in adev_open_output_stream()
3366 out->sample_rate = out->config.rate; in adev_open_output_stream()
3429 config->sample_rate = out->stream.common.get_sample_rate(&out->stream.common); in adev_open_output_stream()
3439 (long long)config->sample_rate * POWER_LOG_SAMPLING_INTERVAL_MS / 1000; in adev_open_output_stream()
3442 config->sample_rate, in adev_open_output_stream()
3727 return get_input_buffer_size(config->sample_rate, config->format, channel_count, in adev_get_input_buffer_size()
3748 if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0) in adev_open_input_stream()
3819 if (config->sample_rate == 0) in adev_open_input_stream()
3820 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
3821 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_input_stream()
3822 config->sample_rate != 8000) { in adev_open_input_stream()
3823 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
3839 if (config->sample_rate == LOW_LATENCY_CAPTURE_SAMPLE_RATE && in adev_open_input_stream()
3849 buffer_size = get_input_buffer_size(config->sample_rate, in adev_open_input_stream()
3854 in->config.rate = config->sample_rate; in adev_open_input_stream()
3861 } else if ((config->sample_rate == LOW_LATENCY_CAPTURE_SAMPLE_RATE) && in adev_open_input_stream()
3874 buffer_size = get_input_buffer_size(config->sample_rate, in adev_open_input_stream()
3879 in->config.rate = config->sample_rate; in adev_open_input_stream()