From 029faa22df542df5c3bb60bee3f4d69ce516d025 Mon Sep 17 00:00:00 2001 From: Alexy Joseph Date: Thu, 18 Jun 2015 14:22:14 -0700 Subject: [PATCH] hal: Increase Deep buffer buffering Increase buffering in the deep buffer path to 40ms from the current 20ms. Change the number of buffers from 5 buffers to 2 buffers CRs-Fixed: 856812 Change-Id: I0df2bd71c22a66c6c3af2377408e94bb4bfe79b5 --- hal/msm8916/platform.h | 4 ++-- hal/msm8974/platform.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/msm8916/platform.h b/hal/msm8916/platform.h index 3ce4c571..74c8e9ba 100644 --- a/hal/msm8916/platform.h +++ b/hal/msm8916/platform.h @@ -189,8 +189,8 @@ enum { * We should take care of returning proper size when AudioFlinger queries for * the buffer size of an input/output stream */ -#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 960 -#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 5 +#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 1920 +#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 2 #define LOW_LATENCY_OUTPUT_PERIOD_SIZE 240 #define LOW_LATENCY_OUTPUT_PERIOD_COUNT 2 diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h index 4b90f8b8..2618bd86 100644 --- a/hal/msm8974/platform.h +++ b/hal/msm8974/platform.h @@ -185,8 +185,8 @@ enum { * We should take care of returning proper size when AudioFlinger queries for * the buffer size of an input/output stream */ -#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 960 -#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 5 +#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 1920 +#define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 2 #define LOW_LATENCY_OUTPUT_PERIOD_SIZE 240 #define LOW_LATENCY_OUTPUT_PERIOD_COUNT 2