commit | 1e28aaa6cf5c9968264c1ef33daa1bc0b1d53a4a | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Sun Apr 16 19:34:23 2023 +0200 |
committer | Eric Laurent <elaurent@google.com> | Sun Apr 16 19:38:15 2023 +0200 |
tree | 2796851f7d8f590539607b84c88cbabe40855c4f | |
parent | ad065b7693ce57522920c987b67f79985139f8fb [diff] |
PatchPanel: fix deadlock when creating a patch In PatchPanel::createAudioPatch(), unlock AudioFlinger::mLock when calling ThreadBase::sendCreateAudioPatchConfigEvent() to avoid deadlocks if the thread loop needs to acquire AudioFlinger::mLock before processing the create patch request. Also fix build with verbose log enabled in Threads.cpp. Bug: 276386807 Test: repro setps in the bug Change-Id: Iaa4a89588e75113316241373d3bdb6858c3893ba