Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
3.5 mm headset jack: Device specification
Stay organized with collections
Save and categorize content based on your preferences.
To achieve compatibility with the 3.5 mm plug
headset specification, devices that include a 4 conductor 3.5 mm audio jack
must meet the following specifications. For Android compatibility requirements,
refer to the Analog audio ports section of the Android CDD.
Functions
Function |
Device Support |
Stereo Audio Out |
Required |
Audio in (Mic) |
Required |
Ground |
Required |
Software mapping
Function |
Device Support |
Description |
Function A control event |
Required |
Input event: KEY_MEDIA
Android key: KEYCODE_MEDIA_PLAY_PAUSE
|
Function D control event |
Required |
Input event: KEY_VOICECOMMAND
Android key: KEYCODE_VOICE_ASSIST |
Function B control event |
Required |
Input event: KEY_VOLUMEUP
Android key: VOLUME_UP |
Function C control event |
Required |
Input event: KEY_VOLUMEDOWN
Android key: VOLUME_DOWN |
Headset insertion detection |
Required |
Input event: SW_JACK_PHYSICAL_INSERT 7 |
Headset type detection |
Mic |
Input event: SW_MICROPHONE_INSERT 4 |
No Mic |
Input event: SW_HEADPHONE_INSERT 2 |
Headset speaker impedance |
Required Headphone (low) |
Failure mode is to indicate headphones so limitation would be on |
Required Line In (high) |
Input event: SW_LINEOUT_INSERT 6 |
Mechanical
Function |
Device Support |
Description |
4 conductor 3.5 mm jack |
Required |
|
CTIA pinout order (LRGM) |
Required |
3 Pin & Mono Plug Compatible |
OMTP pinout order (LRMG) |
Optional but strongly recommended |
|
Headset detect sequence |
Required |
Plug insert notification must be triggered only after all contacts on
plug are touching their relevant segments (this prevents unreliable headset
detection due to slow insertion. |
Electrical
General
Function |
Device Support |
Notes |
Maximum output voltage drive |
150mV |
>= 150mV on 32 ohm
Test conditions: EN50332-2 |
Mic bias resistance |
Required |
Flexible on detection method used and microphone bias resistor
selection. Require that all button resistance value ranges specified below
be detected and related to their respective function |
Mic bias voltage |
1.8V - 2.9V |
To guarantee compatibility to common microphone capsules. |
Function impedance and threshold detection
Devices must detect the following resistor ladder on the accessories. The
accessories will be tested to the standardized circuit diagram in the diagram
illustrated earlier (Reference Headset Test Circuit) where the total impedance
is measured from MIC terminal to GND when a button is pressed with 2.2V mic
bias applied through 2.2 kOhm resistor. This is the same effective resistance
as the button detection circuit with the microphone in parallel with the button
resistor.
Button Impedance Level |
Device Support |
Notes |
70 ohm or less |
Required |
[Function A] |
110 - 180 ohm |
Required |
[Function D] |
210 - 290 ohm |
Required |
[Function B] |
360 - 680 ohm |
Required |
[Function C] |
Headset Speaker Impedance Level |
Device Support |
Notes |
Low Threshold Detection |
Required |
Headphone (low) < 1 Kohm |
High Threshold Detection |
Required |
Line In (high) > 5 Kohm |
4-Segment Plug Detection Resistance (between 3rd and 4th segment) |
Device Support |
Notes |
4-Segment Plug Threshold |
Required |
Resistance >= 100 ohms |
3-Segment Plug Threshold |
Required |
Resistance < 100 ohms |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-26 UTC."],[],[],null,["# 3.5 mm headset jack: Device specification\n\nTo achieve compatibility with the [3.5 mm plug\nheadset specification](/docs/core/interaction/accessories/headset/plug-headset-spec), devices that include a 4 conductor 3.5 mm audio jack\nmust meet the following specifications. For Android compatibility requirements,\nrefer to the *Analog audio ports* section of the [Android CDD](/docs/compatibility/android-cdd#7_8_audio).\n\nFunctions\n---------\n\n| Function | Device Support |\n|------------------|----------------|\n| Stereo Audio Out | Required |\n| Audio in (Mic) | Required |\n| Ground | Required |\n\nSoftware mapping\n----------------\n\n| Function | Device Support | Description |\n|-----------------------------|--------------------------|---------------------------------------------------------------------|\n| Function A control event | Required | Input event: `KEY_MEDIA` Android key: `KEYCODE_MEDIA_PLAY_PAUSE` |\n| Function D control event | Required | Input event: `KEY_VOICECOMMAND` Android key: `KEYCODE_VOICE_ASSIST` |\n| Function B control event | Required | Input event: `KEY_VOLUMEUP` Android key: `VOLUME_UP` |\n| Function C control event | Required | Input event: `KEY_VOLUMEDOWN` Android key: `VOLUME_DOWN` |\n| Headset insertion detection | Required | Input event: `SW_JACK_PHYSICAL_INSERT 7` |\n| Headset type detection | Mic | Input event: `SW_MICROPHONE_INSERT 4` |\n| Headset type detection | No Mic | Input event: `SW_HEADPHONE_INSERT 2` |\n| Headset speaker impedance | Required Headphone (low) | Failure mode is to indicate headphones so limitation would be on |\n| Headset speaker impedance | Required Line In (high) | Input event: `SW_LINEOUT_INSERT 6` |\n\nMechanical\n----------\n\n| Function | Device Support | Description |\n|--------------------------|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 4 conductor 3.5 mm jack | Required | |\n| CTIA pinout order (LRGM) | Required | 3 Pin \\& Mono Plug Compatible |\n| OMTP pinout order (LRMG) | Optional but strongly recommended | |\n| Headset detect sequence | Required | Plug insert notification must be triggered only after all contacts on plug are touching their relevant segments (this prevents unreliable headset detection due to slow insertion. |\n\nElectrical\n----------\n\n### General\n\n| Function | Device Support | Notes |\n|------------------------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Maximum output voltage drive | 150mV | \\\u003e= 150mV on 32 ohm Test conditions: EN50332-2 |\n| Mic bias resistance | Required | Flexible on detection method used and microphone bias resistor selection. Require that all button resistance value ranges specified below be detected and related to their respective function |\n| Mic bias voltage | 1.8V - 2.9V | To guarantee compatibility to common microphone capsules. |\n\n### Function impedance and threshold detection\n\nDevices must detect the following resistor ladder on the accessories. The\naccessories will be tested to the standardized circuit diagram in the diagram\nillustrated earlier (Reference Headset Test Circuit) where the total impedance\nis measured from MIC terminal to GND when a button is pressed with 2.2V mic\nbias applied through 2.2 kOhm resistor. This is the same effective resistance\nas the button detection circuit with the microphone in parallel with the button\nresistor.\n\n| Button Impedance Level | Device Support | Notes |\n|------------------------|----------------|----------------|\n| 70 ohm or less | Required | \\[Function A\\] |\n| 110 - 180 ohm | Required | \\[Function D\\] |\n| 210 - 290 ohm | Required | \\[Function B\\] |\n| 360 - 680 ohm | Required | \\[Function C\\] |\n\n| Headset Speaker Impedance Level | Device Support | Notes |\n|---------------------------------|----------------|---------------------------|\n| Low Threshold Detection | Required | Headphone (low) \\\u003c 1 Kohm |\n| High Threshold Detection | Required | Line In (high) \\\u003e 5 Kohm |\n\n| 4-Segment Plug Detection Resistance (between 3rd and 4th segment) | Device Support | Notes |\n|-------------------------------------------------------------------|----------------|-------------------------|\n| 4-Segment Plug Threshold | Required | Resistance \\\u003e= 100 ohms |\n| 3-Segment Plug Threshold | Required | Resistance \\\u003c 100 ohms |"]]