summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2014-11-26 02:41:27 -0600
committerMisael Lopez Cruz2014-11-26 03:06:17 -0600
commitef9d7cc3ff081453fd7a30e7fa135e3bdef644f9 (patch)
treeca3d35f19193225c97f7149903f1976fb9854c66 /audio/legacy
parent523b963f5c7b354a5656f32e422a3eeeae7578ff (diff)
downloaddevice-ti-jacinto6evm-ef9d7cc3ff081453fd7a30e7fa135e3bdef644f9.tar.gz
device-ti-jacinto6evm-ef9d7cc3ff081453fd7a30e7fa135e3bdef644f9.tar.xz
device-ti-jacinto6evm-ef9d7cc3ff081453fd7a30e7fa135e3bdef644f9.zip
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>
Diffstat (limited to 'audio/legacy')
-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[] = {
153 AUDIO_DEVICE_OUT_DEFAULT) 153 AUDIO_DEVICE_OUT_DEFAULT)
154 154
155#define CAPTURE_SAMPLE_RATE 44100 155#define CAPTURE_SAMPLE_RATE 44100
156#define CAPTURE_PERIOD_SIZE 960 156#define CAPTURE_PERIOD_SIZE 256
157#define CAPTURE_PERIOD_COUNT 4 157#define CAPTURE_PERIOD_COUNT 4
158#define CAPTURE_BUFFER_SIZE (CAPTURE_PERIOD_SIZE * CAPTURE_PERIOD_COUNT) 158#define CAPTURE_BUFFER_SIZE (CAPTURE_PERIOD_SIZE * CAPTURE_PERIOD_COUNT)
159 159
160#define PLAYBACK_SAMPLE_RATE 44100 160#define PLAYBACK_SAMPLE_RATE 44100
161#define PLAYBACK_PERIOD_SIZE 960 161#define PLAYBACK_PERIOD_SIZE 256
162#define PLAYBACK_PERIOD_COUNT 4 162#define PLAYBACK_PERIOD_COUNT 4
163#define PLAYBACK_BUFFER_SIZE (PLAYBACK_PERIOD_SIZE * PLAYBACK_PERIOD_COUNT) 163#define PLAYBACK_BUFFER_SIZE (PLAYBACK_PERIOD_SIZE * PLAYBACK_PERIOD_COUNT)
164 164
165#define BT_SAMPLE_RATE 8000 165#define BT_SAMPLE_RATE 8000
166#define BT_PERIOD_SIZE 160 166#define BT_PERIOD_SIZE 80
167#define BT_PERIOD_COUNT 4 167#define BT_PERIOD_COUNT 4
168#define BT_BUFFER_SIZE (BT_PERIOD_SIZE * BT_PERIOD_COUNT) 168#define BT_BUFFER_SIZE (BT_PERIOD_SIZE * BT_PERIOD_COUNT)
169 169