I know it's broken, I used the bypass before to actually redirect it to the secondary mic.
So after fiddling for a while, I've found the solution.
So for anyone on any version of Nougat (Android 7-7.1) looking to bypass their main mic with the loudspeaker mic, in case your main mic is broken, this is the fix:
Open up mixer_paths.xml in System/etc, go to the "main-mic" entry under "Analog input devices", change all values from "ADC3" to "ADC5". Then, change all instances of "DEC4" to "DEC2" then go to "Recording paths" (it's practically right underneath it) and edit the "handset-mic" entry. Change "ADC3 Volume" to "ADC5 Volume". After that, head to /system/build.prop, change "ro.qc.sdk.audio.fluencetype=fluence" to "ro.qc.sdk.audio.fluencetype=none".
That's all there's to it, now you can make regular calls again. (Albeit with your loudspeaker mic instead of your main mic, in case it's broken.)
I hope someone will find this useful.
Did all these edition, after this do u mean i will be able to make calls while on loudspeaker?