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
gugelfrei
Eric Laurent 6 years ago
parent 3e69b248ef
commit da6a5a80b4

@ -895,20 +895,7 @@ status_t BnAudioPolicyService::onTransact(
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: {

Loading…
Cancel
Save