commit | a76c7de622e6e29f8559921d8d2e9ef93eb37d1f | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Dec 13 19:14:31 2016 -0800 |
committer | Andy Hung <hunga@google.com> | Wed Dec 14 11:18:28 2016 -0800 |
tree | 11abc87a6a2041dba73ddc414c5317f908ed5248 | |
parent | a2e95f5c9b1613cce1d2bf0f0e35b0addd137906 [diff] [blame] |
APM::updateCallRouting: ignore for stub output hal Bug: 33463233 Change-Id: I9b6708bef087e3f4a97868b2d8f7a9b1558233d0
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp index 968b80f..d265f11 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -330,7 +330,7 @@ DeviceVector deviceList; uint32_t muteWaitMs = 0; - if(!hasPrimaryOutput()) { + if(!hasPrimaryOutput() || mPrimaryOutput->device() == AUDIO_DEVICE_OUT_STUB) { return muteWaitMs; } audio_devices_t txDevice = getDeviceAndMixForInputSource(AUDIO_SOURCE_VOICE_COMMUNICATION);