Lines Matching refs:sample_rate
212 static bool sample_rate_supported(const uint32_t sample_rate)
219 SUBMIX_VALUE_IN_SET(sample_rate, supported_sample_rates, &return_value);
225 static uint32_t get_supported_sample_rate(uint32_t sample_rate)
227 return sample_rate_supported(sample_rate) ? sample_rate : DEFAULT_SAMPLE_RATE_HZ;
337 if (input_config->sample_rate != output_config->sample_rate &&
340 if (input_config->sample_rate != output_config->sample_rate) {
343 input_config->sample_rate, output_config->sample_rate);
379 rsxadev->routes[route_idx].config.input_sample_rate = config->sample_rate;
394 rsxadev->routes[route_idx].config.output_sample_rate = config->sample_rate;
417 const NBAIO_Format format = Format_from_SR_C(config->sample_rate, pipe_channel_count,
523 config->sample_rate = get_supported_sample_rate(config->sample_rate);
551 "%s_channel_mask=%x", config->sample_rate, config->format,
621 const uint32_t out_rate = out->dev->routes[out->route_handle].config.common.sample_rate;
647 out->dev->routes[out->route_handle].config.common.sample_rate = rate;
763 const uint32_t sample_rate = out_get_sample_rate(&stream->common);
764 const uint32_t latency_ms = (buffer_size_frames * 1000) / sample_rate;
766 latency_ms, buffer_size_frames, sample_rate);
962 const uint32_t rate = in->dev->routes[in->route_handle].config.common.sample_rate;
984 in->dev->routes[in->route_handle].config.common.sample_rate = rate;
1281 const uint32_t sample_rate = in_get_sample_rate(&stream->common);
1297 - (record_duration.tv_sec*sample_rate)))
1298 * 1000000 / sample_rate
1401 force_pipe_creation = rsxadev->routes[route_idx].config.common.sample_rate
1402 != config->sample_rate;