Lines Matching refs:sample_rate
1295 static int check_input_parameters(uint32_t sample_rate, in check_input_parameters() argument
1310 switch (sample_rate) { in check_input_parameters()
1322 ALOGE("%s: unsupported (%d) samplerate passed ", __func__, sample_rate); in check_input_parameters()
1329 static size_t get_input_buffer_size(uint32_t sample_rate, in get_input_buffer_size() argument
1336 if (check_input_parameters(sample_rate, format, channel_count) != 0) in get_input_buffer_size()
1339 size = (sample_rate * AUDIO_CAPTURE_PERIOD_DURATION_MSEC) / 1000; in get_input_buffer_size()
1360 return out->sample_rate; in out_get_sample_rate()
1770 compress_get_tstamp(out->compr, &frames, &out->sample_rate); in out_get_render_position()
1773 __func__, *dsp_frames, out->sample_rate); in out_get_render_position()
1812 &out->sample_rate); in out_get_presentation_position()
1814 __func__, dsp_frames, out->sample_rate); in out_get_presentation_position()
1829 (platform_render_latency(out->usecase) * out->sample_rate / 1000000LL); in out_get_presentation_position()
2243 __func__, config->sample_rate, config->channel_mask, devices, flags); in adev_open_output_stream()
2254 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2269 if (config->sample_rate == 0) in adev_open_output_stream()
2270 config->sample_rate = DEFAULT_OUTPUT_SAMPLING_RATE; in adev_open_output_stream()
2277 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2281 out->config.rate = config->sample_rate; in adev_open_output_stream()
2306 out->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
2318 out->compr_config.codec->sample_rate = config->offload_info.sample_rate; in adev_open_output_stream()
2334 if (config->sample_rate == 0) in adev_open_output_stream()
2335 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
2336 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_output_stream()
2337 config->sample_rate != 8000) { in adev_open_output_stream()
2338 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_output_stream()
2342 out->sample_rate = config->sample_rate; in adev_open_output_stream()
2343 out->config.rate = config->sample_rate; in adev_open_output_stream()
2384 out->sample_rate = out->config.rate; in adev_open_output_stream()
2442 config->sample_rate = out->stream.common.get_sample_rate(&out->stream.common); in adev_open_output_stream()
2658 return get_input_buffer_size(config->sample_rate, config->format, channel_count, in adev_get_input_buffer_size()
2679 if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0) in adev_open_input_stream()
2747 if (config->sample_rate == 0) in adev_open_input_stream()
2748 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
2749 if (config->sample_rate != 48000 && config->sample_rate != 16000 && in adev_open_input_stream()
2750 config->sample_rate != 8000) { in adev_open_input_stream()
2751 config->sample_rate = AFE_PROXY_SAMPLING_RATE; in adev_open_input_stream()
2766 if (config->sample_rate == LOW_LATENCY_CAPTURE_SAMPLE_RATE && in adev_open_input_stream()
2779 buffer_size = get_input_buffer_size(config->sample_rate, in adev_open_input_stream()
2786 in->config.rate = config->sample_rate; in adev_open_input_stream()