audiopolicy: restore normal binder call watchdog timeout
Remove special timeout for long binder command added to
work around issues b/78901123, b/72823323 and similar
Bug: 72823323
Test: connect/disconnect BT headset while playing music
Change-Id: Ic5b57673ee95c29e5510af3b647ff3beb84dd7d7
diff --git a/media/libaudioclient/IAudioPolicyService.cpp b/media/libaudioclient/IAudioPolicyService.cpp
index abb502b..79b3e0f 100644
--- a/media/libaudioclient/IAudioPolicyService.cpp
+++ b/media/libaudioclient/IAudioPolicyService.cpp
@@ -895,20 +895,7 @@
break;
}
- // FIXME: extend timeout for SET_DEVICE_CONNECTION_STATE and HANDLE_DEVICE_CONFIG_CHANGE
- // while we investigate why BT A2DP device connection/disconnection can sometimes
- // take more than 5 seconds
- uint32_t timeoutMs = TimeCheck::kDefaultTimeOutMs;
- switch (code) {
- case SET_DEVICE_CONNECTION_STATE:
- case HANDLE_DEVICE_CONFIG_CHANGE:
- timeoutMs *= 2;
- break;
- default:
- break;
- }
-
- TimeCheck check("IAudioPolicyService", timeoutMs);
+ TimeCheck check("IAudioPolicyService");
switch (code) {
case SET_DEVICE_CONNECTION_STATE: {