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.

TLV320AIC3104 aux jack detection possible?

Other Parts Discussed in Thread: TLV320AIC3104

Hello,

I have been working on a portable BT  speaker and I'm using TLV320AIC3104 as my audio DSP.

All the other connections seems to be ok but I'm struggling with the jack detection feature in TLV320AIC3104.

In the datasheet, there is a information about headphone, microphone, headset detection through impedance sensing.

But could this also work as a Aux line input?

For my speaker, external audio source will be connected to the speaker by 3 pin Aux plug (L, R, GND) and a 3 pin Aux jack(No jack detection pin) on the PCB.

Can Aux plug also be detected in a same manner as headphones?

I found there is a real time interrupt flag register for a headset detection status, but I wasn't sure if I could program the DSP to do.

Detect aux plug → Change audio receiver path from  BT module's I2S to Analog line input

and When aux plug is removed → Change audio receiver path from  Analog line input to BT module's I2S.

Can someone help please?

  • Hi, Brian,

    Please take a look at the following document. It has more information about the headset detection function on the codecs. It could help you to determine if the Aux plug can be detected as microphones:

    http://www.ti.com/lit/an/slaa454/slaa454.pdf

    Please let me know if you have more questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hello Luis,

    Sorry for not following up my question. I totally forgot about this post after reading the document you suggested.
    I have checked both jack detection document and TLV320AIC3104 data sheet again and came to a some conclusion.
    - Enable Headset detection and check headset detection flag with a MCU (register 13/14)
    - Use Passive Analog Signal Bypass Selection to connect LINE1RP and LINE1LP to respective LINE Out P.
    - When Passive Analog Signal Bypass is set, turn off Left and Right DAC data path

    My additional question is
    Is the Mic MICBIAS Output pin enabled only when some jack is inserted? or is this an always on or off controlled by I2C?
    Since I don't have a Jack detect switch in my barrel jack, I need some kind of switch/signal to turn on when a cable is inserted to the jack.


    Thank You

  • Hi, Brian,

    There's no need to have a jack inserted to turn on/off the MICBIAS. Actually, it is fully controlled by I2C commands. Page 0 / Register 25 (MICBIAS Control Register) is used to control the output level of the MICBIAS. Also, it can be completely powered down by this register.

    Please let me know if you have more questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.