@@ -485,7 +485,6 @@ SOC_DAPM_SINGLE_TLV对应SOC_SINGLE_TLV等
485485
486486 tinymix <ctrl id> <value>
487487
488-
489488## 耳机检测
490489
491490[ 参考文章Android4.×耳机插拔检测] ( http://blog.csdn.net/fengying765/article/details/38301483 )
@@ -494,11 +493,73 @@ SOC_DAPM_SINGLE_TLV对应SOC_SINGLE_TLV等
494493
495494### 名词解释
496495
496+ mono 单声道
497+
498+ stereo 立体声
499+
500+ surround 环绕立体声
501+
502+ ![ spatial] ( ./pngs/Spatial-Audio-Diagram.png )
503+
504+ (audio) jack (音频)插槽,插孔,母头
505+
506+ (audio) plug (音频)插头,子弹头,公头
507+
508+ ![ adapter0] ( ./pngs/audio_adapter0.jpg )
509+ It features two 3.5mm TRS jacks and one 3.5mm TRRS plug.
510+
511+ ![ adapter1] ( ./pngs/audio_adapter1.jpg )
512+ It features one TRRS jack and two separate TRS plugs for audio and microphone
513+
497514headphone 耳机
498515
499- micphone 麦克风
516+ microphone 麦克风
517+
518+ headset (耳麦)带有麦克风的耳机 headphone + microphone
519+
520+ 关于[ audio track和channel] ( https://tutorials.hybrik.com/audio_mapping )
521+
522+ A media file can have multiple tracks of audio,
523+ and each track can have 1 or more channels.
524+ For example, a file might have 2 tracks of audio – one for English and one for Spanish.
525+ Both of these tracks could be stereo (2 channels),
526+ or they might both be surround (6 channels), or one of them might be stereo and
527+ the other surround. There are an enormous number of variations in how audio gets
528+ mastered, archived, and distributed throughout the video world, and every
529+ workflow can adopt a different standard. Another example might be two surround
530+ sound mixes. One company may store that as 12 discrete tracks (1 channel each),
531+ while another may store it as 2 tracks (6 channels each).
532+
533+ [ 各种耳机接头TS,TRS,TRRS 参考1] ( https://www.headphonesty.com/2020/09/use-headphone-jack-microphone )
534+
535+ [ 各种耳机接头TS,TRS,TRRS 参考2] ( https://audiouniversityonline.com/ts-vs-trs-vs-trrs-audio-connectors/ )
536+
537+ The ‘T’ stands for ‘tip,’ the ‘S’ for ‘sleeve,’ and the ‘R’ for ‘ring
538+
539+ sleeve:地信号
540+
541+ #### TS
542+
543+ TS plug has one tip (T), one sleeve (S) 只有两个连接点的接头,处理单通道音频,比如接吉他等设备
544+
545+ ![ ts] ( ./pngs/ts.jpg )
546+
547+ TRS plug consists of one tip (T), a ring (R), and a sleeve (S),三段耳机,有三个接触点
548+ The tip transmits the left audio output, while the ring transmits the right audio output.
549+
550+ #### TRS
551+
552+ ![ trs] ( ./pngs/trs.jpg )
553+
554+ ![ trs1] ( ./pngs/trs1.jpg )
555+
556+ #### TRRS
557+
558+ TRRS plug has one tip (T), two rings (RR), and a sleeve (S) 四段耳机,四个接触点
559+
560+ ![ trrs] ( ./pngs/trrs.jpg )
500561
501- headset (耳麦)带有麦克风的耳机 headphone + micphone
562+ ![ trrs1 ] ( ./pngs/trrs1.jpg )
502563
503564### 设置android使用InputEvent检测
504565
0 commit comments