Remove aaudio sample_rate_conversion flag
This flag was added in Android V and we can remove it now.
Bug: 378766408
Test: presubmit
Flag: EXEMPT bugfix
Change-Id: Ib07574aa2cde7b6d5079c13b500470e8e78c757f
diff --git a/services/oboeservice/AAudioServiceEndpointMMAP.cpp b/services/oboeservice/AAudioServiceEndpointMMAP.cpp
index 66918c1..6c31d2c 100644
--- a/services/oboeservice/AAudioServiceEndpointMMAP.cpp
+++ b/services/oboeservice/AAudioServiceEndpointMMAP.cpp
@@ -150,15 +150,9 @@
// Try other formats if the config from APM is the same as our current config.
// Some HALs may report its format support incorrectly.
- if (previousConfig.format == config.format) {
- if (previousConfig.sample_rate == config.sample_rate) {
- config.format = getNextFormatToTry(config.format);
- } else if (!com::android::media::aaudio::sample_rate_conversion()) {
- ALOGI("%s() - AAudio SRC feature not enabled, different rates! %d != %d",
- __func__, previousConfig.sample_rate, config.sample_rate);
- result = AAUDIO_ERROR_INVALID_RATE;
- break;
- }
+ if ((previousConfig.format == config.format) &&
+ (previousConfig.sample_rate == config.sample_rate)) {
+ config.format = getNextFormatToTry(config.format);
}
ALOGD("%s() %#x %d failed, perhaps due to format or sample rate. Try again with %#x %d",