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.

TLV320AIC3254EVM-K: Headset Detection

Part Number: TLV320AIC3254EVM-K
Other Parts Discussed in Thread: TLV320AIC3254

Hi all,

I try to use Headset Detection on TLV320AIC. Following document, I configure: GPIO is INT1, INT1 for Headset Insertion Event. Below is my setting:

# Select Page 1
i2cset -y -f 2 0x18 0x00 0x01
#
# Disable weak AVDD in presence of external
# AVDD supply
i2cset -y -f 2 0x18 0x01 0x00
#
# Enable Master Analog Power Control
i2cset -y -f 2 0x18 0x02 0x00

# Select Page 0
i2cset -y -f 2 0x18 0x00 0x00
#
# Set GPIO as INT1
i2cset -y -f 2 0x18 0x34 0x15
#
# Set INT1 Interrupt for Headset Insertion Event
i2cset -y -f 2 0x18 0x30 0x81
#
# Headset Detection Enabled
i2cset -y -f 2 0x18 0x43 0x80

Then I plug/remove headphone into J9 (Headphone Output) but It doesn't have any pulse. Maybe I made some mistakes. Pleae help me to review and give me some advise.

Thanks and Best Regards,

Hiep Nguyen

  • Hi, Nguyen,

    I think this is a hardware issue, the connector J9 of the 'AIC3254 EVM is a stereo jack without connection to the mic ring. In order to test the headset detect feature of the codec, you will need an adapter to separate the headset plug into two plugs, one for the headphones (connect to J9) and one for the mic input (connect to J5). Given that these adjustments are complete, headset detection is possible in the EVM by configuring the required registers and setting a short in the header W14 on positions 2 and 3 to connect the detection signal to the relevant pin.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    Thanks for your support.

    I posted a topic about noise issue when using TLV320AIC3254 EVM with Beaglebone Black. Because invert bit clock is different between master and slave. I resolved this issue. It's working fine as MCLK provide from BBB.

    TLV320AIC3205 support headset detection for Mic input (TRRS Audio Jack). If i want to detect TRS Audio Jack, I will design by hardware. The codec only support detect mic input for calling on mobile.

    Thanks and Best Regards,

    Hiep Nguyen

  • Hi, Nguyen,

    Thanks for the feedback, I'm glad to hear you solved the other issue.

    There is no TLV320AIC3205 device, perhaps you are referring to the 'AIC3206?.

    The codec is able to perform headset detection even if a TSR audio plug is inserted, but for this, a TRRS jack is required. 

    Regards,

      -Diego Meléndez López
       Audio Applications Engineer