summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2014-11-26 02:41:27 -0600
committerMisael Lopez Cruz <misael.lopez@ti.com>2014-11-26 03:06:17 -0600
commitef9d7cc3ff081453fd7a30e7fa135e3bdef644f9 (patch)
treeca3d35f19193225c97f7149903f1976fb9854c66
parent523b963f5c7b354a5656f32e422a3eeeae7578ff (diff)
downloadjacinto6evm-ef9d7cc3ff081453fd7a30e7fa135e3bdef644f9.tar.gz
audio: Legacy: Use smaller ALSA buffers
Reduce the size of the ALSA buffers in order to reduce the audio latency. The new buffer sizes allow using fast tracks. Change-Id: I40f3af55cde72b1183d6fc8ffa8e01ecbef71a42 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--audio/legacy/audio_hw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c
index 1cd9e80..e9763f0 100644
--- a/audio/legacy/audio_hw.c
+++ b/audio/legacy/audio_hw.c
@@ -153,17 +153,17 @@ static const char *supported_bt_cards[] = {
AUDIO_DEVICE_OUT_DEFAULT)
#define CAPTURE_SAMPLE_RATE 44100
-#define CAPTURE_PERIOD_SIZE 960
+#define CAPTURE_PERIOD_SIZE 256
#define CAPTURE_PERIOD_COUNT 4
#define CAPTURE_BUFFER_SIZE (CAPTURE_PERIOD_SIZE * CAPTURE_PERIOD_COUNT)
#define PLAYBACK_SAMPLE_RATE 44100
-#define PLAYBACK_PERIOD_SIZE 960
+#define PLAYBACK_PERIOD_SIZE 256
#define PLAYBACK_PERIOD_COUNT 4
#define PLAYBACK_BUFFER_SIZE (PLAYBACK_PERIOD_SIZE * PLAYBACK_PERIOD_COUNT)
#define BT_SAMPLE_RATE 8000
-#define BT_PERIOD_SIZE 160
+#define BT_PERIOD_SIZE 80
#define BT_PERIOD_COUNT 4
#define BT_BUFFER_SIZE (BT_PERIOD_SIZE * BT_PERIOD_COUNT)