summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/device-common.mk b/device-common.mk
index b9150a9..b37d4da 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -34,10 +34,14 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml
# Enable AAudio MMAP/NOIRQ data path.
-# 2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path.
-PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2
-# Allow EXCLUSIVE then fall back to SHARED.
-PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2
+# 1 is AAUDIO_POLICY_NEVER means only use Legacy path.
+# 2 is AAUDIO_POLICY_AUTO means try MMAP then fallback to Legacy path.
+# 3 is AAUDIO_POLICY_ALWAYS means only use MMAP path.
+PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=1
+# 1 is AAUDIO_POLICY_NEVER means only use SHARED mode
+# 2 is AAUDIO_POLICY_AUTO means try EXCLUSIVE then fallback to SHARED mode.
+# 3 is AAUDIO_POLICY_ALWAYS means only use EXCLUSIVE mode.
+PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=1
# Increase the apparent size of a hardware burst from 1 msec to 2 msec.
# A "burst" is the number of frames processed at one time.