aml_audio_hal: Sync audio HAL MS12 v2.4 with latest project code base [1/1]
PD#SWPL-27948
Problem:
Need sync up Linux audio HAL with MS12 to latest
code base from customer project.
Solution:
Merge code from customer tree.
Verify:
Verified PCM/DD/AUTO (DD+/MAT) output
with audio_client_test_ac3 test.
Change-Id: I69c04a7bf3811a8b5e5a536b616bdb93dad3826b
diff --git a/utils/SPDIFEncoderAD.cpp b/utils/SPDIFEncoderAD.cpp
index f41edbd..84c7b24 100755
--- a/utils/SPDIFEncoderAD.cpp
+++ b/utils/SPDIFEncoderAD.cpp
@@ -62,7 +62,9 @@
memcpy((void *)iec61937_buffer, (const void*)buffer, actual_write_size);
else
return -1;
+#if 0
if (actual_write_size > 0) {
+#endif
outBufCurrentPos += actual_write_size;
mTotalBytes += actual_write_size;
ALOGV("%s() actual_write_size %zu outBufCurrentPos %zu\n", __FUNCTION__, actual_write_size, outBufCurrentPos);
@@ -79,9 +81,11 @@
}
#endif
return actual_write_size;
+#if 0
}
else
return -1;
+#endif
}
/*
*@brief get current iec61937 data size