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.

Detect smic in omap4460

Other Parts Discussed in Thread: TWL6040

Hi

I want to detect whether secondary Mic (SMIC)is connected or not in omap4460

Is there any TWL6040 register which gets updated when the Secondary Mic is plugged in to the jack

I checked the MICLCTRL and MICRCTRL which was for only Controlling the path selection.

PLUGDET is only for headset

Please let me know is there any other Register exposed by the TWL6040 chip

Thanks

Kavitha

  • Hi Kavitha,

    There isn't any register to automatically detects SMIC because it was design for build in mic purposes, but if you want to use it with a jack you may be able to use the PLUGDET pin, because it is only sensing the level for this pin and is not related to any port. For each change in level it will generate an interrupt and let the master know that a jack was pluged/unpluged, and the the master can take proper action on route paths, volumes, etc.

    It would involve change in drivers because it is not a common use for this port but it may be possible, and although it may work remember that it was designed for build in mic purposes, so it may have some problems (I am not sure), but you can try.