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: Headset Detection, Having trouble Getting it to work.

Part Number: TLV320AIC3104


Hello, I am wondering if anyone has been able to get the headset detection to successfully work on the TLV320AIC3104?

The only luck we've had is when we insert an incorrect pinout mic/speaker. The mismatch somehow helps the CODEC discover something is inserted.

We have changed denounce settings and I assume registers are set correctly to enable headset detection, because we do get a response, but only when incorrect connect is made.

Below is our current Schematic. 

Headset connector is as follows: Mic_+ve (Microphone) , LS_+ve (Speaker Left and Right, Mono) , GND (Ground)

Thanks for any help!

  • Hi,

    The headset connection of Mic_+ve (Microphone), LS_+ve (Speaker Left and Right, Mono), GND (Ground) does not look like the standard headset interface of either CTIA or OMTP as defined below. Are these the actual headset plug signals position and are they matching the board jack connection? I don't see the headset connector in the schematic above.

    CTIA TRRS: Left Audio, Right Audio, GND, MIC

    OMTP TRRS: Left Audio, Right Audio, MIC, GND

    I have attached here the headset detection mechanism for this device.

    https://www.ti.com/lit/an/slaa454/slaa454.pdf?ts=1661532722097&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTLV320AIC3104

    Regards.

  • Below is the Schematic of the Headset Jack itself. With the connection we are making being CTIA.

  • Hi, 

    OK thanks. Just for completeness, here is how the CTIA/OMTP connection looks like and your SJ-3541AS jack.

    Make sure you are using the correct plug.

  • Yes this is the correct pinout.

    I don't think it is a pinout issue because when we hardcode the Headset to always be a "Headset with microphone" we successfully get audio in both ears and send microphone through our system correctly.

    Can you please try the headset detection on the Eval Board? If successful, send configuration.

    (We have also seen some issues on the Eval board when it comes to powering on the Board with a Headset connected. In this case Headset detection reads: 10: "Ignore (reserved)" and never recovers.) Could you test this as well?

    Thank You.

  • Which EVM board are you using to test headset detect?

    Unfortunately the AIC3104 EVM audio jacks does not support headset detection.

    In your testing, can you check the INT Flag (Page 0 Reg. 97 D2) if that's working as expected.

    This detection should be straight from the registers if levels and driver configuration are correct, section 10.3.11 of the datasheet.

    Regards.

  • We have the AIC3104 EVM which we modified with a single Headset Jack (Pinout shown before).


    The INT Flag on D2 is shown below.

    Pinout Swap Actual HS State Interrupt Reg Value (P0, R97) HS_ButA Reg Value (P0, R13)
    No Uninserted 0000 0000 1001 0100
    No Inserted 0000 0000 1001 0100

    Next what we did was connect Mic to Ground and One of the Speaker Lines to Ground, this is "Pinout Swap".

    Pinout Swap Actual HS State Interrupt Reg Value (P0, R97) HS_ButA Reg Value (P0, R13)
    Yes Uninserted 0000 0000 1001 0100
    Yes Inserted 0000 0100 1111 0100

    Note: The Microphone input does not work when we do this, but the headset detection works correctly.

    I am confused why only when an incorrect connection is made that the headset is detected. 

  • Can you show me your connection on the AIC3104EVM? Which connector and component you modified/replaced and the signal routing?

  • Using the same connector used in the product (J2 shown below).
    We have connected:

    MIC_+ve  >>>>to>>>> J7-Pin1 and J7-Pin 2

       LS_+ve >>>>to>>>> J12-Pin1 and J13-Pin1

            GND >>>>to>>>> J12-Pin3

    Is headset detection is supported on the EVM?

  • For the correct register 13 case (111x xxxx) you connect J2-1(MIC) to GND same as J2-4 and which pin is this Speaker Lines to Ground?

    Have you tried increasing the MICBIAS? The MICDET level is too low somehow so not detecting headset with MIC configuration.

    No, the EVM is not designed for headset detection.

  • We were able to test the MICBIAS at all voltages. We had been using 2.5V, so first we increased it to AVDD (3.3V). And saw no change with the correct pinout, but when we made the "Pinout Swap" mentioned before, there was instability, compared to the 2.5V setting. 

    The 2V setting was also tested, and no change when compared to the 2.5V.

  • Can you monitor the MICDET level? Is it changed with MICBIAS?

    Based on the headset detection scheme section 1.2 Comparator B determine the headset with/without MIC.

  • We discovered a change in the schematic that needed to be made, to match the suggested circuit on the datasheet. Our resistor R14 was in the wrong area. Our TI FAE found that one.

    After making this change, playing with debounce, and the order of registers. We are in a much more stable start with headset detection.

    Thanks for your help.