Audio Connectors

CTIA vs OMTP Headset Wiring: Detection Circuits That Work With Both

Tags:

The detection problem, stated correctly

CTIA and OMTP are two ways of assigning the microphone and ground to the last two poles of a four-pole audio plug. Insert a headset wired to one standard into a host built for the other, and the audio still plays. The microphone does not.

Most application notes then suggest measuring the impedance between the last two contacts to work out which wiring is present. That advice is wrong, and it is worth understanding why before designing a detection circuit around it.

This article sets out what actually differs electrically, why the usual impedance test cannot separate the two standards, and which detection approaches do work.

The wiring difference

Contact position CTIA (AHJ) OMTP
Tip Left audio Left audio
Ring 1 Right audio Right audio
Ring 2 Ground Microphone
Sleeve Microphone Ground

Left and right are in the same place in both. Only the last two are swapped. That is why the failure is consistently “sound works, microphone does not.”

What actually goes wrong: reverse bias, not a broken connection

Consider a host wired for CTIA: its sleeve contact is the microphone input with a bias supply, and its Ring 2 contact is ground.

Insert a CTIA headset and everything matches: the microphone element sits between the mic input and ground, correctly biased.

Now insert an OMTP headset. Its microphone element sits between Ring 2 and Sleeve. In this host, Ring 2 is ground and the sleeve is the mic input. So the microphone element is still connected between the host’s mic input and ground — the same two pins. The element is electrically in the right place.

The problem is orientation. The element’s own ground terminal is now connected to the host’s mic input, and its signal terminal to the host’s ground. The bias is applied backwards.

Condition Element bias Observed symptom
Correct wiring Forward Normal level and clarity
Mismatched wiring Reverse Very low level, distortion, or silence depending on the element and codec

An electret condenser microphone contains a JFET buffer whose gate and source are not symmetric. Reverse bias produces either a weak, distorted signal or nothing usable. This is the key fact: the connection is intact, the polarity is inverted.

Why the impedance test does not distinguish them

The common suggestion is to measure the resistance between the Ring 2 contact and the Sleeve contact of the jack.

Trace it for both headset types with the plug inserted. In both cases, the microphone element sits between those two contacts. The impedance is the same.

Plug inserted What sits between Ring 2 and Sleeve Measured impedance Conclusion possible?
No plug Open, or a switch that is closed Open or near zero depending on the jack Nothing inserted
TRS plug (3-pole) The sleeve conductor bridges both contacts Near zero Stereo headphones, no microphone
CTIA headset Microphone element Mic impedance, often in the low kilo-ohm range Headset — but which standard?
OMTP headset The same microphone element The same value Headset — but which standard?

So the measurement cleanly separates a three-pole plug from a four-pole one. That is genuinely useful: it tells the host whether to enable microphone recording at all, and it prevents the classic “the speaker never mutes because the host cannot tell headphones from a headset” problem.

What it cannot do is tell CTIA from OMTP. The two rows have identical impedance because they contain the identical element in the identical position between the measured pins.

What does distinguish CTIA from OMTP

Three approaches work in practice, and they differ in cost and reliability.

Approach Principle Works? Cost
Bias direction sensing Apply bias in one direction, measure the resulting current; the element conducts asymmetrically Yes, if the codec supports it Codec feature, no extra parts
Try both polarities and compare signal Record with each polarity, keep the one with usable level Yes, robust Firmware only
User selection in software Let the user pick the headset type Yes, with a support burden UI only
Impedance between Ring 2 and Sleeve Compare with a threshold No — cannot separate CTIA from OMTP Cheapest, and misleading

The second row is the most reliable in practice and costs nothing but firmware. Record a short sample with one polarity, measure the level, swap, measure again, and keep the better result. The mismatch produces a measurably worse signal, and the comparison is unambiguous.

The first row is what “headset auto-detect” in a codec datasheet usually refers to. It relies on the asymmetry of the microphone element’s bias current. It works, but it depends on the element being a typical electret; a headset with a different microphone technology may not behave the same way.

Designing the jack interface

Whatever detection method is used, the jack interface has to allow it.

Requirement Why
Separate contacts brought out for Ring 2 and Sleeve You cannot measure or switch what you have tied together
No hard ground on the sleeve at the jack If the sleeve is grounded at the connector, the bias path is fixed
Bias supply that can be reversed or disconnected Needed for the polarity-swap method
Series resistance on the mic input Limits fault current and protects the codec
ESD protection on all four contacts The jack is an external opening

The second row is where designs get locked in. A shortcut that grounds the sleeve directly at the connector saves a trace and permanently prevents any detection. If detection might ever be needed, bring all four contacts to the codec area.

The detection sequence in firmware

A workable sequence, in order:

Step Action Decision
1 Read the insertion switch No plug: route audio to the speaker
2 Measure Ring 2 to Sleeve impedance Near zero: three-pole plug, no microphone. Higher: four-pole plug
3 If four-pole, apply bias in polarity A and sample Record level
4 Apply bias in polarity B and sample Record level
5 Keep the polarity with the usable level Commit until the plug is removed
6 Monitor the insertion switch On removal, reset and re-run on next insertion

Step 2 is optional if the product does not need to distinguish headphones from headsets — but most do, because the alternative is a speaker that stays live while headphones are plugged in.

What users experience when this is not handled

Design state User experience Support cost
No detection, CTIA host Speaker stays on with headphones; OMTP headsets have no mic High
Impedance detection only Headphones mute correctly; OMTP headset mic still fails Medium — “my headset mic does not work”
Polarity detection Both standards work Low
User-selectable Works if the user finds the setting Medium — settings are not discovered

The second row is the most common shipped state, because it solves the visible problem (speaker muting) and leaves the invisible one (microphone polarity) unresolved.

FAQ

Can I detect CTIA versus OMTP by measuring impedance? No. The microphone element sits between the same two contacts in both wiring standards, so the measured impedance is identical. Impedance separates three-pole from four-pole plugs, nothing more.

Why does the microphone work badly rather than not at all? The element is connected correctly but biased backwards. A reverse-biased electret produces a weak, distorted signal rather than silence.

What is the cheapest reliable detection method? Record with both bias polarities and keep the one with the usable level. It costs firmware only.

Do I need to detect at all? If the product only ever sees CTIA headsets, no. If it accepts whatever the customer plugs in, yes — or the microphone complaints will be continuous.

Can I ground the sleeve at the jack to save a trace? You can, but it permanently prevents detection. Bring all four contacts to the codec area if detection might be needed later.

Does the codec need a special feature? Either a reverse-capable bias supply, or the ability to record and report level so firmware can compare the two polarities.