Merge "Use requested sample rate when it matches device sample rate."

This commit is contained in:
Treehugger Robot 2023-05-22 18:28:54 +00:00 committed by Gerrit Code Review
commit c0a81b9dc6

View file

@ -1514,6 +1514,8 @@ static int adev_open_input_stream(struct audio_hw_device *hw_dev,
ret = 0; ret = 0;
} }
} }
} else if (profile_is_sample_rate_valid(&device_info->profile, config->sample_rate)) {
in->config.rate = config->sample_rate;
} }
} else if (profile_is_sample_rate_valid(&device_info->profile, config->sample_rate)) { } else if (profile_is_sample_rate_valid(&device_info->profile, config->sample_rate)) {
in->config.rate = config->sample_rate; in->config.rate = config->sample_rate;