aboutsummaryrefslogtreecommitdiff
path: root/src/accessories/headset-spec.jd
blob: 88b602315ca05005d34456d7d8235db98a289960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
page.title=Wired audio headset specification
@jd:body

<!--
    Copyright 2014 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<div id="qv-wrapper">
  <div id="qv">
    <h2>In this document</h2>
    <ol id="auto-toc">
    </ol>
  </div>
</div>

<p><em>Version 1.0</em></p>

<p>This document specifies the requirements for headsets and mobile devices to
function uniformly across the Android ecosystem. It is separated into two
sections beginning with the specifications for the headset
accessory followed by the specifications for the mobile device.</p>

<h2 id=headset_accessory_plug_specifications>Headset Accessory (Plug) Specifications</h2>

<p>The requirements in the following section apply to the headset accessory.</p>

<h2 id=functions>Functions</h2>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Accessory Support</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Stereo Audio Out</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
 <tr>
    <td>
<p>Audio in (Mic)</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
 <tr>
    <td>
<p>Ground</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
</table>

<h2 id=control-function_mapping>Control-Function Mapping</h2>

<table>
 <tr>
    <th>
<p><strong>Control Function</strong></p>
</th>
    <th>
<p><strong>Accessory Support</strong></p>
</th>
    <th>
<p><strong>Description</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Function A</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Play/pause/hook (Short Press), Trigger Assist (Long Press), Next (double press)</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function B</p>
</td>
    <td>
<p>Optional</p>
</td>
    <td>
<p>Vol+</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function C</p>
</td>
    <td>
<p>Optional</p>
</td>
    <td>
<p>Vol-</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function D</p>
</td>
    <td>
<p>Optional</p>
</td>
    <td>
<p>Reserved (Nexus devices will use this reserved function to launch Google Now
voice search)</p>
</td>
 </tr>
</table>

<p><strong>Assign functions to buttons as follows</strong>:</p>

<ul>
  <li> All one-button headsets must implement Function A.
  <li> Headsets with multiple buttons must implement functions according to the
following pattern:
  <ul>
    <li> 2 functions: A and D
    <li> 3 functions: A, B, C
    <li> 4 functions: A, B, C, D
  </ul>
</ul>

<h2 id=mechanical>Mechanical</h2>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Accessory Support</strong></p>
</th>
    <th>
<p><strong>Notes</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>4 conductor 3.5mm plug</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Ref: EIAJ-RC5325A standard</p>
</td>
 </tr>
 <tr>
    <td>
<p>CTIA pinout order (LRGM)</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Except in regions with legal requirements for OMTP pinout</p>
</td>
 </tr>
 <tr>
    <td>
<p>OMTP pinout order  (LRMG)</p>
</td>
    <td>
<p>Optional</p>
</td>
    <td></td>
 </tr>
 <tr>
    <td>
<p>Microphone</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Must not be obstructed when operating headset controls</p>
</td>
 </tr>
</table>

<h2 id=electrical>Electrical</h2>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Accessory Support</strong></p>
</th>
    <th>
<p><strong>Description</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Ear speaker impedance</p>
</td>
    <td>
<p><strong>16 ohms or higher</strong></p>
</td>
    <td>
<p>Recommend 32 - 300 ohms</p>
</td>
 </tr>
 <tr>
    <td>
<p>Mic DC resistance</p>
</td>
    <td>
<p><strong>1000 ohms or higher</strong></p>
</td>
    <td>
<p>Mic characteristics must be compliant with section 5.4 “Audio Recording” of
current Android Compatibility Definition Document (CDD)</p>
</td>
 </tr>
 <tr>
    <td>
<p>Control Function Equivalent impedance*</p>

<p>*Total impedance from positive mic terminal to GND when button is pressed with
2.2 V mic bias applied through 2.2 kOhm resistor</p>
</td>
    <td>
<p><strong>0 ohm</strong></p>
</td>
    <td>
<p>[Function A]  Play/Pause/Hook</p>
</td>
 </tr>
 <tr>
    <td></td>
    <td>
<p><strong>240 ohm</strong> +/- 1% resistance</p>
</td>
    <td>
<p>[Function B]</p>
</td>
 </tr>
 <tr>
    <td></td>
    <td>
<p><strong>470 ohm</strong> +/- 1% resistance</p>
</td>
    <td>
<p>[Function C] </p>
</td>
 </tr>
 <tr>
    <td></td>
    <td>
<p><strong>135 ohm</strong> +/- 1% resistance</p>
</td>
    <td>
<p>[Function D]</p>
</td>
 </tr>
</table>

<h2 id=reference_headset_test_circuit_1>Reference Headset Test Circuit 1</h2>

<img src="images/headset-circuit1.png" alt="Reference Headset Test Circuit 1" />
<p class="img-caption"><strong>Figure 1.</strong> Reference headset test circuit 1</p>

<p class="note"><strong>Note:</strong> Four-segment plug shows CTIA pinout. For OMTP pinout, please swap MIC and
GND segments</strong></p>

<h2 id=reference_headset_test_circuit_2>Reference Headset Test Circuit 2</h2>

<img src="images/headset-circuit2.png" alt="Reference Headset Test Circuit 2" />
<p class="img-caption"><strong>Figure 2.</strong> Reference headset test circuit 2</p>

<p><strong>Note</strong>: The second reference circuit above illustrates how the actual resistor values
(R1 - R4) will change based on the microphone capsule resistance to achieve the
equivalent impedance values as required by the specification. The example above
assumes a 5 kOhm microphone impedance. Therefore, as an example, to achieve an
equivalent R4 impedance of 135 Ohm, the actual R4 resistor value needs to be
139 Ohms.</p>

<h2 id=mobile_device_jack_specifications>Mobile Device (Jack) Specifications</h2>

<p>The requirements in the following section apply to the 3.5 mm jack on Android
mobile devices.</p>

<p><strong>Headset Jack Functions</strong></p>
<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Device Support</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Stereo Audio Out</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
 <tr>
    <td>
<p>Audio in (Mic)</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
 <tr>
    <td>
<p>Ground</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
 </tr>
</table>

<h2 id=software_mapping>Software mapping</h2>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Device Support</strong></p>
</th>
    <th>
<p><strong>Description</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Function A control event </p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>input event KEY_MEDIA</p>

<p>Android key  KEYCODE_HEADSETHOOK</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function D control event</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>input event KEY_VOICECOMMAND</p>

<p>Android key KEYCODE_VOICE_ASSIST</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function B control event</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>input event KEY_VOLUMEUP</p>

<p>Android key  VOLUME_UP</p>
</td>
 </tr>
 <tr>
    <td>
<p>Function C control event</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>input event KEY_VOLUMEDOWN</p>

<p>Android key  VOLUME_DOWN</p>
</td>
 </tr>
 <tr>
    <td>
<p>Headset insertion detection</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>input event SW_JACK_PHYSICAL_INSERT 7</p>
</td>
 </tr>
 <tr>
    <td>
<p>Headset type detection</p>
</td>
    <td>
<p><strong>Mic</strong></p>
</td>
    <td>
<p>input event SW_MICROPHONE_INSERT 4</p>
</td>
 </tr>
 <tr>
    <td>
<p>Headset type detection</p>
</td>
    <td>
<p><strong>No Mic</strong></p>
</td>
    <td>
<p>input event SW_HEADPHONE_INSERT 2</p>
</td>
 </tr>
 <tr>
    <td>
<p>Headset speaker impedance</p>
</td>
    <td>
<p><strong>Required Headphone (low)</strong></p>
</td>
    <td>
<p>Failure mode is to indicate headphones so that limitation would be on</p>
</td>
 </tr>
 <tr>
    <td>
<p>Headset speaker impedance</p>
</td>
    <td>
<p><strong>Required Line In (high)</strong></p>
</td>
    <td>
<p>input event SW_LINEOUT_INSERT 6</p>
</td>
 </tr>
</table>

<h2 id=mechanical11>Mechanical</h2>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Device Support</strong></p>
</th>
    <th>
<p><strong>Description</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>4 conductor 3.5mm jack</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td></td>
 </tr>
 <tr>
    <td>
<p>CTIA pinout order (LRGM)</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>3 Pin & Mono Plug Compatible</p>
</td>
 </tr>
 <tr>
    <td>
<p>OMTP pinout order  (LRMG)</p>
</td>
    <td>
<p>Optional but <strong>Strongly Recommended</strong></p>
</td>
    <td></td>
 </tr>
 <tr>
    <td>
<p>Headset detect sequence</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Plug insert notification must only be triggered after all contacts on plug are
touching their relevant segments. This will prevent unreliable headset
detection due to slow insertion. </p>
</td>
 </tr>
</table>

<h2 id=electrical12>Electrical</h2>

<h3 id=general>General</h3>

<table>
 <tr>
    <th>
<p><strong>Function</strong></p>
</th>
    <th>
<p><strong>Device Support</strong></p>
</th>
    <th>
<p><strong>Notes</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p>Minimum output voltage drive capacity </p>
</td>
    <td>
<p>150mV </p>
</td>
    <td>
<p>&gt;= 150mV on 32 ohm</p>

<p>Test conditions: EN50332-2</p>
</td>
 </tr>
 <tr>
    <td>
<p>Mic bias resistance </p>
</td>
    <td>
<p>Required</p>
</td>
    <td>
<p>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</p>
</td>
 </tr>
 <tr>
    <td>
<p>Mic bias voltage</p>
</td>
    <td>
<p>1.8V - 2.9V</p>
</td>
    <td>
<p>To guarantee compatibility to common microphone capsules.</p>
</td>
 </tr>
</table>

<h3 id=function_impedance_and_threshold_detection>Function Impedance and Threshold Detection</h3>

<p>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.</p>
<table>
 <tr>
    <th>
<p><strong>Button Impedance Level</strong></p>
</th>
    <th>
<p><strong>Device Support</strong></p>
</th>
    <th>
<p><strong>Notes</strong></p>
</th>
 </tr>
 <tr>
    <td>
<p><strong>70 ohm or less</strong></p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>[Function A]</p>
</td>
 </tr>
 <tr>
    <td>
<p><strong>110 - 180 ohm </strong></p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>[Function D]</p>
</td>
 </tr>
 <tr>
    <td>
<p><strong>210 - 290 ohm</strong></p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>[Function B]</p>
</td>
 </tr>
 <tr>
    <td>
<p><strong>360 - 680 ohm </strong></p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>[Function C]</p>
</td>
 </tr>
 <tr>
    <td>
<p><strong>Headset speaker impedance level</strong></p>
</td>
    <td></td>
    <td></td>
 </tr>
 <tr>
    <td>
<p>Low Threshold Detection</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Headphone (low) &lt; 1 Kohm</p>
</td>
 </tr>
 <tr>
    <td>
<p>High Threshold Detection</p>
</td>
    <td>
<p><strong>Required</strong></p>
</td>
    <td>
<p>Line In (high) &gt; 5 Kohm</p>
</td>
 </tr>
</table>