yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 Themes, Apps, and Mods] kattzor:
The only thing I can think of is that you could try following this: https://xdaforums.com/showpost.php?p=78913799&postcount=36

I'm not sure if that is already applied to Revolution OS? It could also be that something else needs to be done since you're on a Mix 2S.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi, Ive not read it correctly, I'll try if that works for me but I've a question...Should my phone have root access? Should I do in twrp terminal? I've typed that command but I get a message telling me su nota found.

Thanks in advance
[Xiaomi Poco F1 Themes, Apps, and Mods] kattzor:
You can download Terminal Emulator (or any a comparable terminal app) from Google Play Store. The "su" is there to give you root access so that you are allowed to modify those files.

Opening the Terminal Emulator and typing "su" should give you a promt from Magisk to allow root access to Terminal Emulator. If you're not rooted you need to root the phone first in order to use that command.

EDIT: Please be careful, I'm not sure if this could mess your system up somehow. You might want to backup your system before trying this.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Thanks! I'll try right noew. I'll post the results.

---------- Post added at 05:58 PM ---------- Previous post was at 05:37 PM ----------

Hi again...I've rooted my phone and I've installed terminal emulator. After entering the code I get an error...no such file or.... I think my phone couldn't be fix using the command :(

Any idea?
[Xiaomi Poco F1 Themes, Apps, and Mods] neko2u.gm:
This solution is already applied to mi mix2s (stable 10.2.2.0, Weekly and same version eu roms.. )

but problem is not fix yet. :crying:
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
:crying::crying: I've tried another roms...stable...weekly...revolution... none of them solved the problem....Do you know if MIUI 9 has the problem? As fas as I know not al the phones have the bug...right?

Thanks in advance.
[Xiaomi Poco F1 Themes, Apps, and Mods] neko2u.gm:
MIUI9 (Android Oreo) is same on my phone. (tested by eu rom weekly 8.5.17)
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Another user has posted a "possible" solution at MIUI Forum...

"ive Just rollback to 9.2.21 because it was impossibile to make a call or use Spotify. Ive tried 9.3.7 and this but all have the same bug and 9.2.21 seems the only build to work flawlessy"
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi, I'm gonna try to test upper mic (noise cancelling mic) with different values. Could someone tell me which line of code should I change?

<ctl name="DEC8 Volume" value="0" />

<ctl name="DEC7 Volume" value="92" />

Thanks in advance
[Xiaomi Poco F1 Themes, Apps, and Mods] neko2u.gm:
I've already tried it but not fix in mi mix2s..

DEC8 Volume is 'Top Mic' (noise canceling mic) Volume. value = "0" is top mic off

DEC7 Volume is 'Bottom Mic' Volume. make over 70.

voice is not transferred when DEC7 volume is too low

and even with DEC7 turned on, there is an echo.

I have not tested all rom version.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi! after testing some values I've noticed that in the engineering mode the top mic still working, I'm not sure if the patch really applies the values or the engineering mode overrides the values and test it at hardware level....Last thing I wanna try is disable the top mic desoldering it from the main board....but I'm afraid of damaging the phone...
[Xiaomi Poco F1 Themes, Apps, and Mods] wizard8400:
This patch only applies to the section named

<path name="handset-dmic-endfire" >

This section, and its values are used only by the phone app (on miui10 xiaomi.eu rom that I've tested). Other apps, like hardware test, camera, voice recorder, whatsapp, etc., use different sections (<path name="whatever-name" >) which have different values for mics or speaker volumes, and this is why the values from the patch do not work on some apps/ custom roms, because other phone app (from custom rom) use a different section, not the one named "handset-dmic-endfire". On a custom rom, you need to find the name of the section that the phone app is using and tweak the settings until you fix whatever problem you're having. Good luck!
[Xiaomi Poco F1 Themes, Apps, and Mods] leoespada:
Hi wizard,

You wouldnt happen to know how to fix this on LineageOS, or how I can find out, would you?

Thanks!
[Xiaomi Poco F1 Themes, Apps, and Mods] wizard8400:
If I ever flash Lineage, I'll look into it. To find the right section you need to take them one by one (only those with a name that sounds like it could be used for call) , change values and see which one is. You also need to reboot after each change. Sorry, I don't have time right now to flash Lineage.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi Wizard ! Thanks for the info, now it's clear as water. I know that code changes from one ROM to another, I'm on revolution OS right now but as far as I know the code is the same for both ROMs since Revolution it's based on MIUI...I'm not sure but I remember to compare both files and I think they are the same. I'm sure that the problem comes from the top mic which is so close to the earpiece so there's a feedback between them. I've tried to put a small gummy tape in front of the top mic (opening the phone, not just in the hole of the mic) but I suspect that the mic takes the sound not from the top side but along all his surface...I don't want to disable (desolder) the top mic since it could ruin the main board which contains the noise cancelling mic....I'll keep investigating :) Any help would be appreciated.
[Xiaomi Poco F1 Themes, Apps, and Mods] wizard8400:
Also check this values in both .prop files:

/vendor/build.prop

ro.vendor.audio.sdk.fluencetype=fluence

persist.vendor.audio.fluence.voicecall=true

persist.vendor.audio.fluence.voicerec=false

persist.vendor.audio.fluence.speaker=true

and /system/build.prop

ro.qc.sdk.audio.fluencetype=none

persist.audio.fluence.voicecall=true

persist.audio.fluence.voicerec=false

persist.audio.fluence.speaker=true

fluencetype has something to do with noise canceling from Qualcomm, do some research, change some values for fluencetype (Google them) I think that those from vendor/build.prop are used. Sorry but I'm really busy this days. Let me know how is going.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi Wizard!, I've changed build.prop and changed voicecall=false by recomendation of another user...Let's see if it works :) need to test it later 'cause I'm at work right now
[Xiaomi Poco F1 Themes, Apps, and Mods] YasuHamed:
the new binaries (vendor image) have no Mixer Path file,

my question is how to boost volume from 84 to 110 like in redmi note 5 pro?
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
I just tried the following:

Latest vendor-firmware installed (9.4.1-9.0)

Both build.props edited as above

Installed magisk module from OP

Unfortunately there was no improvement from any of these actions.

I also tried reverting to vendor-firmware 9.2.21-9.0 which supposedly didn't have the echo issue. I had no luck with this either.

Does anyone have any other ideas? :confused:
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi JamesKinds, as far as I know the vendor that works flawlessly is the 8.12.17...Could you try it and post the results?

Thanks in advance
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Hi,

I tried with vendor 8.12.17 but the phone would not complete booting. I have reverted to latest 9.4.1-9.0.

This is driving me crazy. This is an awesome phone in every respect, except it's ability to make calls! :mad:
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi there, thanks for the try JamesKinds, now I'm totally lost, I don't know what could do for fixing the bug...as I said before the only way is disable the top mic but I don't feel confident desoldering it from the main board. Let's see if anyone can find another way
[Xiaomi Poco F1 Themes, Apps, and Mods] BabyTedhu:
Hi, i flashed Pixle expeirnce caf build 09-03 with combination of old 8.12.13 vendor firmware, by editing assert checking in updater script in order bypass vendor checking, and my echo seems to gone.

I'm using canting kernel, it's giving me wonderful battery backup too
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi ! Great news :) I want to try it asap but i need some help....Could you explain the whole process step by step? I've checked the Pixel Experience page but for mi mix 2s the only avalaible build is 02/11...

Thanks in advance.
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Hi,

Thanks for the update. Can you please upload the following three files from your install:

\vendor\etc\mixer_paths_overlay_static.xml

\vendor\build.prop

\system\build.prop

If you can perhaps I can use them to identify whether there is a specific setting we can update on LOS

Thanks again,

jk
[Xiaomi Poco F1 Themes, Apps, and Mods] BabyTedhu:
Well i have poco, i don't know anything about mi mix

Download 8.12.13 firmware / vendor package from akhilnarang site.

I am personally usung 09-03 caf build of PE, as its best for me, latest version is having many erros spamming in logs, and i feel app opening was slow. And 17-03 build had issue with magisk. So i am sticking for 09-03 build, if you need mirror tell.

In 09-03 build, open with winrar in pc, and go to updater script file, open it with notepad, and remove first lines of assert checking, which checks if you are on later firmware and vendor or not..

After removing those lines, save file

And flash vendor firmware, and then Rom

Mirror of 09-03 build Caf, PE : https://drive.google.com/file/d/1pxWZGvnqmABU8jetRf83gWNjUk8BsaUw/view
[Xiaomi Poco F1 Themes, Apps, and Mods] BabyTedhu:
Here you go
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Thank you. I'll do some investigating and report back.

---------- Post added at 05:41 AM ---------- Previous post was at 05:18 AM ----------

Hi,

I've compared the files from our respective ROMs. In short there are no material differences, especially in the build.prop file w.r.t. voice calls, fluence, etc.

What this tells us is that the cause of the issue is most likely to be found in the vendor-firmware.

But now I'm a bit stuck, because diagnosing an issue in the vendor-firmware is beyond my skills.

At this stage I don't know what else to do other than to wait for the next vendor-firmware update and hope for the best.

I'm open to any ideas people may have and want me to try
[Xiaomi Poco F1 Themes, Apps, and Mods] BabyTedhu:
I think it's probably related to vendor, because in my first try i keep latest firmware and flashed only vendor image of 8.12.13 particularly , and it fixed issue, later i though it's good idea to use same combination of vendor and firmware, so i flashed whole combo.

so in short , flashing old vendor images only fixed my issue
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
That's great news for anyone running the Pixel Experience ROM. However when I tried to install vendor with LOS the phone would not complete booting.
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Quick update. I discovered that if I have the phone on speaker during the call, the echo disappears. As soon as the phone is placed off speaker (normal usage) the echo returns. Could this clue help anyone with further diagnosis?
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi thanks for the info :) I'm sure that the problem is on the firmware/vendor. I'll try to flash another files...Let's see if that fix the problem.

---------- Post added at 11:08 AM ---------- Previous post was at 11:02 AM ----------

You're right, I'm gonna post all the info:

Tried to replace lower MIC part= no fix

Tried to replace lower SPEAKER part= no fix

Tried to put a small gummy piece in front of top MIC= no fix (the mic gets the sound from the front as well as from the side in contact with the main board).

Tried another MIUI ROMS Stable....weekly..ROS..= no fix

I work with sound (I'm electronic engineering) and I'm almost 100% sure that the problem is the top mic is so close to the earpiece. If I use earphones or external spekaer the echo dissapears.....

I'll investigate which firmware/vendor files works...
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Thank you for investigating. Please let me know if I can do anything to help.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi, I've flashed another V10.2.2.0.PDGMIXM for Mi mix 2s and no luck...

Do you have a Mi mix 2s or Poco?
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Poco.

I have noticed that there seems to be a fair amount of similar problems scattered over different devices over the last two years (various google searches)

I'm pretty sure that you are correct re: the microphone and speaker placement.

We just need to figure out how to disable the top mic or reduce it's volume (similar to what OP attempted).

My thoughts are either via editing one of the mixer files or to remove the driver entirely via modprobe.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi JamesKinds, you're right, I've flashed the ROM with the vendor that should works but again..no luck :crying:

The solution, as you said, could be disabling the top mic via modprobe....if we can disable the top mic I'm pretty sure the echo will dissapear. Do you know hot to disable it via modprobe?

Thanks in advance.
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Hi,

I don't have time to check right now, but here's a good tutorial on basic modprobe usage.

https://www.thegeekstuff.com/2010/11/modprobe-command-examples/

Remember, you'll need to su/sudo to get the command to work.

I'll have a look later today once duties are out the way.

Hang in there, we are making progress :)
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi, no rush, I'll try to investigate....

:)
[Xiaomi Poco F1 Themes, Apps, and Mods] wizard8400:
If you disable the top microphone via modprobe or desoldering :)) , you'll face issues with calling on speakerphone, audio recording with camera (No sound on video), no audio on sound recorder, etc. Mixer paths must also be adjusted to route sound from bottom mic to apps for them to work, and this is not doable (too many settings to change). Good luck! And don't forget to report this bug to xiaomi/poco using the feedback app in settings!
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Good point. We'll keep searching.

Any idea why your fix works on MIUI BH it not LOS?

---------- Post added 9th April 2019 at 12:01 AM ---------- Previous post was 8th April 2019 at 11:32 PM ----------

Hi,

Just a quick update. The following (suggestions from other forums) edits to the build.prop file don't appear to have any positive result:

persist.audio.dualmic.config=endfire

persist.audio.fluence.mode=fluence

persist.audio.vr.enable=false

persist.audio.handset.mic=analog

persist.audio.voice.clarity=none

persist.audio.fluence.voicecall=true

persist.audio.fluence.voicerec=false

persist.audio.fluence.speaker=true

At this stage I think I'll re-focus on mixer_paths_overlay* files and see if I can have any success there.

---------- Post added at 12:24 AM ---------- Previous post was at 12:01 AM ----------

Latest unsuccessful experiment. I edited the Magisk module provided by OP (wizard8400) as follows:

\vendor\etc\mixer_paths_overlay_static.xml

<path name="handset-dmic-endfire">

<ctl name="DEC8 Volume" value="0" />

<ctl name="DEC7 Volume" value="0" />

<path name="speaker-dmic-endfire">

<ctl name="DEC8 Volume" value="0" />

I would have thought that this would have shut off all mic volume, however the echo effect was the same.

Well that's enough for one day. I'll give this some more thought and try again tomorrow.

Hopefully someone cracks this while I'm sleeping. ;)

Thanks all

---------- Post added at 01:14 AM ---------- Previous post was at 12:24 AM ----------

Last (again unsuccessful) test for the evening:

I modified the following mixer-path files with the same changes that the OP had in mixer_paths_overlay_static.xml:

mixer_paths_overlay_static.xml

mixer_paths_qvr.xml

mixer_paths_skuk.xml

mixer_paths_tavil.xml

All files had the same lines as the mixer_paths_overlay_static.xml.

Unfortunately this made no difference to the echo.

Buenas noches, mi amigos
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
At this point the only solution is to deal with mixer files....One strange thing is that muting the top mic the echo doesn't dissapears....there must be another file involved....

We're so far apart...here is 17:00 :D Just relax and have good dreams.....Some geniuses managed to solve their problems while they slept... ;) try to do it! I'll try too in a few hours.

---------- Post added at 03:05 PM ---------- Previous post was at 03:02 PM ----------

Hi! I've reported the bug to xiaomi...no aswer....I'm sure you're right, now it's much clear...the key is on the files....Ive seen a post in other forum:

[FIX] Bad voice quality in calls (rooted devices)

I was having problems in calls where the person on the other end couldn't hear me. They would say I sounded far away or garbled. After some digging I found that the problem was related to the noise cancelling feature of this phone. For whatever reason it was treating my voice as background sound and attempting to cancel it out. Fortunately there's an easy fix for anyone else having this problem. You need to be rooted, as you will be doing a build.prop edit.

To start out, you can do this several ways but the easiest method is to download a free app called Build Prop Editor. Once you have that installed, go ahead and open it, granting it root privileges. Then scroll through the list of entries and find "persist.audio.fluence.voicecall". By default it will be set to True. Change it to False, save, and reboot. When your phone starts back up you should be good to go. People on the other end can now hear me clearly. I haven't tried a voice call in a noisy environment yet, so it remains to be seen if disabling noise cancellation is problematic in those situations, but before this tweak my phone was all but unusable for voice calls. Good luck.

Could you explain what persist.audio.fluence.voicecall do?

Thanks in advance.

---------- Post added at 03:34 PM ---------- Previous post was at 03:05 PM ----------

Uppps just another thought ....Is there a difference flashing a ROM form Fastboot vs Recovery? I've read at xiaomi forum that fastboot flashing it's used to fix bug...
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
fluencetype is different approaches to noise cancelling on dual mic devices (such as Poco F1). It can be “fluence” or “fluencepro” or “none”.

persist.audio.fluence.voicecall - specifies whether selected fluencetype is active or not for voice calls.

As to your question about flashing ROMs via ADB vs recovery - no, the net result is the same. They are just two different mechanisms for loading images onto the device.

I've got one or two more things to try later this evening.

Keep searching! :)
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Weirder and weirder. It just struck me that all the people I have been testing the echo with have iPhones. I just spoke to a friend on an Android device and there was NO echo. WTF??

Very confused at the moment.

Perhaps this means I just have to stop talking to people on Apple devices! ;)
[Xiaomi Poco F1 Themes, Apps, and Mods] YasuHamed:
is there a way to boost volume (headphone) , which mixer path file to change and where

i have tried all mixer path under vendor/etc but no use!
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Clear as water.....ha ha ha...I'm getting more and more confused...I'm posting in MIUI forums too...cross your fingers...:fingers-crossed:
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Hi. So I've discovered something which seems to correct the problem by about 90-95%. It's not a deeply cryptic build.prop tweak. It's not a magical mixer-path rerouting. The solution simply is to remove the case from the phone!

I have a Spigen (2018) Case Rugged Armor case for the Pocophone F1. When I removed the case entirely there was almost no echo. As soon as I put the cover back on the echo returned.

I have further confirmed that it is not just the Spigen case that causes the issue, the same issue (and resolution) occurs with the thin case that came with the Pocophone F1 in the original box.

While I still have not pinned down the exact spot on the case which causes the issue, the fix is simple, just remove the case.

This may not be the greatest solution as I certainly don't want to carry around my phone without a case, but at least if people complain about the echo, you should be able to resolve it by temporarily removing the phone from the case.

I would be grateful if anyone else can confirm my findings and if anyone can come up with a case mod to defeat the echo.

At least this seems to explain why the problem was so difficult to pin down (although it doesn't explain why a call from an Android device while I had the cover on did not result in an echo).

Anyway, please can others confirm that this seems to resolve the issue.

Adios,

jk

Update: By playing around it appears that partially removing the case so that the entire top of the phone is uncovered is enough to remove the echo. Again not ideal but workable in the meantime. It would still be great if someone can find a hack to entirely disable the top microphone during a voicecall.
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
Hi! Great!!! I'm glad about your discovery, unfortunately for me it doesn't works :( I try always with the case off...it Was my first thought...I'm trying with different firmware and the echo is less I need time to test it a bit more...

Thanks
[Xiaomi Poco F1 Themes, Apps, and Mods] SilentEYE:
I could pinpoint that my phone started producing echo after switching vendor from 10.x to 9.x ( don't remember correctly).

The rom was the same.

Isn't there anything we can begin with.
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
I still think the best fix will be if we can figure out how to disable the top microphone during a voice call.

I guess it's back to the mixer path files we go...
[Xiaomi Poco F1 Themes, Apps, and Mods] solmer:
I've discovered that with another firmware https://drive.google.com/drive/u/0/folders/1CvhILBk1uDa6YdGr01xDt1m9W478xBl4 (latest one from this google drive folder) used in combination with Revolution OS (v93.7.) the echo is almost gone....I only need to reduce 2 points the volume using buttons. Now I'm trying to put the last Revolution ROM but using the firmware that works for me... REMEMBER: My device is a Mi Mix 2s, I mean that the firmware doesn't works on Poco.....Let's see how it works :)
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Thank you. Please report back on your progress.
[Xiaomi Poco F1 Themes, Apps, and Mods] JamesKinds:
Case Mod to Reduce Echo

As recently reported, I discovered that by removing the Spigen Rugged Armor Case for the Pocophone F1 I was able to significantly reduce the echo.

I have subsequently figured out a minor case mod that allows for the same echo reduction but enables the case to remain in place. In short you simply need to enlarge the hole for the top microphone. I am attaching an example of my unaesthetic handiwork which was completed with an X-acto knife. It's ugly, but it works. Someone with a steadier hand and more patience is bound to get a better looking result.

I did try drilling out the hole, but the rubber simply expanded to accommodate the drill bit with the hole shrinking once the drill bit is removed. A very hot nail carefully inserted into the hole may allow for a cleaner hole to be created. None the less I am happy with my result.

I still believe that the ultimate solution to the echo will lie with removing the top microphone from action during voice calls. However I hope the case mod allows for some people experiencing the echo to find a workable interim solution.
[Xiaomi Poco F1 Themes, Apps, and Mods] falconhossam1:
thanks i had removed my cover and tried it works fine annd tried to back my cover the echoes comes again for the other side i think you should make sure that the anti noise mice doesn't cover by any thing