mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
audio vts: update with new audio policy class
Bug: 111812273 Test: make Change-Id: I2daae7401269d2fff59f0ecf69a45b62873ef1a1
This commit is contained in:
@@ -428,7 +428,8 @@ class AudioConfigPrimaryTest : public AudioPatchPrimaryHidlTest {
|
||||
if (policyConfig.getStatus() != OK || policyConfig.getPrimaryModule() == nullptr) {
|
||||
return true; // Could not get the information, run all tests
|
||||
}
|
||||
auto getMic = [](auto& devs) { return devs.getDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, {}); };
|
||||
auto getMic = [](auto& devs) { return devs.getDevice(
|
||||
AUDIO_DEVICE_IN_BUILTIN_MIC, {}, AUDIO_FORMAT_DEFAULT); };
|
||||
auto primaryMic = getMic(policyConfig.getPrimaryModule()->getDeclaredDevices());
|
||||
auto availableMic = getMic(policyConfig.getAvailableInputDevices());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user