Lines Matching refs:sample_rate
581 if (config->sample_rate == 0) { in adev_open_output_stream()
582 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
583 } else if (profile_is_sample_rate_valid(out->profile, config->sample_rate)) { in adev_open_output_stream()
584 proxy_config.rate = config->sample_rate; in adev_open_output_stream()
586 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); in adev_open_output_stream()
590 out->adev->device_sample_rate = config->sample_rate; in adev_open_output_stream()
940 config->sample_rate, config->channel_mask, config->format); in adev_open_input_stream()
983 if (config->sample_rate == 0) { in adev_open_input_stream()
984 config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()
989 ret = config->sample_rate != in->adev->device_sample_rate ? -EINVAL : 0; in adev_open_input_stream()
990 proxy_config.rate = config->sample_rate = in->adev->device_sample_rate; in adev_open_input_stream()
991 } else if (profile_is_sample_rate_valid(in->profile, config->sample_rate)) { in adev_open_input_stream()
992 proxy_config.rate = config->sample_rate; in adev_open_input_stream()
994 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(in->profile); in adev_open_input_stream()
1074 config->sample_rate = proxy_get_sample_rate(&in->proxy); in adev_open_input_stream()