]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/application/itopo/evmk2g/mcasp_cfg.c
PASDK-568:Merge to 561 integration branch
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / application / itopo / evmk2g / mcasp_cfg.c
index 9c165fad8533d02e1fe8a302eb7f66892f42e5db..63085999fbac9554cfaf30dfca5c2ed99c503b59 100644 (file)
@@ -143,7 +143,10 @@ Mcasp_HwSetupData mcaspXmtSetupDAC = {
         /* .xstat    = */ 0x000001FF, /* reset any existing status bits       */
         /* .xevtctl  = */ 0x00000000, /* DMA request is enabled or disabled   */
         {
-             /* .aclkxctl  = */ 0X000000E1,  // Transmit bit clock divide ratio = 2
+//             /* .aclkxctl  = */ 0X000000E1,  // Transmit bit clock divide ratio = 2 --> works for 48khz PCM but not for DDP
+             /* .aclkxctl  = */ 0X000000E7,  // Transmit bit clock divide ratio = 8 --> working for DDP/MAT/THD 48khz but not for PCM
+//             /* .aclkxctl  = */ 0X000000E3,  // Transmit bit clock divide ratio = 4 --> THD 96khz
+//             /* .aclkxctl  = */ 0X000000E1,  // Transmit bit clock divide ratio = 2 --> THD 192khz
              /* .ahclkxctl = */ 0x00004000,
              /* .xclkchk   = */ 0x00000000
         },
@@ -191,7 +194,7 @@ Mcasp_ChanParams  mcaspRxChanParamADC =
     Mcasp_WordLength_32,      /* wordWidth                  */
     NULL,                     /* void * userLoopJobBuffer   */
     0,                        /* userLoopJobLength          */
-    NULL,                   /* edmaHandle                 */
+    NULL,                     /* edmaHandle                 */
     GblErr,
     2,                        /* number of TDM channels      */
     Mcasp_BufferFormat_MULTISER_MULTISLOT_SEMI_INTERLEAVED_1,
@@ -937,7 +940,7 @@ Aud_STATUS mcasplldChanCreate(mcaspLLDconfig *lldCfg, Ptr *pChanHandle)
 
         status = mcaspBindDev(&mcaspDevHandles[lldCfg->mcaspPort], lldCfg->mcaspPort, &mcaspParams);
         if((status != MCASP_COMPLETED) || (mcaspDevHandles[lldCfg->mcaspPort] == NULL)) {
-            return (Aud_EFAIL);
+            return (Audk2g_EFAIL);
         }
     }