Merge "Update audio VTS source code to match the change in AudioPolicyConfig" into rvc-dev am: ce3f17e662

Change-Id: I171a6397a126e25c6d496f9c903758f5b92c0290
This commit is contained in:
Automerger Merge Worker 2020-03-10 21:02:10 +00:00
commit f82f5ba5bd

View file

@ -40,7 +40,7 @@ struct ConfigHelper {
return devs.getDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, {}, AUDIO_FORMAT_DEFAULT);
};
auto primaryMic = getMic(policyConfig.getPrimaryModule()->getDeclaredDevices());
auto availableMic = getMic(policyConfig.getAvailableInputDevices());
auto availableMic = getMic(policyConfig.getInputDevices());
return primaryMic != nullptr && primaryMic->equals(availableMic);
}