I would like to convert the audio example for the C6747 in the PSP 1.30.01 to use i2s rather than DSP mode. I made the following changes
Aic31.c
const Aic31_Params Aic31_PARAMS = {
ICodec_CodecType_AIC31, /* acType */
ICodec_ControlBusType_I2C, /* acControlBusType */
"NONE", /* acCtrlBusName */
ICodec_OpMode_MASTER, /* acOpMode */
ICodec_DataType_I2S, /* acSerialDataType */ <---- change 1
(Uint32)ICodec_SlotWidth_16, /* acSlotWidth */
ICodec_DataPath_TXRX, /* acDataPath */
0, /* isRxTxClockIndependent */
};
audioSample_io.c
Mcasp_HwSetupData mcaspRcvSetup = {
/* .rmask = */ 0xFFFFFFFF, /* All the data bits are to be used */
/* .rfmt = */ 0x000180F0, /* <------ change 2
* 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 = */ 0x00000003, /* slot 1 is active (DSP) */ <------------ change 3
/* .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
}
} ;
I also put the in the same changes in mcaspXmtSetup structure. However I got no audio pass-thru. Any help from the PSP team would be appreciated.
Thanks,
Fawad