This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

aic31 codec use amplified audio exit on board evm6747

Other Parts Discussed in Thread: TPA4861

Hi,

I use an EVM6747 and I am trying to configure the aic31 codec so that sound would be directed to the amplified exit given in the schematics as P15: HPROUT, which is supposed to be amplified by TPA4861.

 

So far, I had been using the codec with the line out or HP out, with the following configuration:

Mcasp_HwSetupData mcaspRcvSetup =
{
/* .rmask    = */0xFFFFFFFF, /* All the data bits are to be used     */
/* .rfmt     = */0x000080F0, /*
 * 0 bit delay from framsync
 * MSB first
 * No extra bit padding
 * Padding bit (ignore)
 * slot Size is 32
 * Reads from DMA port
 * NO rotation
 */
/* .afsrctl  = */0x00000000, /* burst mode,
 * Frame sync is one bit
 * Rising edge is start of frame
 * externally generated frame sync
 */
/* .rtdm     = */0x00000001, /* slot 1 is active (DSP)               */
/* .rintctl  = */0x00000003, /* sync error and overrun error         */
/* .rstat    = */0x000001FF, /* reset any existing status bits       */
/* .revtctl  = */0x00000000, /* DMA request is enabled or disabled   */
{
/* .aclkrctl  = */0x00000000,
/* .ahclkrctl = */0x00000000,
/* .rclkchk   = */0x00000000 } };

Mcasp_HwSetupData mcaspXmtSetup =
{
/* .xmask    = */0xFFFFFFFF, /* All the data bits are to be used     */
/* .xfmt     = */0x000080F0, /*
 * 0 bit delay from framsync
 * MSB first
 * No extra bit padding
 * Padding bit (ignore)
 * slot Size is 32
 * Reads from DMA port
 * NO rotation
 */
/* .afsxctl  = */0x00000000, /* burst mode,
 * Frame sync is one bit
 * Rising edge is start of frame
 * externally generated frame sync
 */
/* .xtdm     = */0x00000001, /* slot 1 is active (DSP)               */
/* .xintctl  = */0x00000007, /* sync error,overrun error,clK error   */
/* .xstat    = */0x000001FF, /* reset any existing status bits       */
/* .xevtctl  = */0x00000000, /* DMA request is enabled or disabled   */
{
/* .aclkxctl  = */0x00000000,
/* .ahclkxctl = */0x00000000,
/* .xclkchk   = */0x00000000 },

};

/* McBsp channel parameters                                  */
Mcasp_ChanParams mcasp_chanparam[Audio_NUM_CHANS] =
{
{ 0x0001, /* number of serialisers      */
{ Mcasp_SerializerNum_0, }, /* serialiser index           */
&mcaspRcvSetup, TRUE, Mcasp_OpMode_TDM, /* Mode (TDM/DIT)             */
Mcasp_WordLength_32, NULL, 0, NULL, NULL, 1, /* number of TDM channels      */
Mcasp_BufferFormat_1SER_1SLOT, TRUE, TRUE },
{ 0x0001, /* number of serialisers       */
{ Mcasp_SerializerNum_5, }, &mcaspXmtSetup, TRUE, Mcasp_OpMode_TDM, Mcasp_WordLength_32, /* word width                  */
NULL, 0, NULL, NULL, 1, /* number of TDM channels      */
Mcasp_BufferFormat_1SER_1SLOT, TRUE, TRUE } };

Audio_ChannelConfig audioChanParamsIN =
{
/*  channel 0 (RX)                                            */
(Ptr) & mcasp_chanparam[0],
{ /* codec [0]                                              */
{ 96000, /* sampling rate for codec */
30, /* gain (%) for codec      */
0x00, 0x00 } } };

Audio_ChannelConfig audioChanParamsOUT =
{
/*  channel 1 (TX)                                            */
(Ptr) & mcasp_chanparam[1],
{
/* codec [1]                           */
{ 96000, /* sampling rate           */
70, /* gain (%) for codec      */
0x00, 0x00 } } };

(mono and 32 bit words)

With this configuration, the sound is only played through the left channel. How would I change this to the right channel, since it seems that P15 is on the right channel?

 

Sincerely,

 

JLK