Merge "alsa_sound: Add support for custom LPA buffer size" into cm-10.2
diff --git a/alsa_sound/AudioSessionOut.cpp b/alsa_sound/AudioSessionOut.cpp
index 66d12d3..6e5d31c 100644
--- a/alsa_sound/AudioSessionOut.cpp
+++ b/alsa_sound/AudioSessionOut.cpp
@@ -59,7 +59,10 @@
 #define NUM_FDS 2
 #define KILL_EVENT_THREAD 1
 #define BUFFER_COUNT 4
-#define LPA_BUFFER_SIZE 256*1024
+#ifndef LPA_DEFAULT_BUFFER_SIZE
+#define LPA_DEFAULT_BUFFER_SIZE 256
+#endif
+#define LPA_BUFFER_SIZE LPA_DEFAULT_BUFFER_SIZE*1024
 #define TUNNEL_BUFFER_SIZE 240*1024
 #define TUNNEL_METADATA_SIZE 64
 #define MONO_CHANNEL_MODE 1