Lines Matching refs:sample_rate

261     return out->req_config.sample_rate;  in out_get_sample_rate()
689 return in->req_config.sample_rate; in in_get_sample_rate()
697 static int refine_output_parameters(uint32_t *sample_rate, audio_format_t *format, audio_channel_ma… in refine_output_parameters() argument
716 if (*sample_rate < sample_rates[i]) { in refine_output_parameters()
717 *sample_rate = sample_rates[i]; in refine_output_parameters()
721 else if (*sample_rate == sample_rates[i]) { in refine_output_parameters()
726 *sample_rate = sample_rates[i]; in refine_output_parameters()
737 static int refine_input_parameters(uint32_t *sample_rate, audio_format_t *format, audio_channel_mas… in refine_input_parameters() argument
757 if (*sample_rate < sample_rates[i]) { in refine_input_parameters()
758 *sample_rate = sample_rates[i]; in refine_input_parameters()
762 else if (*sample_rate == sample_rates[i]) { in refine_input_parameters()
767 *sample_rate = sample_rates[i]; in refine_input_parameters()
778 static int check_input_parameters(uint32_t sample_rate, audio_format_t format, in check_input_parameters() argument
781 return refine_input_parameters(&sample_rate, &format, &channel_mask); in check_input_parameters()
784 static size_t get_input_buffer_size(uint32_t sample_rate, audio_format_t format, in get_input_buffer_size() argument
789 if (check_input_parameters(sample_rate, format, channel_mask) != 0) in get_input_buffer_size()
792 size = sample_rate*IN_PERIOD_MS/1000; in get_input_buffer_size()
804 int size = get_input_buffer_size(in->req_config.sample_rate, in in_get_buffer_size()
1199 if (refine_output_parameters(&config->sample_rate, &config->format, &config->channel_mask)) { in adev_open_output_stream()
1201 config->format, config->channel_mask, config->sample_rate); in adev_open_output_stream()
1239 out->pcm_config.rate = config->sample_rate; in adev_open_output_stream()
1381 return get_input_buffer_size(config->sample_rate, config->format, config->channel_mask); in adev_get_input_buffer_size()
1439 if (refine_input_parameters(&config->sample_rate, &config->format, &config->channel_mask)) { in adev_open_input_stream()
1441 config->format, config->channel_mask, config->sample_rate); in adev_open_input_stream()
1475 in->pcm_config.rate = config->sample_rate; in adev_open_input_stream()