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.

TLV320AIC3204: Routing I2S Audio to the Headphones

Part Number: TLV320AIC3204

Hi there,

I'm currently trying to set up a system that will output audio sent from my micro to the headphone. I'm currently struggling to work out how to configure the registers to output the I2s stream to the headphone. I've already configured the codec to output the left Mic to the headphones but I can't work out what to change to get it to output from the I2S.

	{  0, 0x01 },	/* ***** SELECT PAGE 1 ***** */
	{  9, ( (uint8_t)P1R9_MAR_POWER_UP |
			(uint8_t)P1R9_MAL_POWER_UP ) },
	{ 12, ( (uint8_t)P1R12_MAL_ROUTED_TO_HPL ) },
	{ 13, ( (uint8_t)P1R13_HPL_OUTPUT_ROUTED_TO_HPR ) },
	{ 16, ( (uint8_t)P1R16_HPL_DRIVER_NOT_MUTED |
			(uint8_t)( 0 ) ) },		/* HPL Gain set to 0dB */
	{ 17, ( (uint8_t)P1R17_HPR_DRIVER_NOT_MUTED |
			(uint8_t)( 0 ) ) },		/* HPR Gain set to 0dB */
	{  9, ( (uint8_t)P1R9_MAR_POWER_UP |
			(uint8_t)P1R9_HPL_POWER_UP |
			(uint8_t)P1R9_HPR_POWER_UP |
			(uint8_t)P1R9_MAL_POWER_UP ) },
	{  0, 0x00 },	/* ***** SELECT PAGE 0 ***** */

Thanks for any advice.

  • Hi, George,

    In order to use the I²S input as the source for the HP outputs, you need to configure the Audio serial interface to meet the specs from your I²S signal, configure the DAC and route DAC outputs to headphone amplifiers. 

    I would recommend you to download the TLV320AIC3204 CS GUI and use the playback scripts included as reference to configure your device. 

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer