summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-03-24 22:59:22 -0500
committerZiyan <jaraidaniel@gmail.com>2016-01-15 12:30:43 +0100
commit479ec957a4ca0f9dfbe968af734c8a2253e94a20 (patch)
tree1bc9168d5892cb9438774f3cea6a53b5faaa557f /audio
parent288e217279919b64677c5b2d6c5d5e23bca67d3b (diff)
downloaddevice_samsung_tuna-479ec957a4ca0f9dfbe968af734c8a2253e94a20.zip
device_samsung_tuna-479ec957a4ca0f9dfbe968af734c8a2253e94a20.tar.gz
device_samsung_tuna-479ec957a4ca0f9dfbe968af734c8a2253e94a20.tar.bz2
[TEST] audio: Set short period size to 882.
Just a hunch, see the comment...
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c5
1 files changed, 4 insertions, 1 deletions
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