From 479ec957a4ca0f9dfbe968af734c8a2253e94a20 Mon Sep 17 00:00:00 2001 From: Kyle Repinski Date: Tue, 24 Mar 2015 22:59:22 -0500 Subject: [TEST] audio: Set short period size to 882. Just a hunch, see the comment... --- audio/audio_hw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index eaf09a0..6c74d84 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -151,7 +151,10 @@ /* number of base blocks in a short deep buffer period (screen on) */ #define DEEP_BUFFER_SHORT_PERIOD_MULTIPLIER (DEEP_BUFFER_SHORT_PERIOD_MS * MULTIPLIER_FACTOR) /* number of frames per short deep buffer period (screen on) */ -#define DEEP_BUFFER_SHORT_PERIOD_SIZE (ABE_BASE_FRAME_COUNT * DEEP_BUFFER_SHORT_PERIOD_MULTIPLIER) +/* previously, this was (ABE_BASE_FRAME_COUNT * DEEP_BUFFER_SHORT_PERIOD_MULTIPLIER), but with the transition to + * 44.1kHz streams it seems that our ABE_BASE_FRAME_COUNT is actually now 22.05, but we need a whole number here. + * Easiest way to do so, 22.05 * 40 = 882. So just set this to 882. */ +#define DEEP_BUFFER_SHORT_PERIOD_SIZE 882 /* number of periods for deep buffer playback (screen on) */ #define PLAYBACK_DEEP_BUFFER_SHORT_PERIOD_COUNT 4 -- cgit v1.1