AnsweredAssumed Answered

How to Receive compressed audio streams from s/pdif (adsp-21489)

Question asked by Litchi on Mar 31, 2014
Latest reply on Apr 7, 2014 by MaheshN

I can successfully read pcm stream, but can not read the compressed stream from s/pdif 

 

///////////////////////////////////

 

*pDIRCTL = 0;

 

  SRU(DAI_PB11_O,DIR_I);

  SRU(DIR_CLK_O,SPORT0_CLK_I);

  SRU(DIR_FS_O, SPORT0_FS_I);

  SRU(DIR_DAT_O,SPORT0_DA_I);

 

  SRU(DIR_CLK_O,DAI_PB09_I);

  SRU(HIGH,PBEN09_I );

  SRU(DIR_FS_O,DAI_PB20_I);

  SRU(HIGH,PBEN20_I );

 

  // Configure SPORT0 as a reciever

  // externally generating clock and frame sync

  *pDIV0 = 0;

 

  g_SPORT0A_TCB0.m_CPSPx = DMA_MakeCPx(&g_SPORT0A_TCB1, 1);

  g_SPORT0A_TCB1.m_CPSPx = DMA_MakeCPx(&g_SPORT0A_TCB0, 1);

  *pCPSP0A = g_SPORT0A_TCB0.m_CPSPx;

 

  *pSPCTL0 = (SPEN_A|    // Enable Channel A

       SLEN16|    // 24-bit word length

       OPMODE|    // Enable I2S Mode

       SDEN_A|    // Enable Channel A DMA

       SCHEN_A);   // Enable Channel A DMA Chaining

 

///////////////////////////////////

 

use SPORT0 DMA for read data

Where I was wrong?

 

Outcomes