audio-preprocessing-fw:fixes for PRSDK-4000 (K2G)
authorMing Wei <mwei@ti.com>
Mon, 14 May 2018 21:44:36 +0000 (16:44 -0500)
committerMing Wei <mwei@ti.com>
Mon, 14 May 2018 21:44:36 +0000 (16:44 -0500)
Signed-off-by: Ming Wei <mwei@ti.com>
realtime_demo_bios/k2g/src/makefile.libs
realtime_demo_bios/k2g/src/mcasp_cfg.c

index 423b57fb68588100be6e814e5bc4e5fc7790c54d..5d4397bc065bdd16349507bd6c6664d042486917 100644 (file)
@@ -1,6 +1,6 @@
 #
 # This file was generated based on the configuration script:
-#     C:\ti\processor_sdk_rtos_k2g_3_03_00_01\demos\audio-preprocessing\realtime_demo_bios\k2g\K2G_bf_rt.cfg
+#     C:\ti\processor_sdk_rtos_k2g_4_03_00_05\demos\audio-preprocessing\realtime_demo_bios\k2g\K2G_bf_rt.cfg
 #
 # This makefile may be included in other makefiles that need to build
 # the libraries containing the compiled source files generated as
@@ -14,7 +14,7 @@
 #
 # The absolute path to the generated source directory (at the time the
 # sources were generated) is:
-#    C:\ti\processor_sdk_rtos_k2g_3_03_00_01\demos\audio-preprocessing\realtime_demo_bios\k2g\src
+#    C:\ti\processor_sdk_rtos_k2g_4_03_00_05\demos\audio-preprocessing\realtime_demo_bios\k2g\src
 #
 GEN_SRC_DIR ?= ../src
 
index c378e6c56d66395759f22e37d5d2da38220684c8..4783502efb2e2641dde7b147665438b0dd8dd042 100644 (file)
@@ -141,6 +141,8 @@ Error_Block eb;
 void GblErr(int arg);\r
 signed char*  getGlobalAddr(signed char* addr);\r
 \r
+#define TX_FIFO_EVENT_DMA_RATIO  1\r
+#define RX_FIFO_EVENT_DMA_RATIO  1\r
 /* McASP HW setup for receive */\r
 Mcasp_HwSetupData mcaspRcvSetup = {\r
         /* .rmask    = */ 0xFFFFFFFF, /* 16 bits are to be used     */\r
@@ -220,7 +222,9 @@ Mcasp_ChanParams  mcaspRxChanParam =
        ///Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_1,\r
        Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_2,\r
        TRUE,\r
-       TRUE\r
+       RX_FIFO_EVENT_DMA_RATIO,\r
+       TRUE,\r
+       Mcasp_WordBitsSelect_LSB\r
 };\r
 \r
 #if (CMB_AUDIO_DAC)\r
@@ -241,7 +245,9 @@ Mcasp_ChanParams  mcaspTxChanParam =
        Mcasp_BufferFormat_1SER_MULTISLOT_INTERLEAVED,\r
        ///Mcasp_BufferFormat_1SER_MULTISLOT_NON_INTERLEAVED,\r
        TRUE,\r
-       TRUE\r
+       TX_FIFO_EVENT_DMA_RATIO,\r
+       TRUE,\r
+       Mcasp_WordBitsSelect_LSB\r
 };\r
 #endif\r
 \r