--- title: tinymix in Dmic and Amic tags: Dmic, Amic description: Understand the routing path reference 80-PB873-5C.pdf, 80_PF105_10_B.pdf and 80_P7747-42.pdf --- # headset AMIC Headset Amic is connected to MIC_IN2_P adb shell "tinymix 'MultiMedia1 Mixer INT3_MI2S_TX' 1" adb shell "tinymix 'ADC2 Volume' 6" adb shell "tinymix 'DEC1 MUX' ADC2" adb shell "tinymix 'ADC2 MUX' INP2" adb shell "tinymix 'IIR1 INP1 MUX' DEC1" adb shell "tinycap /data/rec.wav" 1. tinymix 'MultiMedia1 Mixer INT3_MI2S_TX' 1  2. tinymix 'DEC1 MUX' 'ADC2'  3. tinymix 'ADC2 MUX' 'INP2' (Headset is connected to MIC_IN2_P)  the file is audio-kernel/asoc/codecs/sdm660_cdc/msm-analog-cdc.c  4. tinymix 'IIR1 INP1 MUX' 'DEC1'  --- - Note: We should check the headset is normal close or normal open, then modify the dtsi file. QC shematic is use normal open. Normal Close and Normal Open could check from the schematic then compare with the following website. https://www.cuidevices.com/blog/understanding-audio-jack-switches-and-schematics  --- # headphone(in headset) - command tinymix 'RX1 MIX1 INP1' 'RX1' tinymix 'RX2 MIX1 INP1' 'RX2' tinymix 'RDAC2 MUX' 'RX2' tinymix 'HPHL' 'Switch' tinymix 'HPHR' 'Switch' tinymix 'INT0_MI2S_RX Channels' 'Two' - schematic    --- 1. tinymix 'RX1 MIX1 INP1' 'RX1' choose the RX1 in the RX1 mixer  2. tinymix 'RX2 MIX1 INP1' 'RX2' choose the RX2 in the RX2 mixer  3. tinymix 'RDAC2 MUX' 'RX2' Due to RDAC2 MUX has two items to choose, we choose RX2 for HPH_R  4. tinymix 'HPHL' 'Switch' 5. tinymix 'HPHR' 'Switch' 6. tinymix 'INT0_MI2S_RX Channels' 'Two' --- # DMIC1 --- - command tinymix "MultiMedia1 Mixer INT3_MI2S_TX" "1" tinymix "DEC1 MUX" "DMIC1" tinycap /data/rec.wav - schematic  --- # DMIC2 --- - command tinymix "MultiMedia1 Mixer INT3_MI2S_TX" "1" tinymix "DEC1 MUX" "DMIC3" tinycap /data/rec2.wav - schematic  --- <style> code.blue { color: #337AB7 !important; } code.orange { color: #F7A004 !important; } </style> - <code class="orange">adb shell dumpsys media.audio_policy | grep -iE "Config source:"</code>: This could know which xml be used by audio. - <code class="blue">sendMessage('event')</code>: Trigger event ---
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up