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: Headset detection

Part Number: TLV320AIC3204

Hi All,

We are currently debugging the headset plug-in detection function of the TLV320AIC3204 and encounter the following problems and questions.

1) We add the following initial state of the register, but after inserted the headset, the R67 register D(6:5) does not detect the type of headset inserted, and the headset insertion state cannot be recognized.

P0 R67 0x96
P0 R55 0x00
P0 R56 0x00
P0 R52 0x10
P0 R48 0xc0
P1 R2 0xc3

2) How did we need to configure the two interrupt pins of INT1 and INT2? Did it related to the headset plug detection?

3) Our current kernel version is msm4.9, but I saw that the source driver code (Based on sound/soc/codecs/wm8974 and TI driver for kernel 2.6.27) did not updated. Is there any latest driver code for TLV320AIC3204 codec?

Thanks,

Best Regards

  • Hi Lumina,

    1) Can you please provide a schematic so we can review? I would like to ensure that the device is properly setup for headset detection. If set up correctly, all you need to do is enable headset detection. 

    2) You first need to setup INT1 and INT2 for headset detection and then setup MISO/GPIO/DOUT to output INT1/INT2. 

    3) The latest Linux drivers for our CODECs can be found here. Please note that TI does not own these drivers so there may be a newer version on the web. 

    Regards,

    Aaron Estrada

  • Hi Aaron,

    Thanks for your suggestion. The schematic diagram is as follows:

    Tlv320aic3240_SCH.pdf

    I also confused about a question, that is, is the headset detection function of TLV320AIC3204 realized directly through hardware? Or it can be realized by configuring related registers?

    Thanks,

    Kind Regards