Spatializer: control audio HAL latency mode
Add support of HAL stream latency mode control to Spatializer
effect controller.
- Query supported latency modes when attached to a new output stream
and register a callback to be notified of changes
- Only use a head tracker sensor if the HAL stream supports low
latency or does not support latency mode control.
- Set the requested latency mode according to head tracking state.
Bug: 218273231
Test: make
Merged-In: Ia78156d1e190bb49a67988567df066c1ab90f9bd
Change-Id: Ia78156d1e190bb49a67988567df066c1ab90f9bd
2 files changed