Scenario:
Hardware: eZdsp5535
Software: Using CSL_I2S_AudioCodec_DMA project
Music is played and data is passed through ezdsp through Codec/I2S/DMA and then playback.
Issue: Data streaming in into internal memory every word is getting repeated for 4 times. No issues of any noise in playback. I am not sure why the data is getting repeated 4 times for every word.
0x00010000 0x00010000 0x00010000 0x00010000 0x00020000 0x00020000 0x00020000 0x00020000 ..................
Debugging:
1. I tried to reduce the sampling frequency of the codec. From this change, instead of data getting repeated 4 times, it got reduced to 2 times. I don't know what is happening. Is there any configuration issues with CODEC or I2S or even DMA?
Based on the PLL coefficients and dividers, the system seems to be using a PLL_CLKIN = 512 KHz. So, in order to get a sampling rate of 8000, I would recommend modifying the following lines:
AudioCodecRegWrite(TI3254_CLK_MDAC_REG, 0x82);// MDAC divider powered up, MDAC = 2
AudioCodecRegWrite(TI3254_CLK_MADC_REG, 0x84); // MADC divider powered up, MADC = 4
Any help or pointer in resolving this issue will be much appreciated!