commit | 9c04de9ed2e07f44f229b58079fc9c55f35d7f80 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Wed Jul 20 13:49:47 2022 +0200 |
committer | Eric Laurent <elaurent@google.com> | Wed Jul 20 20:49:52 2022 +0200 |
tree | d656b1c52467f1e6329b430c0d0e48c075d6ef51 | |
parent | 79957d476a9f0506cb9a536efad4a7c83a3b0f4c [diff] |
Spatializer: fix deadlock in onSupportedLatencyModesChanged The Spatializer controller must not call AudioFlinger methods from AudioFlinger callbacks to avoid risks of deadlock with AudioFlinger or AudioFlinger threads mutexes. Process the onSupportedLatencyModesChanged() callbakc in the handler thread instead of synchronously Bug: 239540985 Test: repro steps in bug Change-Id: Ia7af5631f26a72adce6ef8dc762196ae58d3f695