TI makes several chips to go inside of a smartphone or similar device to automatically detect which type of headset is plugged in and route the mic signal appropriately. tpa6166a2 ts3a227e ts3a225e etc.
Now how do you do the opposite without colliding with those universal chips?
If the phone is hardwired for OMTP or CTIA/AHJ, it should be possible to detect the mic bias voltage and switch our signal to that pin and ground the other one through a transistor. But if the phone has one of your universal chips, how do we detect which type it is? Will the two auto-detects conflict with each other?
This circuit from NXP shows an automatic phone detector, for instance:
But would this type of circuit conflict with a phone that has one of your universal detection chips inside? How to make it work with all 3 types?