Lines Matching refs:sample_rate
530 if (config->sample_rate == 0) { in adev_open_output_stream()
531 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
532 } else if (profile_is_sample_rate_valid(out->profile, config->sample_rate)) { in adev_open_output_stream()
533 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
535 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
539 out->dev->device_sample_rate = config->sample_rate; in adev_open_output_stream()
871 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
914 if (config->sample_rate == 0) { in adev_open_input_stream()
915 config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()
920 ret = config->sample_rate != in->dev->device_sample_rate ? -EINVAL : 0; in adev_open_input_stream()
921 proxy_config.rate = config->sample_rate = in->dev->device_sample_rate; in adev_open_input_stream()
922 } else if (profile_is_sample_rate_valid(in->profile, config->sample_rate)) { in adev_open_input_stream()
923 in->dev->device_sample_rate = proxy_config.rate = config->sample_rate; in adev_open_input_stream()
925 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()