自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
3.5 毫米耳机插孔:设备规范
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
为了实现与 3.5 毫米插头耳机规范的兼容性,配备 4 导体 3.5 毫米音频插孔的设备必须符合以下规范。有关 Android 兼容性要求,请参阅 Android CDD 的“模拟音频端口”部分。
函数
函数 |
设备支持 |
立体声音频输出 |
必需 |
音频输入(麦克风) |
必需 |
接地 |
必需 |
软件映射
函数 |
设备支持 |
说明 |
功能 A 控件事件 |
必需 |
输入事件:KEY_MEDIA
Android 按键:KEYCODE_MEDIA_PLAY_PAUSE
|
功能 D 控件事件 |
必需 |
输入事件:KEY_VOICECOMMAND
Android 按键:KEYCODE_VOICE_ASSIST |
功能 B 控件事件 |
必需 |
输入事件:KEY_VOLUMEUP
Android 按键:VOLUME_UP |
功能 C 控件事件 |
必需 |
输入事件:KEY_VOLUMEDOWN
Android 按键:VOLUME_DOWN |
耳机插入检测 |
必需 |
输入事件:SW_JACK_PHYSICAL_INSERT 7 |
耳机类型检测 |
麦克风 |
输入事件:SW_MICROPHONE_INSERT 4 |
无麦克风 |
输入事件:SW_HEADPHONE_INSERT 2 |
耳机扬声器阻抗 |
必需耳机(低) |
故障模式用于指示耳机开启相关限制 |
必需线路输入(高) |
输入事件:SW_LINEOUT_INSERT 6 |
机械
函数 |
设备支持 |
说明 |
4 导体 3.5 毫米插孔 |
必需 |
|
CTIA 引脚顺序 (LRGM) |
必需 |
兼容 3 脚插头和单声道插头 |
OMTP 引脚顺序 (LRMG) |
可选,但强烈建议支持 |
|
耳机检测序列 |
必需 |
仅当插头上的所有触点接触其相关部分之后才触发插头插入通知(这样可防止因插入缓慢而导致耳机检测不可靠)。 |
电气
常规
函数 |
设备支持 |
备注 |
最大输出电压驱动 |
150 毫伏 |
>= 150 毫伏(电阻为 32 欧姆) 测试条件:EN50332-2 |
麦克风偏置电阻 |
必需 |
可以灵活选择所使用的检测方法和麦克风偏置电阻器。需要检测以下指定的所有按钮电阻值范围,并将其与各自的功能相关联 |
麦克风偏置电压 |
1.8 伏 - 2.9 伏 |
可保证与通用麦克风咪头的兼容性。 |
功能阻抗和阈值检测
设备必须检测配件上的以下电阻梯形。按照上一部分展示的标准电路图(参考耳机测试电路)对配件进行测试,当通过 2.2 千欧电阻器对按钮施加 2.2 伏麦克风偏置电压时,将测量从 MIC 终端到 GND 的总阻抗。这是与按钮检测电路(具有与按钮电阻器并联的麦克风)相同的有效电阻。
按钮阻抗级别 |
设备支持 |
备注 |
不超过 70 欧姆 |
必需 |
[功能 A] |
110 - 180 欧姆 |
必需 |
[功能 D] |
210 - 290 欧姆 |
必需 |
[功能 B] |
360 - 680 欧姆 |
必需 |
[功能 C] |
耳机扬声器阻抗级别 |
设备支持 |
备注 |
低阈值检测 |
必需 |
耳机(低)< 1 千欧 |
高阈值检测 |
必需 |
线路输入(高)> 5 千欧 |
4 段插头检测电阻(第 3 段与第 4 段之间) |
设备支持 |
备注 |
4 段插头阈值 |
必需 |
电阻 >= 100 欧姆 |
3 段插头阈值 |
必需 |
电阻 < 100 欧姆 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],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 |"]]