hal: Reduce minimum offload fragment size for PCM offload
- Video frame drops are observed on RTSP streaming
for low sampling rate clips
- For PCM offload audio track uses server proxy position
value to caluclate render position.
Due to high minimum fragment size value of PCM offload,
low sampling rate clips are using bigger audio buffer
than desired 20ms PCM offload buffer. This results
improper audio render position return to Nuplayer,
which leads to video frame drops
- Reduce minimum fragement size for PCM offload from 4k
to 512
Change-Id: I661f1ffe7cfd41edead82d06063802a3ad7b9b66
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index bb229b8..50465e3 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -78,7 +78,7 @@
* 24 - lcm of channels supported by DSP
*/
#define MAX_PCM_OFFLOAD_FRAGMENT_SIZE (240 * 1024)
-#define MIN_PCM_OFFLOAD_FRAGMENT_SIZE (4 * 1024)
+#define MIN_PCM_OFFLOAD_FRAGMENT_SIZE 512
/*
* Offload buffer size for compress passthrough
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index b30eb97..42e5b9b 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -75,7 +75,7 @@
* 24 - lcm of channels supported by DSP
*/
#define MAX_PCM_OFFLOAD_FRAGMENT_SIZE (240 * 1024)
-#define MIN_PCM_OFFLOAD_FRAGMENT_SIZE (4 * 1024)
+#define MIN_PCM_OFFLOAD_FRAGMENT_SIZE 512
/*
* Offload buffer size for compress passthrough