summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2024-10-20 22:42:30 -0700
committer Atneya Nair <atneya@google.com> 2024-10-20 22:50:21 -0700
commit1d48c4478695ff964dcda9a7121f624e02586be4 (patch)
treee89a3f5f5c811a8fdc85e175aa529e2c60ee1229 /api/api.go
parentf6002bc0c0e5df8302fd695fc4c65f84434b3551 (diff)
Make soundtrigger onResourcesAvailable async
This callback is a synchronous call from the STHAL. To prevent a triple deadlock between the audioserver, system_server, and the hal, this call should be async instead of sync. Going async doesn't impact correctness, since this call is informative rather than state-mutating, and the HAL is not sequencing on this call. Receiving this callback delayed will be dropped in cases where it is not relevant, since the response to the callback is to retry falliable operations. Fixes: 360057457 Test: Hotword Flag: EXEMPT safe Change-Id: I417effd9abe396429b80941d944e07289986996d
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions