From 13c79aa51de917370109caadc7473ea638b31421 Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Mon, 24 Jul 2017 12:22:03 -0700 Subject: [PATCH] aaudio: increase burst size from 1 to 2 msec One msec is on the edge and sometimes glitches. Two msec is more stable and matches the FastMixer burst. Bug: 63934178 Test: "adb shell getprop aaudio.hw_burst_min_usec" should be 2000 Change-Id: I9687f5822d0827032b93f98779f9dd6ef9ca074c --- device.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/device.mk b/device.mk index c0bad93..0df7dd4 100644 --- a/device.mk +++ b/device.mk @@ -79,6 +79,13 @@ PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2 # Allow EXCLUSIVE then fall back to SHARED. PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2 +# 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. +# That is an increase from 48 to 96 frames at 48000 Hz. +# The DSP will still be bursting at 48 frames but AAudio will think the burst is 96 frames. +# A low number, like 48, might increase power consumption or stress the system. +PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 + # Wifi configuration file PRODUCT_COPY_FILES += \ device/google/taimen/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini