TLV320AIC3107: Volume control and Schematics review

Part Number: TLV320AIC3107


Hi

We are using TLV320AIC3107IRSBR in our HMI design. We want to implement volume control using switches. Please let us know how to implement this feature. Any pins from audio codec can be used for this functionality? Below is our schematics. Also please review and let us know if any concerns. 

audio-codec1.pdf 

 

  • Hi,

    The AIC3107 does not have hardware control volume pins, I would recommend using your MCU input pins for switches and then sending volume commands via I2C to the codec. Are you trying to change the volume of all outputs the same, or specifically line outs, headphone outs, or speaker out?

    Some example registers to look at:

    All Left DAC dig volume: Page 0 / Register 43

    All Right DAC dig volume: Page 0 / Register 44

    DAC LEFT_LOP: Page 0 / Register 82

    DAC RIGHT_LOP: Page 0 / Register 92

    The schematic looks good! 

    Best,
    Mir

  • Hi Mir

    We would like to have volume control on headphone outs, or speaker out. So we can have push button switches for volume control connected to AM625x for volume control? Also for mic detect do we need to take from the audio jack connector as below or micdetect as part of the IC is sufficient? please let us know

  • Hi,

    Yes, you should use the MCU to do the volume control. There is general DAC digital volume, and then there is volume for the specific output drivers like the headphone or the speaker out. The general DAC digital volume I shared before, and registers for headphone outs are page 0 register 47 for DAC_L1 to HPL, and register 64 for DAC_R1 to HPR. For the speaker output volume control you can adjust LEFT_LOP digital volume control since this is the input to the class D amp.

    For mic detect, you can follow this example from the datasheet. I see that you already have this connected correctly in your original schematic. What are the new screenshots for? And where would that be in your schematic?

    Best,
    Mir