audio/hal: Set playback buffer sizes to integral multiple msec

- The call to pcm_write was taking varying time to complete.
  This was because DSP always expects the buffer duration to
  be an integral multiple msec. When this is not the case,
  DSP waits for the rest of the data to be filled too.
  This accumalates the delay and causes the variation
  in timing.
- Change the deep buffer playback buffer size to 960 samples(20msec)
  and low latency to 240 samples (5msec) to fix the issue.

Change-Id: I9448920e89595a65cf92a5abd9187e02043b699a
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index abe56dd..7bc2ecb 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -129,10 +129,10 @@
  * We should take care of returning proper size when AudioFlinger queries for
  * the buffer size of an input/output stream
  */
-#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 1024
+#define DEEP_BUFFER_OUTPUT_PERIOD_SIZE 960
 #define DEEP_BUFFER_OUTPUT_PERIOD_COUNT 8
 
-#define LOW_LATENCY_OUTPUT_PERIOD_SIZE 256
+#define LOW_LATENCY_OUTPUT_PERIOD_SIZE 240
 #define LOW_LATENCY_OUTPUT_PERIOD_COUNT 2
 
 #define HDMI_MULTI_PERIOD_SIZE  336