Echo problem when calling (for callers) - Xiaomi Mi Mix 2S Questions & Answers

Hello,
I have an issue with my Mi MIX 2S. When somebody calls me, they complained because they have a big echo of themselves and its very annoying for both.
If i lower the volume, its better for them but I cant ear them through the speaker.
Some problem in speaker mode. No problem on heatset+mic.
I think when call start, speakers is too loud and both mic sensibility is to high. So if there is a voice cancaling option, it doesnt work correctly or mics are too sensitives.
I contact Xiaomi, no answer to the problem and they wont take the phone because its no longer under warranty.
I contact other users through Xiaomi Forum, some people is having this issue with Mi Mix 2S but also other Xiaomi phones. No real solution and people with this is geting bigger.
I bought the phone just before the official rom goes to MIUI 9 to MIUI 10 (november 2018). I thing, not sure, i didn't have the problem before MIUI 10.
Actual System info :
MIUI Global 10.2.2.0 Stable
What I have done with no solution :
Factory reset = did not solve the problem
Install new official ROM erasing all data. I tried V10.0.2.0.ODEMIFH, V10.0.6.0.PDGMIFH and V10.0.9.0.PDGMIFH = did not solve the problem
Root + TWRP + fallowing this tread [FIX] In call echo and noise from top mic pocophone + Magisk module = did not solve the problem
https://forum.xda-developers.com/poco-f1/themes/fix-noises-echoes-mic-t3886049
For this last one, wizard8400 modified the XLM \vendor\etc\mixer_paths_overlay_static.xml
I supposed that the POCO will have the same directory than MI MIX 2S but no. Or I dont know how.
In TRWP > Advanced > File Manager > Vendor
> lib64
>hw
> (list of .so files)​>compatibility_matrix.xml
>manifest.xlm
Or In TRWP > Advanced > File Manager > Data > Vendor
> Audio > acdbdata > delta > files no XLM
> other files > files no XLM or no files
Anyone have solved this issue or can help me ?
Or how to find, if it exist, a similar file as "mixer_paths_overlay_static.xml" to redefine mic and noise cancellation settings.
Thank you

Hi.
I experience the same problem,when its a good voice connection...i have to lower the volume.Sad situation.I think its a design flaw,speaker to close to mic,resonating materials,something like that.

I have pass the issue of injecting the XLM.
I'm trying different settings as mention by wizard8400 on this tread.
No success for now, I'm asking help in his tread also.
Anyway, if it can help some one to have access to VENDOR, is very simple in fact :
- Need to install TWRP
- In TWRP go to MOUNT, select VENDOR and go back to main screen
- Go to ADVANCED > FILE MANAGER
- VENDOR/ETC/ xlm files are availables

theozmoz said:
Hello,
I have an issue with my Mi MIX 2S. When somebody calls me, they complained because they have a big echo of themselves and its very annoying for both.
If i lower the volume, its better for them but I cant ear them through the speaker.
Some problem in speaker mode. No problem on heatset+mic.
I think when call start, speakers is too loud and both mic sensibility is to high. So if there is a voice cancaling option, it doesnt work correctly or mics are too sensitives.
I contact Xiaomi, no answer to the problem and they wont take the phone because its no longer under warranty.
I contact other users through Xiaomi Forum, some people is having this issue with Mi Mix 2S but also other Xiaomi phones. No real solution and people with this is geting bigger.
I bought the phone just before the official rom goes to MIUI 9 to MIUI 10 (november 2018). I thing, not sure, i didn't have the problem before MIUI 10.
Actual System info :
MIUI Global 10.2.2.0 Stable
What I have done with no solution :
Factory reset = did not solve the problem
Install new official ROM erasing all data. I tried V10.0.2.0.ODEMIFH, V10.0.6.0.PDGMIFH and V10.0.9.0.PDGMIFH = did not solve the problem
Root + TWRP + fallowing this tread [FIX] In call echo and noise from top mic pocophone + Magisk module = did not solve the problem
https://forum.xda-developers.com/poco-f1/themes/fix-noises-echoes-mic-t3886049
For this last one, wizard8400 modified the XLM \vendor\etc\mixer_paths_overlay_static.xml
I supposed that the POCO will have the same directory than MI MIX 2S but no. Or I dont know how.
In TRWP > Advanced > File Manager > Vendor
> lib64
>hw
> (list of .so files)​>compatibility_matrix.xml
>manifest.xlm
Or In TRWP > Advanced > File Manager > Data > Vendor
> Audio > acdbdata > delta > files no XLM
> other files > files no XLM or no files
Anyone have solved this issue or can help me ?
Or how to find, if it exist, a similar file as "mixer_paths_overlay_static.xml" to redefine mic and noise cancellation settings.
Thank you
Click to expand...
Click to collapse
Unfortunately this is a hardware issue but don't know yet is it main mic or noice cancelling mic problem.
My brother have same problem, i order new replacement microphone (5€) and waiting to replace for him, i will report if changing main microphone fix problem.
It can be also problem with ruber band around microphone if not fitting good sound from speaker can leak inside and create echo sound.

Yes please, report if it's a hardware solution.

Dadovvv said:
Unfortunately this is a hardware issue but don't know yet is it main mic or noice cancelling mic problem.
My brother have same problem, i order new replacement microphone (5€) and waiting to replace for him, i will report if changing main microphone fix problem.
It can be also problem with ruber band around microphone if not fitting good sound from speaker can leak inside and create echo sound.
Click to expand...
Click to collapse
Hi there!, bad news from me. I've ordered the same replacement part (and also the speaker which is over the mic part) and the echo didn't dissapear. I've not mounted the speaker part as you can see i my picture it doesn't comes witht the micro connector (red circle in the picture) which I suspect that deliveries the sound from the main mic to the earpiece, I'm asking for a refund of the part. I've tested the new parts calling my daughter and she told me that the echo has decreased but still there. My bet is that the problem is on the earpice. Why? 'cause if I use the headset or the external speaker the problem dissapears. I have to say that my phone has a very small crack at the lower left corner too.
Any idea?
Thanks in advance.

Hi, I'm almost sure that the problem comes, as another member said, from the top speaker (earpiece). I've tried to fix it cancelling the echo mic (using software) but when I try to edit the file I've saw that it's already with the suggested values <ctl name="DEC8 Volume" value="0" />
<ctl name="DEC7 Volume" value="92" />
Now the question is...how to disable the cancellation mic (hardware level)? It's so dangerous to desolder it since it's a and part and the risk of damaging the board is high....Any ideas?
Let's try to find a solution

solmer said:
Hi, I'm almost sure that the problem comes, as another member said, from the top speaker (earpiece). I've tried to fix it cancelling the echo mic (using software) but when I try to edit the file I've saw that it's already with the suggested values <ctl name="DEC8 Volume" value="0" />
<ctl name="DEC7 Volume" value="92" />
Now the question is...how to disable the cancellation mic (hardware level)? It's so dangerous to desolder it since it's a and part and the risk of damaging the board is high....Any ideas?
Let's try to find a solution
Click to expand...
Click to collapse
Thank you for your feedback Solmer.
I'm fallowing the other thread on the Poco where you posted.
The 10.3 is out but I'm unable to install due to the ROOT.
As I Said and as you tried, there is a code line that we are missing because I tried every value possible on the codes given on the poco thread.
As you Said, sound is capturer by the top mik from the top speaker that is not well encapsulated. We need to find thé code to disable thé top mik.

theozmoz said:
Thank you for your feedback Solmer.
I'm fallowing the other thread on the Poco where you posted.
The 10.3 is out but I'm unable to install due to the ROOT.
As I Said and as you tried, there is a code line that we are missing because I tried every value possible on the codes given on the poco thread.
As you Said, sound is capturer by the top mik from the top speaker that is not well encapsulated. We need to find thé code to disable thé top mik.
Click to expand...
Click to collapse
Hi Theozmoz ! yeas the 10.3 is out, I've tested today with no luck, I can confirm that 10.3 doesn't fix the echo bug. Same here...no luck with the code :crying:
I've tried even to put a small piece of gummy tape in front of the top mic with no luck neither....Sometimes the echo starts and it's the same along all the calling time...other times it goes down after a couple of minutes (but doesn't dissapears...). We need a solution :crying: I've bought mine 2 weeks ago and want to use it but first i need to fix the echo. Mine is 2nd hand but the problem is present inn new ones too

Could you please confirm this bug at https://c.mi.com/thread-1894332-1-0.html ?
Regards,

Fr3dY said:
Could you please confirm this bug at https://c.mi.com/thread-1894332-1-0.html ?
Regards,
Click to expand...
Click to collapse
Hi there!, sure right now...let's try to find a solution....Now I'm on Revolution OS v9.3.7 with a firmware who somebody posted ona a TElegram channel, the echo has become lower but not fixed 100%

Anybody solve this issue?

I had the same problem when i had Pixel Experience ROM installed. Everyone did say they can hear themselves and that the quality is very bad.
I flashed the latest MIUI Rom a few days ago and now I have normal quality again. How can this be? Did someone Experience (lol) this too? Want to go back to a custom rom but on custom roms I have this issue which I don't have on MIUI based ROM.

I can confirm on miui 10.3.2.0 editing \vendor\etc\mixer_paths_overlay_static.xml seem to solve echo caller problem
Thanx

hocuspocus69 said:
I can confirm on miui 10.3.2.0 editing \vendor\etc\mixer_paths_overlay_static.xml seem to solve echo caller problem
Thanx
Click to expand...
Click to collapse
Can you help please how to edit?

Kubis01 said:
Can you help please how to edit?
Click to expand...
Click to collapse
you need ROOT
with a file manager
go to \vendor\etc\mixer_paths_overlay_static.xml
then follow https://forum.xda-developers.com/poco-f1/themes/fix-noises-echoes-mic-t3886049
personally i'll use <ctl name="DEC8 Volume" value="40" /> to mantain a little noise cancelling
don't use magisk module i think it was made for pocophone
better to edit directly it
CHEERS

hocuspocus69 said:
you need ROOT
with a file manager
go to \vendor\etc\mixer_paths_overlay_static.xml
then follow https://forum.xda-developers.com/poco-f1/themes/fix-noises-echoes-mic-t3886049
personally i'll use <ctl name="DEC8 Volume" value="40" /> to mantain a little noise cancelling
don't use magisk module i think it was made for pocophone
better to edit directly it
CHEERS
Click to expand...
Click to collapse
do you know if it 's possible to do this on custom roms too?

I don't know sorry but i think it's not a dangerous item(bootloop or brick) as you edit it in right format...so try it but wait a couple of day of use before to toast at it

This device suffers from huge connectivity problems since january updates:
http://c.mi.com/thread-1896725-1-0.html
Some people reports echo, some can't hear caller etc. LTE disconnects and can't reconnect. Phone acts like it has damaged modem.
There were no problems in ROMs before january, I tested few ROMs, some claims that AOSP are better, others that they have much smaller range etc.
Hope that xiaomi will fix that.

Hello,
Repumping this thread. Did someone install the new MIUI 10.3.3.0 for Mi Mix 2s ?
Thx

Related

[HELP]Mic Echo in call

Hi,
First, Thanks to all the developers!
Amazing work!
I wanted to ask if there is a chance to change the priority of this issue to HIGH
(http://code.google.com/p/photon-android/issues/detail?id=11)
eventually, the main use is for talking and this issue really annoys everyone who's calling..
I was looking for solution and found this thread.. but I'm not a DEV so I can't say if it's good for our mini or not..
http://forum.xda-developers.com/showthread.php?t=860850
The problem is only on the other side of the conversation, I can hear load and clear..
Thanks again!
hi
yes you are right about annoying part
but as i can see they had different issue than our
they had Background noise fix / mic gain fix and we have echo on the side of person who we are talking to...
i might have some ideas for this, i will have a look later after sensors fix ;-)
we definitely need to edit oncrpc devices like schlund maded for gps! Please see *.h in /root/android/kernel-htc-hd-mini-testing/arch/arm/mach-msm/qdsp5_comp
This is maybe good: #define AUDMGR_PROG 0x30000013
and I think this is not good: #define AUDMGR_CB_PROG 0x31000013
Also in this folder we have many many definitions like jpeg task etc..etc...etc... Cotulla also maded some changes there!
Update:
youtube fix is also there? As I recall the first port of 2-6-32, the big problem was here, and I think this have priority checking! => mach-msm/include/mach/msm_adsp.h
i already checked the rpc values, they are correct, same than on windows DLL.
for youtube and camera, the key issue is adsp_photon.c, where cotula imported src for photon.
for headset mic, there must be a DEX or RPC to trigger.
if you want to fix it, you need to spy on windows first (gpio or DEX) or check on topaz/raphael/leo how they enable headset
liorderei said:
and the echo problem... ppl cant talk with me when im on android...
Click to expand...
Click to collapse
There is discussion in various forums for other Android phones and Android apps (eg. SIP/VoIP) that a temporary fix is to just turn down the volume on the earpiece. But since the in-call volume is yet to be fixed for the Photon (meaning it can be quite loud!), perhaps you could try using the headset (if you can tolerate the high volume) when speaking and see if the echo problem has gone away. Or try using loudspeaker and see if the other party reports the echo issue to see if echo cancellation operates to make a difference.
Wowser said:
There is discussion in various forums for other Android phones that a temporary fix is to just turn down the volume on the earpiece. But since the in-call volume is yet to be fixed for the Photon (meaning it can be quite loud!), perhaps you could try using the headset (if you can tolerate the high volume) when speaking and see if the echo problem has gone away. Or try using loudspeaker and see if the other party reports the echo issue to see if echo cancellation operates to make a difference.
Click to expand...
Click to collapse
I can say for myself that when i put loudspeaker in call its getting worse?
I have the same problem with all androids that copy, is there a solution?
kaoss said:
I have the same problem with all androids that copy, is there a solution?
Click to expand...
Click to collapse
no
(not yet)
To everyone the same thing happens?

[Solution] Nexus 5 Low or No Mic/Noisy Mic after disabling EndFire

Hey guys,
So this is my first post after visiting XDA for quite some time, so you'll have to forgive my lack of finesse in my formatting. Anyway, I've had the common issue with the microphone in my Nexus 5 where the noise canceling was going overboard or the microphone wasn't picking up my voice well enough even being like 2 cm away. I found previous solutions that end up disabling EndFire in the build.prop. This has worked as a workaround, and a very noisy one as it picks up a ton of environment sound and I would get my own echo with absolute annoying clarity (which is what I'd rather the person on the other end hear). I've had this issue across a great number of roms so I know that those who experience this issue with their microphones won't get a solution by just changing and it goes to show how the software is in fact screwing up somewhere.
So I've done some experimenting from what I can pick up from the great community here and actually sorta stumbled on a two-part solution to this issue. This solution has me so stoked because I had a clean sound for the first time in a long while. So without further ado here's what you do.
First Step:
If you haven't already got a build.prop editor download one (there's tons of free one's out there.) Then find the setting for persist.audio.dualmic.config and set the value to broadside. This is a term I picked out of the mixer_paths.xml file which actually is included in part two of this solution (false will not work, I tried). I don't know what broadside is admittedly but my guess is that it's a dual-mic config as well but isn't used, or maybe it is. Anyway, please also check other audio settings to make sure they match what's in the screenshot as I do know the disabling endfire solution messes with those sometimes. Once you've finished that you can choose to reboot or not you will have to at the end either way.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Second Step:
Alrighty you are doing great thus far. The last step in this can look overwhelming as we are going into the xml file known at mixer_paths.xml. This will look rather daunting for those who are new and maybe never seen a xml file. I know I hadn't until working on this. So to view and edit you can use the file explorer/editor of your choice. I recommend ES explorer as most people do. So you'll navigate to /system/etc/mixer_paths.xml .
Note: Be sure you have root explorer enables if you are using ES Explorer, otherwise you'll get an error when trying to save. That can be found in Menu(Sidebar-thingy)-->Tools-->Root Explorer on the most recent version.
Once you have it opened you may need to scroll all the way down to the bottom of the file as for some reason the file doesn't entirely load the text unless you do. Once the text is loaded go ahead and hit edit.
Now find the line that is called path name="handset-mic">. It will be in about the center of the page if you loaded the whole thing. The whole section looks like this. Pictures are below to see the changes as well.
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
You'll be making three changes so it looks like this
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
Hit the back button up top and tell it to save.
Then just reboot your phone.
Click to expand...
Click to collapse
Before
After
Admittedly I don't know what changing those things does other than the fact that my microphone woes only happened on calls. I do know whenever I'd send a voice clip through fb and whatnot generally it went through just fine. So my hypothesis is that this forces the phone to uses those "channels" persay as I did pull those three changes from a different part in this xml. I also found the broadside term in this file just below endfire. Maybe it's an unused config, I dunno but it works, so best of luck to you who still need a clean voice calling solution.
Please help this solution get out there as I've yet to see anyone working on the mixer_paths.xml in this fashion (If I'm wrong about that my apologies). I've seen a large number of people trying to adjust the number values but to little success. I hope that this gets out there and proves to be a big solution for the community. Share if this helped!
Be awesome out there,
daScholar
Loud echo
Thank you so much for this! It works, people can hear me now. Trouble is, there's a loud echo on the other end. Meaning that the other person hears their voice really loud making it quite annoying for them.
Any thoughts on this??
Thank you!
chicocardo said:
Thank you so much for this! It works, people can hear me now. Trouble is, there's a loud echo on the other end. Meaning that the other person hears their voice really loud making it quite annoying for them.
Any thoughts on this??
Thank you!
Click to expand...
Click to collapse
I'll look into this for sure. Thanks for the response. I tested this with myself on skype so not exactly the best experiment I'll definitely see if I can replicate this and tweak it so that doesn't happen. I've not heard of the receiving phone getting an echo from itself because of the senders phone settings, but I'm definitely no expert. Thanks for the feedback, will get back to ya soon.
If it helps, the same echo is achieved by making these build.prop edits which I use to combat my ultra-low mic volume on lollipop
persist.audio.fluence.voicecall=false
persist.audio.fluence.voicecomm=false
persist.audio.fluence.voicerec=false
Thanks, but echo continues. Echo is on other end, not my end.
chicocardo said:
Thanks, but echo continues. Echo is on other end, not my end.
Click to expand...
Click to collapse
You've not been given a solution so why wouldn't echo continue?
I'm confused
rootSU said:
You've not been given a solution so why wouldn't echo continue?
I'm confused
Click to expand...
Click to collapse
I thought you posted solution for the echo. I managed to sort out muffled mic with the solution on the initial thread, but with that came the echo from the other end. I thought you posted the solution for it.
Thanks
chicocardo said:
I thought you posted solution for the echo. I managed to sort out muffled mic with the solution on the initial thread, but with that came the echo from the other end. I thought you posted the solution for it.
Thanks
Click to expand...
Click to collapse
No. I was telling the OP that the build.prop edits that I use to combat low mic volume produce the same echo as his solution.
chicocardo said:
I thought you posted solution for the echo. I managed to sort out muffled mic with the solution on the initial thread, but with that came the echo from the other end. I thought you posted the solution for it.
Thanks
Click to expand...
Click to collapse
K So I've been trying to replicate it on my phone and can't seem too. Everyone I called said that things were just normal. Have you tried resolving the mic issue before by boosting the mic or speaker volume? Because maybe that's a factor and needs to be reset/disabled. I'm using a fresh rom install so nothing else audio wise has been touched. One thing I'd try is if you have MultiRom then just install another rom so you have a fresh install to try this fix on.
Another option is to go back to that mixer_paths.xml file and lower the values of either the "handset-mic" or one of the speaker values. I found the solution above with a lot of trial and error seeing what's happening. If nothing changes undo what you did and try another spot. (Make Sure to reset your phone everytime)
Is it everyone you are calling says that?
Just a quick note to the OP: the microphone device "broadside" has been deprecated in the audio HAL as of Android 5.0
I have spent way more time with audio on the Nexus 5 than I probably should have, but believe me, there is no real solution to this problem that can come from this community. At the telephony level, audio is adjusted via proprietary vendor blobs. Also, telephony audio never reaches user space.
Having said that, I did manage to find a workaround that disables array processing while retaining echo and noise control. It involves a custom kernel, Tasker, shell scripts, and a whole lot of TLC. Certainly not recommended for the casual user...
chdloc said:
Just a quick note to the OP: the microphone device "broadside" has been deprecated in the audio HAL as of Android 5.0
I have spent way more time with audio on the Nexus 5 than I probably should have, but believe me, there is no real solution to this problem that can come from this community. At the telephony level, audio is adjusted via proprietary vendor blobs. Also, telephony audio never reaches user space.
Having said that, I did manage to find a workaround that disables array processing while retaining echo and noise control. It involves a custom kernel, Tasker, shell scripts, and a whole lot of TLC. Certainly not recommended for the casual user...
Click to expand...
Click to collapse
I'd be interested... I'm familiar with all those things. Please let me know
rootSU said:
I'd be interested... I'm familiar with all those things. Please let me know
Click to expand...
Click to collapse
Please send me a PM as I do not intend to release my workaround publicly.
It would cause a major support headache...
Thanks for the info I am still on kitkat so that's a good thing to note for sure.
Sent from my Nexus 5 using XDA Free mobile app
chdloc said:
Please send me a PM as I do not intend to release my workaround publicly.
It would cause a major support headache...
Click to expand...
Click to collapse
I can only send pms to people on my friends list. I'll send a request shortly, please accept it.
daScholar said:
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
You'll be making three changes so it looks like this
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
Click to expand...
Click to collapse
Be careful. What you have done here is change the microphone from the main one (close to the USB port)
to the auxiliary one (close to the headphone port) for the "handset-mic" device. Echo is almost inevitable due
to the close proximity between the microphone and earpiece. As you can see in the mixer file, speakerphone
mode deliberately switches from the main microphone to the auxiliary one for (likely) this very reason.
Also, I suspect that the "handset-mic" device is not even used during cellular telephony when beamforming (any dmic device) is enabled.
I cannot currently verify this suspicion as I have disabled beamforming altogether in my setup. But you can easily check by looking at the output of
Code:
logcat | grep audio_hw_primary
while making a cellular call.
Edit: Just checked, and no, by default the "handset-mic" device is not used while making cellular calls.
Note that dual-microphone processing is enabled only when making cellular calls. Skype, Hangouts, Viber, other VoIP apps, and other random voice recording apps (including Google Now) *will* use the "handset-mic" device and possibly choke when presented with your mixer_paths.xml edit.
Edit: Come to think of it, you guys having issues with low TX levels, try to lower your earpiece (loudspeaker playback) level as much as practical. Depending on what the dual-microphone algorithm (endfire) actually does, it is possible that TX levels are reduced due to the occurrence of double-talk in the presence of very high coupling between the earpiece loudspeaker and the auxiliary microphone. If my theory is correct, then your TX level may be modulated as a function of how loud the far-end is (regardless of whether it's speech or some other background signal).
chdloc said:
Be careful. What you have done here is change the microphone from the main one (close to the USB port)
to the auxiliary one (close to the headphone port) for the "handset-mic" device. Echo is almost inevitable due
to the close proximity between the microphone and earpiece. As you can see in the mixer file, speakerphone
mode deliberately switches from the main microphone to the auxiliary one for (likely) this very reason.
Also, I suspect that the "handset-mic" device is not even used during cellular telephony when beamforming (any dmic device) is enabled.
I cannot currently verify this suspicion as I have disabled beamforming altogether in my setup. But you can easily check by looking at the output of
Code:
logcat | grep audio_hw_primary
while making a cellular call.
Edit: Just checked, and no, by default the "handset-mic" device is not used while making cellular calls.
Note that dual-microphone processing is enabled only when making cellular calls. Skype, Hangouts, Viber, other VoIP apps, and other random voice recording apps (including Google Now) *will* use the "handset-mic" device and possibly choke when presented with your mixer_paths.xml edit.
Edit: Come to think of it, you guys having issues with low TX levels, try to lower your earpiece (loudspeaker playback) level as much as practical. Depending on what the dual-microphone algorithm (endfire) actually does, it is possible that TX levels are reduced due to the occurrence of double-talk in the presence of very high coupling between the earpiece loudspeaker and the auxiliary microphone. If my theory is correct, then your TX level may be modulated as a function of how loud the far-end is (regardless of whether it's speech or some other background signal).
Click to expand...
Click to collapse
Thanks for that info. The strange thing is now I've reverted the mixer file back to the original and I'm not getting all the background noise that I was before... Not quite sure why it's working now. I've still got broadside in my build.prop in place of endfire. Strange thing was is that the first time I had only made that change to the build.prop I still got tons of environment noise. I've only used this on Kitkat and looks like this won't work on lollipop. You we right about the other apps being choked out as I hadn't even thought to look into that, rarely using them. Thanks so much for all the input, being somewhat of a noob to this, all of the info you guys are giving is a treasure trove for me. Thanks.
Edit: Forgot to mention something specifically about that handset-mic device put back to default is causing an echo where I hear myself did you have any suggestions pertaining to that?
Edit: so I changed the ADC3 parts back to ACD1 and left the DEC4 change as is I'm now getting both VoIP and Calls clearly dunno how that's related to the echo though as you said there wasn't anything in the log pertaining to the handset-mic
daScholar said:
K So I've been trying to replicate it on my phone and can't seem too. Everyone I called said that things were just normal. Have you tried resolving the mic issue before by boosting the mic or speaker volume? Because maybe that's a factor and needs to be reset/disabled. I'm using a fresh rom install so nothing else audio wise has been touched. One thing I'd try is if you have MultiRom then just install another rom so you have a fresh install to try this fix on.
Another option is to go back to that mixer_paths.xml file and lower the values of either the "handset-mic" or one of the speaker values. I found the solution above with a lot of trial and error seeing what's happening. If nothing changes undo what you did and try another spot. (Make Sure to reset your phone everytime)
Is it everyone you are calling says that?
Click to expand...
Click to collapse
Thanks for giving it a try. Yeah, everyone is complaining about that issue. I find it wierd that you don´t have that, other users are complaining about the same echo,
Which ROM do you have? I have Cataclyst.
Thanks
daScholar said:
Not quite sure why it's working now. I've still got broadside in my build.prop in place of endfire. Strange thing was is that the first time I had only made that change to the build.prop I still got tons of environment noise.
Click to expand...
Click to collapse
What you are seeing may be related to what I have observed in my own testing several months ago. Broadside seems to be working, but I noticed it being a lot more finicky than endfire in that it would attenuate the TX much more frequently than endfire would. Plus, the first call after a reboot was always bad (echo and noise). Toggling speakerphone fixed that for the remainder of the system uptime. Not sure what is up with that, but I think it is related to calibration. As I said before, the broadside setup has been removed from the audio HAL as of Android 5.0
Edit: Forgot to mention something specifically about that handset-mic device put back to default is causing an echo where I hear myself did you have any suggestions pertaining to that?
Click to expand...
Click to collapse
Do you hear yourself with a delay or does it sound pretty instantaneous?
If it is instantaneous, then what you are hearing is called sidetone. Every handset feeds a low-level copy of the microphone signal back to the loudspeaker in order to make up for the sound blocked by the device being pressed to your ear. The idea is to make a telephone conversation sound more like a natural face-to-face conversation where you can hear yourself clearly without any obstructions that cover your ear. Pretty clever if you ask me.
In your case the sidetone may be too loud.
If you hear yourself with a delay, then the sound is being reflected by either the far-end (acoustic echo) or by the network itself (network echo).
Do you hear yourself when you revert to stock settings throughout your system?
Edit: so I changed the ADC3 parts back to ACD1 and left the DEC4 change as is I'm now getting both VoIP and Calls clearly dunno how that's related to the echo though as you said there wasn't anything in the log pertaining to the handset-mic
Click to expand...
Click to collapse
So how does your mixer_paths.xml file look like? From what you are writing it is not quite clear what you did.
So I've installed the stock 4.4.2 and changed just the build.prop to broadside and it seems to be working thanks for the advice. No changes now to the mixer file.
Sent from my Nexus 5 using XDA Free mobile app
Fixed my phone
I followed both steps, and made tests after each of them.
Step 1 - Fixes the microphone problem, but there are still fade-outs in the voice and possible echoes in noisy conditions.
Step 2 - Resolved the echoes and provides crystal clear clarity.

Microphone issues

I need some help with diagnosing this. Something is wrong with the microphone(s) on my device and I can't figure out what to try. I have searched and I have tried the trick with applying pressure on the flex-cable. It does not work.
This is what I see:
Regular phone call = the person on the other side hears nothing. Just silence.
Speakerphone = Everything is OK!
Headphones = Everything is OK!
This points me to a defective microphone at the bottom.
BUT:
Voice recording app (Easy Voice Recorder) = Just garbled noise / hissing. If I speak or snap my fingers, nothing is picked up.
Video recording through default camera app = The same as above, just noise/hissing. Nothing is picked up.
So, what microphone is used for what? What can I try to isolate the error?
Anyone?
I have exactly the identical problem. When I dial out I can hear the other person but they hear nothing. Like you the voice recorder works. And if speaker is on they can hear me. Like you, I researched the problem and applied the pressure trick but it did nothing. This is really weird. I didn't drop the phone or anything.
Sounds like a software problem to me.
I hope one of the experts helps us.
maybeme2 said:
I have exactly the identical problem. When I dial out I can hear the other person but they hear nothing. Like you the voice recorder works. And if speaker is on they can hear me. Like you, I researched the problem and applied the pressure trick but it did nothing. This is really weird. I didn't drop the phone or anything.
Sounds like a software problem to me.
I hope one of the experts helps us.
Click to expand...
Click to collapse
I have ordered a new mic/charger-flex and am going to replace it. I don't think that is the reason for this though...
That sucks. I found a thread which describes the same issue and in this case, the issue was hardware - a connector on the motherboard. Here's the thread link, hope it helps: http://forum.xda-developers.com/google-nexus-5/help/nexus-5-microphone-speakerphone-t3043151
jadajada said:
I have ordered a new mic/charger-flex and am going to replace it. I don't think that is the reason for this though...
Click to expand...
Click to collapse
What is a mic/charger-flex and where did you order it from? Is it the mike cable?
Please report back when you replace it so I know whether I need to do the same.
Thanks.
android_8 said:
That sucks. I found a thread which describes the same issue and in this case, the issue was hardware - a connector on the motherboard. Here's the thread link, hope it helps: http://forum.xda-developers.com/google-nexus-5/help/nexus-5-microphone-speakerphone-t3043151
Click to expand...
Click to collapse
I know about that problem, and I have tried that. It does not help on my phone.
maybeme2 said:
What is a mic/charger-flex and where did you order it from? Is it the mike cable?
Please report back when you replace it so I know whether I need to do the same.
Thanks.
Click to expand...
Click to collapse
It's this part.
It contains a new microphone, but since the phone behaves as it does, I don't really think it's a faulty microphone. But I'll update this post when the part arrives.
Thank you.
I don't think it is a hardware issue. Otherwise why would the *same* Mike work when we turn the speaker on or plug in earphones?
I think it is either software or some installed app conflicting in some way. But, what do I know?
Same issue
I do the same. it is not possible that so many instruments have the same problem and no solution to it. I tried everything possible. pressure on the flex cable connector does not help in this case. Various changes to the file buildprop not respond. I do not understand what the problem may be. u call this error manifests itself sporadically, but still persists. until this thing is super device ...
jadajada said:
I need some help with diagnosing this. Something is wrong with the microphone(s) on my device and I can't figure out what to try. I have searched and I have tried the trick with applying pressure on the flex-cable. It does not work.
This is what I see:
Regular phone call = the person on the other side hears nothing. Just silence.
Speakerphone = Everything is OK!
Headphones = Everything is OK!
This points me to a defective microphone at the bottom.
BUT:
Voice recording app (Easy Voice Recorder) = Just garbled noise / hissing. If I speak or snap my fingers, nothing is picked up.
Video recording through default camera app = The same as above, just noise/hissing. Nothing is picked up.
So, what microphone is used for what? What can I try to isolate the error?
Click to expand...
Click to collapse
Unless you or some root app you have installed messed with the audio mixer (file: /system/etc/mixer_paths.xml) or audio HAL (/system/lib/hw/audio.primary.msm8974.so) this is most likely a hardware problem. Which microphone is used depends on the application that requests it. There are two microphones on the Nexus 5, the main microphone is the one on the bottom and there is a second one near the headphone jack on the top.
In the handset telephony use-case, actually both microphones are being used. However, the main microphone picks up your voice while the other microphone is being used to cancel background noise only. When you switch to speakerphone, the "pickup" microphone switches to the one on top (for a good reason). The same happens when you plug in a pair of headphones without an inline microphone.
Most if not all other use-cases (apps) use the bottom microphone for audio recording.
A software problem can be ruled out by re-installing one of Google's stock builds.
Software test.
I did a partial software test. My phone is rooted so I made a nandroid backup of the present and then restored an earlier nandroid from 2 months ago before all these troubles started. After the restore, the problem was unchanged. Nobody can hear me when I call but they can hear me fine when I put the speaker mode on.
So, sadly, you are correct. Now we have to find out what needs to be replaced because the "phone" is useless this way. Other users have said replacing the microphone and cable did not help (hopefully jadajada's experience will be different).
Looking for mechanical causes, my bottom mike grill is quite dirty and may be blocked. Is there a safe way to clean it? Compressed air? Thin staple?
maybeme2 said:
Software test.
I did a partial software test. My phone is rooted so I made a nandroid backup of the present and then restored an earlier nandroid from 2 months ago before all these troubles started. After the restore, the problem was unchanged. Nobody can hear me when I call but they can hear me fine when I put the speaker mode on.
So, sadly, you are correct. Now we have to find out what needs to be replaced because the "phone" is useless this way. Other users have said replacing the microphone and cable did not help (hopefully jadajada's experience will be different).
Looking for mechanical causes, my bottom mike grill is quite dirty and may be blocked. Is there a safe way to clean it? Compressed air? Thin staple?
Click to expand...
Click to collapse
I also think that the problem is in the hardware, but I fear that somewhere on the main board, and it does not pay to fix it. Unfortunately. Almost I wonder if Google wants this old devices, so we had to buy a new series of Nexus. Joke . Otherwise, the phone I had disassembled and microphone has good coverage, therefore, was beautifully clean and free of dust and dirt.
In that case, what to replace the phone with? Another nexus 5 or a different phone? What are you going to do?
situsacek said:
I also think that the problem is in the hardware, but I fear that somewhere on the main board, and it does not pay to fix it.
Click to expand...
Click to collapse
Situsacek, you seem to know about these things. May I ask why you think the problem is on the main board? Is there a tool to test and find out other than replacing the microphone and flex cable to see if that fixes it or not?
How difficult is it to replace the microphone and flex cable? I am resigned to having to buy a new phone but am checking out my options.
maybeme2 said:
Situsacek, you seem to know about these things. May I ask why you think the problem is on the main board? Is there a tool to test and find out other than replacing the microphone and flex cable to see if that fixes it or not?
How difficult is it to replace the microphone and flex cable? I am resigned to having to buy a new phone but am checking out my options.
Click to expand...
Click to collapse
I have read a lot of discussion on this topic and this problem affects many devices. However, nobody knows the answer to this problem. No one knows the complete solution. For me, it manifests at 5/1 call, for a camera recording the whole time not sound correctly. Replace flex cable is not hard. Does not cost a lot of money on Ebay. But I do not think it will solve this thing, somebody already tried and always the same. I do not want to invest money, though it is not part of the solution. I am very disappointed by this, and I do not want the product from LG never more!
---------- Post added at 06:21 PM ---------- Previous post was at 05:32 PM ----------
situsacek said:
I have read a lot of discussion on this topic and this problem affects many devices. However, nobody knows the answer to this problem. No one knows the complete solution. For me, it manifests at 5/1 call, for a camera recording the whole time not sound correctly. Replace flex cable is not hard. Does not cost a lot of money on Ebay. But I do not think it will solve this thing, somebody already tried and always the same. I do not want to invest money, though it is not part of the solution. I am very disappointed by this, and I do not want the product from LG never more!
Click to expand...
Click to collapse
Here is a link to many topics. For me, nothing works out there.
https://m.reddit.com/r/Nexus5/comments/2ztw83/how_to_fix_microphone_issues/?sort=top
Sent from my ALE-L21 using XDA-Developers mobile app
---------- Post added at 07:18 PM ---------- Previous post was at 06:21 PM ----------
It was a kind signed the petition. Solves it for over two years. I recommend buying another mobile phone. There is no chance of redress. Thanks
https://www.change.org/p/google-fix-microphone-issues-on-nexus-5-phones#share
Sent from my ALE-L21 using XDA-Developers mobile app
For folks with (at least) a custom recovery (better: rooted), there is a way to make the camcorder and other audio recording devices use the auxiliary microphone (the one on top) instead of the main microphone (the one on the bottom). I'm not sure what can be done in the telephony (handset) use-case, though, without introducing a lot of noise, echo, and low speech levels for the far-end.
The "fix" involves modifying one file (/system/etc/mixer_paths.xml); PM me if you are interested in giving this approach a shot.
chdloc said:
For folks with (at least) a custom recovery (better: rooted), there is a way to make the camcorder and other audio recording devices use the auxiliary microphone (the one on top) instead of the main microphone (the one on the bottom). I'm not sure what can be done in the telephony (handset) use-case, though, without introducing a lot of noise, echo, and low speech levels for the far-end.
The "fix" involves modifying one file (/system/etc/mixer_paths.xml); PM me if you are interested in giving this approach a shot.
Click to expand...
Click to collapse
Hi, I also tried, but without any significant response. Could you give your instructions, so I can compare? Thank you
Sent from my ALE-L21 using XDA-Developers mobile app
situsacek said:
Hi, I also tried, but without any significant response. Could you give your instructions, so I can compare? Thank you
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
OK, I'm assuming that the main microphone (bottom) is dead and that the auxiliary microphone (top, near headphone jack) is still operational.
To use the auxiliary microphone for both camcorder and (I'm guessing) most other audio recording apps, edit your /system/etc/mixer_paths.xml file (e.g. via a file explorer), search for the following entry:
Code:
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
and replace with
Code:
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
After saving the modified file (make backup of original file first!), make sure that the permissions are set to 644 (rw-r--r--), and reboot.
The next step is handset telephony. A very quick and likely very poorly performing solution would be to again simply use the top microphone. You will need the same modification as above. In addition, you need to disable dual-microphone support by editing your build.prop file:
After making a proper backup, replace
Code:
persist.audio.dualmic.config=endfire
with
Code:
persist.audio.dualmic.config=none
check the permissions (644), and reboot. Be advised that the microphone is now further away from your mouth so the TX level will be low. You could crank up the gain by increasing "ADC3 Volume" (permissible values are between 0 and 20) and/or "DEC4 Volume" (permissible values are between 0 and 124), followed by a reboot. Also keep in mind that echo cancellation and noise control will be turned off, so be prepared for a lot of complaints.
chdloc said:
OK, I'm assuming that the main microphone (bottom) is dead and that the auxiliary microphone (top, near headphone jack) is still operational.
To use the auxiliary microphone for both camcorder and (I'm guessing) most other audio recording apps, edit your /system/etc/mixer_paths.xml file (e.g. via a file explorer), search for the following entry:
Code:
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
and replace with
Code:
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
After saving the modified file (make backup of original file first!), make sure that the permissions are set to 644 (rw-r--r--), and reboot.
The next step is handset telephony. A very quick and likely very poorly performing solution would be to again simply use the top microphone. You will need the same modification as above. In addition, you need to disable dual-microphone support by editing your build.prop file:
After making a proper backup, replace
Code:
persist.audio.dualmic.config=endfire
with
Code:
persist.audio.dualmic.config=none
check the permissions (644), and reboot. Be advised that the microphone is now further away from your mouth so the TX level will be low. You could crank up the gain by increasing "ADC3 Volume" (permissible values are between 0 and 20) and/or "DEC4 Volume" (permissible values are between 0 and 124), followed by a reboot. Also keep in mind that echo cancellation and noise control will be turned off, so be prepared for a lot of complaints.
Click to expand...
Click to collapse
Hi, thanks for the nice described instructions. Yes it's the same procedure as I found and tried. Unfortunately, the other side is exposed to a strong echo. Pity that no fixed correction, not a precise explanation of why the problem arose at our facilities. Answer seemed to die along with the nexus 5
situsacek said:
Hi, thanks for the nice described instructions. Yes it's the same procedure as I found and tried. Unfortunately, the other side is exposed to a strong echo. Pity that no fixed correction, not a precise explanation of why the problem arose at our facilities. Answer seemed to die along with the nexus 5
Click to expand...
Click to collapse
Actually, I have dual-microphone processing disabled on my phone as well (but it is for a different reason) and I'm exclusively using the main microphone for the handset telephony use-case. I did succeed in enabling echo and noise control, but
I'm not sure whether it would work with the auxiliary microphone as well
the solution I came up with is, unfortunately, way too complicated and convoluted to share with the community (custom kernel, Tasker integration, and most importantly, individually adapted application of audio calibration data)
With the above modifications of mixer_paths.xml, using the auxiliary microphone for virtually any other purpose should work OK, though.

[ROOT][MOD] Xperia X Performance Volume Boost for stock config

What's bugging me about my brand new Xperia X? The overall low volume.
These simple tweaks, this mod if you may, simply modifies a few lines from the stock audio config files which, after a reboot make your speakers louder and headphones, a bit too loud (but I didn't hear anyone complaining about Xperias for being too loud lol)!
It's for rooted users only and for me it sounds a lot better than using (possibly) unstable sound mods instead of simply adjusting the volume on some pretty decent stock drivers.
***Tested on X Performance running Nougat. I've also got my hands on Xperia X Performance files which are pretty straight FWD see attach. Thanks @bkk99213 for testing and for the file!***​​​
Make a backup first or if you didn't simply put the original values back (82 for speaker lines and 76 for headphones). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal.
Features:
Louder Stereo Speaker sound system wide;
Louder Headphone sound;
Stereo Voice-Speaker call - NOT TESTED! Keep a backup and please let me know if it's working;
Customizable as you see fit! Just stick to the already explored options.
Conflict-free tweaks - no additional files added, no nothing, just some modified lines - you can trust it .
Installation:
By flashing the .zip on recovery or with FLASHFIRE [press the red "+" button > Flash ZIP or OTA > leave the options as they are and Click on the "done arrow thingy".
Manually copying the file to /etc - DO NOT forget to set the right permissions (RW R R). Please take a look over the Permissions.png screenshot in case you don't know how to set them - you long click on the file, then go to properties and you'll see the permissions button.
Do it yourself - there's a guide down bellow.
In the download section you'll find:
>>Flashable! already modified "Xperia X P Getting Loud.zip" with: SPEAKER values - 84 for both RX7/RX8 and HEADPHONE values - 84 for RX1/RX2.
>>Flashable! Stock Values - it's the stock file unmodified.
>>NON-Flashable! zips - there you have 1 zip for the modified file and the stock one so you can place it manually via ES file explorer or the explorer of your choosing.
**And some screenshots that are pretty self explanatory showing you what modifications need to be made if you want to do it yourself.
DIY Guide (using ES File Explorer):
You're probably acquainted with ES File Explorer so it should be pretty simple. The modifications I made were done with ES (it has an built-in editor).
1. Make sure the Root Explorer toggle is On - it's located in the Tools tab as you swipe the left side of the screen;
2. Go to the root of the files where you'll see folders such as "data; dev; firmware; storage; system; etc" go to "etc" folder and scroll down till you see the mixer_paths files;
3. Open "mixer_paths_tasha" and at the prompt, select ES Note Editor - it's a huge file so tap right above the navigation bar! A bar with percentage should show up - it will help you navigate through the file;
4.1 Speakers - Get to 45% of the file where you should see the path for "speaker", ctrl name RX7 and RX8 with their stock values - modify the values as you please but please don't go over 85 - sound will be too distorted;
4.2 Headphones - Go to 57% of the file - you'll see "headphones" path - ctrl name RX1 and RX2 - modify the values but anything more than 84 might be too much.
5. Save and reboot. If you choose to modify the files on a PC make sure to set the permissions when you put the file back. Otherwise bootloops might occur.
*Stereo Voice-Speaker call is untested but in theory it should work, as it does on my Xperia X. I added the second channel to the routing - screenshot bellow.
**Stereo Ringtone-Speaker - WIP. I'm currently stuck so feel free to jump in and notify me via PM.
***Internal players such as Music, Video, ringing and notification will try to compensate the sound so it might not be as loud as expected. But try a youtube video and you'll notice the difference.
***Do not attempt to modify something else unless you know what you're doing - on that note, make a backup first. In my first attempts I lost sound device wide with FC for sound effects apk.
***Do not go over the values I imputed (84 for speaker and 85 for headphone) - apart from the distortions that will occur because of the louder volume the internal DAC might not be able to reproduce the sound at such intensity - in my tests one of the speakers was shutting down. Again, no harm can come to your device but don't push it.
***I saw a lot of sections for hi-res headphones, Noise cancelling, etc - I did not explore those options because I don't have the means to test it. Any input and contributions from you guys are most welcome.
These files control the volume output for digital / analog which means it's a non-intrusive way to change volumes with no harm for the device. If volume limit exceeds the capacity of the speakers it will sound bad but there is no chance for physical damage.
I'm coming from a highly modded Xperia Z (that phone saw some torture) which made use of the earpiece speaker for stereo, and even if the speakers aren't designed for that output they are louder than the X which packs pretty decent speakers. This is the mod that gave me the idea: http://forum.xda-developers.com/xperia-z/themes-apps/mod-stereomod-xz-v1-1-t2835995
Click to expand...
Click to collapse
Also check this out. It's an xposed module that will disable the annoying thermal warning for the camera. No more functions disabled just because phone got a bit over skin temperature lol. http://forum.xda-developers.com/cro...-camera-xperia-thermal-disabler-v1-0-t3455087
Cheers and happy new year!
Cannot find 9335
In Xperia X Performance @7.0nougat
I can't find the file in etc folder.
bkk99213 said:
In Xperia X Performance @7.0nougat
I can't find the file in etc folder.
Click to expand...
Click to collapse
Yes that's why it's a guide-ish. Files are different still... Traditionally with Sony, you should aim for the largest file. In your case the right file should be "...tasha" file. If you want you can send it to me or try it yourself. Keep a backup. I had no bootloops (so there's nothing to fear) by modifying what I shouldn't (and i had a dozen of tries). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal. PM me. I'm curious about the file and results.
Sebi673 said:
Yes that's why it's a guide-ish. Files are different still... Traditionally with Sony, you should aim for the largest file. In your case the right file should be "...tasha" file. If you want you can send it to me or try it yourself. Keep a backup. I had no bootloops (so there's nothing to fear) by modifying what I shouldn't (and i had a dozen of tries). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal. PM me. I'm curious about the file and results.
Click to expand...
Click to collapse
Here you go and thanks a lot. I know mi 4i can use same method to make the sound loudly. So I also interest your GUIDE
But PM cannot attach file. So I use REPLY..:laugh:
bkk99213 said:
Here you go and thanks a lot. I know mi 4i can use same method to make the sound loudly. So I also interest your GUIDE
But PM cannot attach file. So I use REPLY..:laugh:
Click to expand...
Click to collapse
It's simpler than it was on my X. I'll be back with an update. But I need my coffee first ))
Tested. It work. Whatsapp's Ringtone is obviously but some notification sound get distorted.
So I don't know the setting(84) is correct or not.
bkk99213 said:
Tested. It work. Whatsapp's Ringtone is obviously but some notification sound get distorted.
So I don't know the setting(84) is correct or not.
Click to expand...
Click to collapse
That's device specific. On my X 84 is just the right amount. I'll make another zip with 83 values. That's only one step over stock.
At least headphones are loud and distortion free. I noticed some good amplification on those. On my old Xperia Z I could never have such a powerful sound without signal cutting off on one of the channels.
Correction. The file had 85 for speakers. I'll put new zips with 84 soon.
---Files Updated---
Sebi673 said:
That's device specific. On my X 84 is just the right amount. I'll make another zip with 83 values. That's only one step over stock.
At least headphones are loud and distortion free. I noticed some good amplification on those. On my old Xperia Z I could never have such a powerful sound without signal cutting off on one of the channels.
Correction. The file had 85 for speakers. I'll put new zips with 84 soon.
---Files Updated---
Click to expand...
Click to collapse
84.perfect.:good::good::good:
bkk99213 said:
84.perfect.:good::good::good:
Click to expand...
Click to collapse
So glad I was able to help. You're welcome!
After tested 5 days, I get some trouble that my phone call's volume is lower than before.
But the settings should be no change for phone call, right?
* I have not much phone call, so I can't find this problem @ 1st day.
Thanks for your help again.
Does anyone know which xml would need to be modified for this to work on the X Compact?
agentsmith988 said:
Does anyone know which xml would need to be modified for this to work on the X Compact?
Click to expand...
Click to collapse
It's usually the largest one. So you should look for that. And then adapt this method to the X. Speakers might be with a different name buy you'll get it
Sent from my Xperia X using XDA Labs
Sebi673 said:
It's usually the largest one. So you should look for that. And then adapt this method to the X. Speakers might be with a different name buy you'll get it
Sent from my Xperia X using XDA Labs
Click to expand...
Click to collapse
Looks like it's mixer_paths_wcd9335.xml at 148.6KB. Both RX7 and RX8 are at 82 stock (under path name="wsa-speaker"). How much past the original values are you pushing these things, 2-3? Do these values boost the in-call speakerphone volume as well?
Unrelated, does anyone know if this XML has anything that could be modified to get get both speakers working when using the in-call speakerphone?
agentsmith988 said:
Looks like it's mixer_paths_wcd9335.xml at 148.6KB. Both RX7 and RX8 are at 82 stock (under path name="wsa-speaker"). How much past the original values are you pushing these things, 2-3? Do these values boost the in-call speakerphone volume as well?
Unrelated, does anyone know if this XML has anything that could be modified to get get both speakers working when using the in-call speakerphone?
Click to expand...
Click to collapse
I am pretty sure both X and X compact use the same HW - it seems to be the same file and wsa thingy - check my thread for X - https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691
it is possible to modify the call speaker - and there are more things to add like stereo for that one. But going over default for one speaker can get voice distorted. And if stereo is applied there, than microphone quality will drop a lot. There's a reason why the call speaker is mono - so that the mic on the other side can catch most of the sounds. At some point maybe I'll look for a hook for stereo.
bkk99213 said:
After tested 5 days, I get some trouble that my phone call's volume is lower than before.
But the settings should be no change for phone call, right?
* I have not much phone call, so I can't find this problem @ 1st day.
Thanks for your help again.
Click to expand...
Click to collapse
These modifications can't affect the phone call volume since I never touched those. And I never had such issues. But I'll keep my ear close to it )
Sebi673 said:
I am pretty sure both X and X compact use the same HW - it seems to be the same file and wsa thingy - check my thread for X - https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691
it is possible to modify the call speaker - and there are more things to add like stereo for that one. But going over default for one speaker can get voice distorted. And if stereo is applied there, than microphone quality will drop a lot. There's a reason why the call speaker is mono - so that the mic on the other side can catch most of the sounds. At some point maybe I'll look for a hook for stereo.
Click to expand...
Click to collapse
Awesome! Bumped the speaker and headphone values up to 86 and 85 and all I can say is wow! Made a huge difference!
Do you know which lines specifically control the in-call speaker volume? Makes sense about the mono audio/mic pick-up, however it'd be great to at least increase the volume.
agentsmith988 said:
Awesome! Bumped the speaker and headphone values up to 86 and 85 and all I can say is wow! Made a huge difference!
Do you know which lines specifically control the in-call speaker volume? Makes sense about the mono audio/mic pick-up, however it'd be great to at least increase the volume.
Click to expand...
Click to collapse
Adding stereo speaker to phone call is a bit tricky as far as I remember, especially without a recovery. Hopefully I'll have some spare time to look over it or at least identify call routing.
Sent from my Xperia X using XDA Labs
Sebi673 said:
Adding stereo speaker to phone call is a bit tricky as far as I remember, especially without a recovery. Hopefully I'll have some spare time to look over it or at least identify call routing.
Sent from my Xperia X using XDA Labs
Click to expand...
Click to collapse
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
agentsmith988 said:
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
Click to expand...
Click to collapse
yup, that should be it. I'm advocating for the stereo because stock values already distort a lot on speaker call
[Update] - stereo call speaker now working. Testing and applying method for ringtone speaker aswell
agentsmith988 said:
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
Click to expand...
Click to collapse
[UPDATE] Please check the updated thread for Xperia X. For you, modifications should be easier to learn from there. Stereo Voice-Speaker added - no need for volume boost. https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691

Question Microphone issues poll. [ Please participate :) ]

Hi, I've noticed that when recording voice notes on instant messaging apps such as WhatsApp or Telegram, the microphone being used for that is the one on the top (near the selfie cameras) instead of the one on the bottom (next to the USB port) and it records in such a bad quality. This issue extends to all apps, including Google voice search and Google assistant.
I've used this app (https://play.google.com/store/apps/details?id=org.greh.mictest) to test the microphone and it only works with the bottom microphone only if you set it to MIC and Stereo, every other setting just uses the top microphone. Also, recording video with the stock camera (using audio zoom or not) records audio with just the top mic too.
If anyone could test their device (either on stock or custom ROM, it doesn't matter as they both use the same mixer path and audio platform info) and answer the poll either with a yes or a no I would be very grateful.
I've factory reset the phone, checked apps that may be conflicting, etc and it's driving me nuts. Motorola support is just suggesting me to replace the phone, but I'm pretty sure this is a software issue.
I'm on the latest stock update if that matters.
EDIT: After more testing on camcorder, stereo recording works fine, but when choosing mono recording, it records sound with the top mic. This done with OpenCamera. Choosing different input options from open camera shows that when you select "Default input" in mono mode, it defaults to the top mic instead of the bottom one.
I am on lineage os 18.1 currently and honestly had no answer for the poor audio quality of my VNs in IM apps... I even developed a practice of asking about my voice clarity during phone calls. Now I understand...
I am going to upgrade to 19.1. If I find a fix or workaround, I will report back here.
I was just doing a little research. Maybe someone can compile an apk or a flashable zip to iron out this bug if Motorola doesn't step on it...
It appears that the "android.permission.RECORD_AUDIO" for IM apps is linked to "MediaRecorder.AudioSource.CAMCORDER" when it should be linked to "MediaRecorder.AudioSource.MIC" or vice-versa.
KnightTheWayne said:
I was just doing a little research. Maybe someone can compile an apk or a flashable zip to iron out this bug if Motorola doesn't step on it...
It appears that the "android.permission.RECORD_AUDIO" for IM apps is linked to "MediaRecorder.AudioSource.CAMCORDER" when it should be linked to "MediaRecorder.AudioSource.MIC" or vice-versa.
Click to expand...
Click to collapse
Nice find, I was taking a look at the stock mixer_paths.xml and the build.prop file under system_ext and found two things, for mono recordings, the mixer_paths.xml redirects all voice recording requests to the "speaker mic" which is set to record from microphone 2 (the top microphone from my testing) and the build.prop file has noise cancelling disabled for speaker and voice recording, if noise cancelling was active, the phone would use the main mic and use the top one for noise cancelling.
I will report this again to Motorola (the first time they just told me to get the phone RMA'd lmao, now I have mor people to back up my claims).
KnightTheWayne said:
I was just doing a little research. Maybe someone can compile an apk or a flashable zip to iron out this bug if Motorola doesn't step on it...
It appears that the "android.permission.RECORD_AUDIO" for IM apps is linked to "MediaRecorder.AudioSource.CAMCORDER" when it should be linked to "MediaRecorder.AudioSource.MIC" or vice-versa.
Click to expand...
Click to collapse
Hey, here are the things I think should be changed for the issue to be resolved (either try one or the other, not the two at the same time so we can see which one of these fixes the issue, if they do at all):
1) In the file '/system_ext/etc/build.prop':
In lines 37 and 38 we can see that noise cancelling is disabled for voice recording and speaker mode, which means that instead of using the bottom mic and the top mic as the noise mic, it's just using one mic, and it's using the wrong one (the top one), this values should be set to true.
2) In the file '/vendor/etc/mixer_paths.xml':
At lines 2177 through 2187 we can see each mic, 'mic1', 'mic2' and 'mic3' being set to 'amic1', 'amic3' and 'amic4' respectively. 'mic1' is the bottom mic, 'mic2' is the top mic and 'mic3' is the audio zoom mic.
Then, at line 2234 we can see that 'speaker-mic' is being set to 'amic3' ('mic2' according to the previous setting) which makes no sense as 'amic3' is the top mic, this should be set to 'amic3'.
I can't try this because my phone is still locked, but if you're rooted you could try this and see if they do work.
blckbear said:
Hey, here are the things I think should be changed for the issue to be resolved (either try one or the other, not the two at the same time so we can see which one of these fixes the issue, if they do at all):
1) In the file '/system_ext/etc/build.prop':
In lines 37 and 38 we can see that noise cancelling is disabled for voice recording and speaker mode, which means that instead of using the bottom mic and the top mic as the noise mic, it's just using one mic, and it's using the wrong one (the top one), this values should be set to true.
2) In the file '/vendor/etc/mixer_paths.xml':
At lines 2177 through 2187 we can see each mic, 'mic1', 'mic2' and 'mic3' being set to 'amic1', 'amic3' and 'amic4' respectively. 'mic1' is the bottom mic, 'mic2' is the top mic and 'mic3' is the audio zoom mic.
Then, at line 2234 we can see that 'speaker-mic' is being set to 'amic3' ('mic2' according to the previous setting) which makes no sense as 'amic3' is the top mic, this should be set to 'amic3'.
I can't try this because my phone is still locked, but if you're rooted you could try this and see if they do work.
Click to expand...
Click to collapse
On any custom ROM I have noise cancelling issues: my caller always hears their own voice when I'm in speaker mode.
So I tried to apply the changes you mentioned on LineageOS 19.1:
1) Cannot be done because lines 37-38 are missing
2) I did it by setting amic1 and then amic4, with a restart each time. But it looks like I broke my phone by doing this, as now calling apps just crash or stop working properly. Do I have to do anything else besides just modifying and restarting the phone? Even after setting it back to amic3, calling apps still crashed.
Edit: I had to update LineageOS to finally fix the problems.
In any case, can you share your stock build.prop and mixer_paths?
Demax55 said:
On any custom ROM I have noise cancelling issues: my caller always hears their own voice when I'm in speaker mode.
So I tried to apply the changes you mentioned on LineageOS 19.1:
1) Cannot be done because lines 37-38 are missing
2) I did it by setting amic1 and then amic4, with a restart each time. But it looks like I broke my phone by doing this, as now calling apps just crash or stop working properly. Do I have to do anything else besides just modifying and restarting the phone? Even after setting it back to amic3, calling apps still crashed.
Edit: I had to update LineageOS to finally fix the problems.
In any case, can you share your stock build.prop and mixer_paths?
Click to expand...
Click to collapse
the mixer paths file is the same on stock and custom roms, the build prop is auto generated so they're different, it wouldn't be a good idea to use the stock build prop in lineage. It's a pitty that the changes made stuff worse. the only thing that comes to mind is to check under /vendor/etc and system/etc for the other build prop files and see which ones have the settings for noise cancelling. I'll extract them from lineage and see if there's anything I can suggest. Thanks for testing tho
Demax55 said:
On any custom ROM I have noise cancelling issues: my caller always hears their own voice when I'm in speaker mode.
So I tried to apply the changes you mentioned on LineageOS 19.1:
1) Cannot be done because lines 37-38 are missing
2) I did it by setting amic1 and then amic4, with a restart each time. But it looks like I broke my phone by doing this, as now calling apps just crash or stop working properly. Do I have to do anything else besides just modifying and restarting the phone? Even after setting it back to amic3, calling apps still crashed.
Edit: I had to update LineageOS to finally fix the problems.
In any case, can you share your stock build.prop and mixer_paths?
Click to expand...
Click to collapse
For the issue you say, you may be able to fix it by changing some stuff inside /vendor/build.prop
In line 134 change "persist.vendor.audio.voicecall.speaker.stereo" from true to false. If this doesn't fix your issue when calling using speaker mode then I'm out of ideas sadly.
blckbear said:
Hey, here are the things I think should be changed for the issue to be resolved (either try one or the other, not the two at the same time so we can see which one of these fixes the issue, if they do at all):
1) In the file '/system_ext/etc/build.prop':
In lines 37 and 38 we can see that noise cancelling is disabled for voice recording and speaker mode, which means that instead of using the bottom mic and the top mic as the noise mic, it's just using one mic, and it's using the wrong one (the top one), this values should be set to true.
2) In the file '/vendor/etc/mixer_paths.xml':
At lines 2177 through 2187 we can see each mic, 'mic1', 'mic2' and 'mic3' being set to 'amic1', 'amic3' and 'amic4' respectively. 'mic1' is the bottom mic, 'mic2' is the top mic and 'mic3' is the audio zoom mic.
Then, at line 2234 we can see that 'speaker-mic' is being set to 'amic3' ('mic2' according to the previous setting) which makes no sense as 'amic3' is the top mic, this should be set to 'amic3'.
I can't try this because my phone is still locked, but if you're rooted you could try this and see if they do work.
Click to expand...
Click to collapse
Hi @blckbear ;
Could you share the exact lines (the content) in /vendor/etc/mixer_paths.xml and /system_ext/etc/build.prop which should be tested? I am on LOS20 and could do the check for you by pulling/pushing the files and changing the lines you are talking about, though on LOS20 it is definitely not /system_ext/etc/build.prop ;-)
blckbear said:
For the issue you say, you may be able to fix it by changing some stuff inside /vendor/build.prop
In line 134 change "persist.vendor.audio.voicecall.speaker.stereo" from true to false. If this doesn't fix your issue when calling using speaker mode then I'm out of ideas sadly.
Click to expand...
Click to collapse
Thanks for the help, but unluckily changing line 134 from true to false did not fix the issue...
blckbear said:
Hey, here are the things I think should be changed for the issue to be resolved (either try one or the other, not the two at the same time so we can see which one of these fixes the issue, if they do at all):
1) In the file '/system_ext/etc/build.prop':
In lines 37 and 38 we can see that noise cancelling is disabled for voice recording and speaker mode, which means that instead of using the bottom mic and the top mic as the noise mic, it's just using one mic, and it's using the wrong one (the top one), this values should be set to true.
2) In the file '/vendor/etc/mixer_paths.xml':
At lines 2177 through 2187 we can see each mic, 'mic1', 'mic2' and 'mic3' being set to 'amic1', 'amic3' and 'amic4' respectively. 'mic1' is the bottom mic, 'mic2' is the top mic and 'mic3' is the audio zoom mic.
Then, at line 2234 we can see that 'speaker-mic' is being set to 'amic3' ('mic2' according to the previous setting) which makes no sense as 'amic3' is the top mic, this should be set to 'amic3'.
I can't try this because my phone is still locked, but if you're rooted you could try this and see if they do work.
Click to expand...
Click to collapse
Using LOS20 build and changed the lines as you mentioned:
In /system/build.prop:
Code:
persist.vendor.audio.voicecall.speaker.stereo=false
In /system/vendor/etc/mxer_paths.xml line 3018:
Code:
<path name="amic1" />
The complete part:
Code:
<path name="speaker-mic">
<path name="amic1" />
</path>
Testing the coming days, will let you know the results.
Moto-J said:
Using LOS20 build and changed the lines as you mentioned:
In /system/build.prop:
Code:
persist.vendor.audio.voicecall.speaker.stereo=false
In /system/vendor/etc/mxer_paths.xml line 3018:
Code:
<path name="amic1" />
The complete part:
Code:
<path name="speaker-mic">
<path name="amic1" />
</path>
Testing the coming days, will let you know the results.
Click to expand...
Click to collapse
Unfortunately people on the phone are complaining about echo every time when on loudspeaker.
So, back to default settings.. ;-)

Categories

Resources