DO NOT MERGE - Spatializer: disable head tracking
Disable head tracking until the implementation is optimized to
not register the head pose sensor unless really needed.
Bug: 224623509
Test: make
Change-Id: I08802b573e0afcaf75dc46bb67e4bd285951818a
diff --git a/services/audiopolicy/service/Spatializer.cpp b/services/audiopolicy/service/Spatializer.cpp
index 54d9094..d2b5ccc 100644
--- a/services/audiopolicy/service/Spatializer.cpp
+++ b/services/audiopolicy/service/Spatializer.cpp
@@ -216,7 +216,9 @@
if (status != NO_ERROR) {
return status;
}
- mSupportsHeadTracking = supportsHeadTracking[0];
+// Disable head tracking until head sensor activity is properly controlled.
+// mSupportsHeadTracking = supportsHeadTracking[0];
+ mSupportsHeadTracking = false;
status = getHalParameter<true>(effect, SPATIALIZER_PARAM_SUPPORTED_LEVELS, &mLevels);
if (status != NO_ERROR) {