Noise output under "Headset_Mic" to "Headset_Phone" loopback mode


#1

i try to enable loopback mode (“Headset_Mic” <=> “Headset_Phone”) as flowing script
, and i get tinyhostless tool from tinyalsa git project

when i enable loopback mode (“Headset_Mic” <=> “Headset_Phone”)
, i always got loud noise from Headset_Phone output

anyone could give me suggestion for this problem?

#start script here===========
adb root

#open, Headset_Mic_Capture
adb shell "tinymix ‘MultiMedia1 Mixer TERT_MI2S_TX’ 0"
adb shell "tinymix ‘DEC1 MUX’ ‘ADC2’"
adb shell "tinymix ‘ADC2 MUX’ ‘INP2’"
adb shell “tinymix ‘IIR1 INP1 MUX’ ‘DEC1’”

#open, Headset_Phone_Steoreo_Playback
adb shell "tinymix ‘PRI_MI2S_RX Audio Mixer MultiMedia1’ 0"
adb shell "tinymix ‘RX1 MIX1 INP1’ ‘IIR1’"
adb shell "tinymix ‘RDAC2 MUX’ ‘RX2’"
adb shell "tinymix ‘HPHL’ ‘Switch’"
adb shell “tinymix ‘HPHR’ ‘Switch’”

adb shell "tinymix ‘PRI_MI2S_RX Port Mixer TERT_MI2S_TX’ 1"
adb shell “tinyhostless -D 0 -P 5 -C 11 -p 256 -n 2 -c 1 -r 48000 -T 5”

ps : my android code base is repo_sync by following command
repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.7-01010-8x16.0.xml --repo-url=git://codeaurora.org/tools/repo.git