Audio latency reduction and configuration
Add af.fast_track_multiplier=1 to reduce audio output latency.
This device has low scheduling jitter and can handle this.
Allow period sizes to be configured by properties, for testing.
Change-Id: If37bc5c529cef4f63ddc878c6e428f4a9dd1dd1b
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 2870ff8..df29b74 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1864,6 +1864,14 @@
*device = &adev->hw_device.common;
+ char value[PROPERTY_VALUE_MAX];
+ if (property_get("audio_hal.period_size", value, NULL) > 0) {
+ pcm_config.period_size = atoi(value);
+ pcm_config_in.period_size = pcm_config.period_size;
+ }
+ if (property_get("audio_hal.in_period_size", value, NULL) > 0)
+ pcm_config_in.period_size = atoi(value);
+
return 0;
}