yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] Arju:
OPO_SpeakerPhone_Fix_V6+Stereo

Ok guys, so I dug into this and compared a marshmallow mixer_path to the mixer_paths from the mod in OP. I merged the changes and managed to make it work.

I'm currently on Dirty Unicorns Rom but the mixer_paths I used is from Resurrection Remix rom. I belive it is universal for all cm13 based roms unless there are baked in sound tweaks. I have tested this on my phone and it works! I made a flashable .zip file, unsure if it works as I just manually pushed it to systems>etc folder. This one works for me and all credit goes to [MENTION=4732904]abhi08638[/MENTION] for bringing it first to our devices. I'm not an expert as you see from my last post, but with some patience I managed to get it work. I have attached a flashable .zip file and also included the mixer_paths.xml file incase you would rather push it manually. :)

Found a bug in it, making a call with earpice is not working. It's completely silent when I make a call. Once I insert my headset into the headset jack and call or turn on the loudspeaker, it works. Guess I need to look into the mixer_paths file again. Does anyone know what strings I need to change to make it work? If someone more knowledgable could look into the mixer_paths it would be awesome. I will let my files still be here in case someone finds out before me. I will look into it but it might take time though :eek: I'm sorry that it doesn't work as it should.

[edit] Might have fixed the issue. Just need to test it for awhile before I push out an update.

Don't flash this file. Will remove the attachments tomorrow.
[ONE Android Development] MMWolverine:
I only made the triple mono mod from the guide in op. Hope this helps anyone.
[ONE Android Development] clock51:
work on AOSP rom and Omni

Inviato dal mio ONE +
[ONE Android Development] Arju:
OPO_SpeakerPhone_Fix_V6.1+Stereo

I finally managed to fix my files. I'll share the files tomorrow when I have better time. So tomorrow I'll share a flashable zip for OPO_SpeakerPhone_Fix_V6.1+Stereo.

I also encountered an issue when people spoke to me using speaker phone, they would hear an echo of their voice. I've managed to change some values and fix that issue too. Will explain more about it tomorrow.

Now it's time for bed! See ya tomorrow :)

Good morning xda!

Here comes the OPO_SpeakerPhone_Fix_V6.1+Stereo in a flashable .zip and I have also included the mixer_paths.xml file incase you want to push it manually to system>etc.

Some has encountered a problem with these kind of mods where the caller on the other side says that they hear their own voice. This usually only occurs when your phone is on speaker phone and not when using headset or earpiece. Either way I have changed some values which should have fixed that issue, so no more echoing. If the echoing does occur there is one option left to fix it. You need to go into build.prop which is found in the system folder.

change these lines.

BEFORE FIX

ro.qc.sdk.audio.fluencetype=fluence

persist.audio.fluence.voicecall=true

AFTER FIX

ro.qc.sdk.audio.fluencetype=fluence

persist.audio.fluence.voicecall=true

persist.audio.fluence.voicerec=false

persist.audio.fluence.speaker=false

Either way try my mixer_paths first and try the last part if the echoing problem still occurs.

Credit for this last part goes to [MENTION=3223146]tazzkiller[/MENTION] you could read more on the last part here: http://xdaforums.com/oneplus-one/development/fix-low-mic-call-t3055661

Credit to the .zip I made goes to [MENTION=4732904]abhi08638[/MENTION] who is the OP of this thread,

Hopefully more can test this and let me know if there are any quirks that needs to be ironed out. ;)
[ONE Android Development] iKrautDroid:
Awesome job dude, working perfectly on Sultan's CM13.
[ONE Android Development] pankspoo:
Thanks working on RRM 5.7.1
[ONE Android Development] LPW00:
It breaks bottom speaker function for me on aospa.
[ONE Android Development] Arju:
That means aospa has some different changes to the mixer path, I still own the device but have recently gone over to a nexus 6 so i will not be able our have time to compare those two mixer paths, I'm sorry. People are welcome to take my mixer paths and compare it themselves and try to make a change. This worked on many other Roms though.
[ONE Android Development] riahc3:
So does this work on Marshmallow?
[ONE Android Development] Machtmensch:
Hi everybody, my main mic is broken so I used the main mic fix... now I have the Problem that all the sounds are no hearable... If someone calls me or my Alarm clock is yelling there is no Sound just Vibration... how can I fix this... because the Quality of calls is just perfect using this fix
[ONE Android Development] cedixia:
Hello i've the same problème and this fix work's but my rom is MM6.0.1 and I think it's not compatible with MM .

is there an update of this fix for marshmallow ?

Can I use "revert" zip to come back to my problem?
[ONE Android Development] funCrash93:
you could use your system backup from TWRP (if you have one)

or you could make one backup now, and then try the revert zip.
[ONE Android Development] Machtmensch:
Mic prob

Hi again... I bought new main mic and build it in my oneplus... as I thought this would be the Problem that my phone has Problems during calls (People don't hear me well...

But nothing changed... If I Flash new roms it is always tehre the Problem... are there any chnages in mixer path or build prob that I can try to disable the other two mics? Maybe one of those is the Problem...

If I do the build prob and mixer path changes I am able to have normal phone calls, but Speaker phone calls are not possible... People don't hear me at all... means if I do the changes ma main mic doesn't work in Speaker phone mode...

thank you very much
[ONE Android Development] Timer2006:
---------- Post added at 02:45 PM ---------- Previous post was at 02:39 PM ----------

[/COLOR]

Works on Slim saber MM 6.0.1 OMNI ?
[ONE Android Development] Arju:
Hi, I'm not sure anymore as I have moved to Nexus 6. What you could do is to make a backup in twrp and then apply the fix.
[ONE Android Development] Juergen1337:
Didnt had Problems with my mic, but the Stereo Mod is working great on CM 13 and phonecalls are working the same like before. Thank you bro :)
[ONE Android Development] Juergen1337:
So i didnt test it out that well because i got cm 13 since yesterday. But today i recognized, that i cant hear people while calling and they cant hear me too. The whole App seems to be laggy (Volume changes 5 seconds after i pushed it). Any fix for that?

Doesnt seem to be a problem with the mod, i backed up my original mixer and installed it - nothing changed :/
[ONE Android Development] Oposoundnowork:
I used the Main mic bypass which worked like charm, but for some reason it causes certain sound effects to not work, alarms and whatsapp audio messages aren't playing. When i revert to stock it's all fine. Rip.
[ONE Android Development] abhi08638:
Just remember guys, you'll have to add the custom path I made if you're not using the file that I posted!

sent from my amazingly awesome OnePlus One

Don't forget to hit thanks!
[ONE Android Development] kolyan:
delete

go it
[ONE Android Development] h2ocs:
thanks for the mod, it work with CM12 Unofficial Temasek v2.1 :D
[ONE Android Development] abhi08638:
Good to know! So it looks like that they didn't change any of the audio paths in CM12. Would you mind testing headphones and voice calls just to make sure everything is working?

sent from my amazingly awesome OnePlus One

Don't forget to hit thanks!
[ONE Android Development] Jaocagomez:
Please make a high volume version flashable for lazy people like me and you will get more downloads
[ONE Android Development] Kookitza:
+1 :good:
[ONE Android Development] abhi08638:
Ask and you shall receive. Will add to OP later.

Balanced

https://www.dropbox.com/s/9jnh5363204brrn/OPO_Stocksound_Surround_Balanced.zip?dl=0

High

https://www.dropbox.com/s/feg0fl2rd6temhi/OPO_Stocksound_Surround_High.zip?dl=0

Revert mod

https://www.dropbox.com/s/f52f4paihxdr382/OPO_Surround_ReverttoStock.zip?dl=0

Again shutout to [MENTION=5108383]sshafranko[/MENTION] for the zip architecture

sent from my amazingly awesome OnePlus One

Don't forget to hit thanks!
[ONE Android Development] Ankit Tulsian:
[MENTION=4732904]abhi08638[/MENTION], Mirror link for your mod. Thanks it works on Slimpop.

http://168.235.64.252/owncloud/public.php?service=files&t=94c6bdfb703a5233685e695de64a3ebb
[ONE Android Development] abhi08638:
Thanks! Will add to OP

sent from my amazingly awesome OnePlus One

Don't forget to hit thanks!
[ONE Android Development] OmegaBlaze:
Working perfect on Cm12 Temasek F2FS! Thanks alot.
[ONE Android Development] CounterC:
Is it possible to damage the speakers with this mod?
[ONE Android Development] truth77:
Be careful of your equalizer settings cuz you don't know if or how they will effect that speaker, and don't put it on full volume leave it or notch or two down, that's what I do to be safe.
[ONE Android Development] abhi08638:
Yes if you ignore my warnings when customizing the file. But not with the zips I provided.

OP updated with flashable zips and mirror

sent from my amazingly awesome OnePlus One with Stereo Mod

http://xdaforums.com/showthread.php?t=2967925

Don't forget to hit thanks!
[ONE Android Development] Stylez Ray.:
Dropbox link for balanced is not found anymore...?! You deleted it?
[ONE Android Development] inzaghi75:
I'm on cm12. Do I need to flash only the zip file?
[ONE Android Development] abhi08638:
Sorry about that, fixed so it should work now
[ONE Android Development] abhi08638:
Yup just flash the file

sent from my amazingly awesome OnePlus One with Stereo Mod

http://xdaforums.com/showthread.php?t=2967925

Don't forget to hit thanks!
[ONE Android Development] CounterC:
works on latest temasek but it's very silent even though I flashed the high volume zip. is it the limitation of the speaker?
[ONE Android Development] Jaocagomez:
just installed stock CM11S, no trouble flashing it, i notice its a little bit higher volume, but i dont notice the stereo to mono difference, if you say its stereo i believe you!

thanks for this.

i thanked all your posts on the thread.

also a suggestion, use the attachment feature of the forum, upload here in xda to avoid eating all your bandwidth
[ONE Android Development] Juergen1337:
Could you upload a mixer path just with the stereo mod included? My mic is working fine, it just gets worse with ya mod :D
[ONE Android Development] Arju:
I'm sorry, I don't own the device anymore. I'm not good with blind development. :(
[ONE Android Development] NikolajDS:
Dammit I have the same problem, and I have found out, that it is because CM13 do not work well with the fixes/patches.

I works fine with CM12.1

But with CM13, there is no sound on notifications, alarms and ringtones...

Anybody out there, who can help?
[ONE Android Development] NikolajDS:
Solution for CM13 might be right here

I haven't tried the solutions just found yet.

But It seems that "mikiosmart" has posted a new zip patch made for CM13.

I will report later, if it works or not

http://xdaforums.com/oneplus-one/help/microphone-sounding-muffled-using-phone-t3347788
[ONE Android Development] NikolajDS:
It works!!!!! Cheers
[ONE Android Development] phoenixita:
I've tried the cm13 mic fix but i'm on nougat. Has someone of you guys a main mic by-pass mod working on 7.0? Cause my main mic Just broke.
[ONE Android Development] Toj_blok:
Yes, we need same problem here. Please somebody help us about that. There are so many Android 7 roms for oneplus one, but we can't use them. Please update zip of main mic bypass to the Android 7.
[ONE Android Development] CooperBrick:
Installed triple mono mod and the speaker audio isn' t working more... Flashed the back to stock zip then, and It Is still not working, what to do?
[ONE Android Development] FullWipe:
Extract mixer_paths file from your rom's zip, copy it in system/etc, change permission to the file and reboot.

Or reflash your rom without wipe.

Next time, make a backup to the original file before changing it.
[ONE Android Development] Wisiwyg:
Main Mic Bypass V3 seems to have fixed low mic volume on calls for me... Guess that means my problem is a dead mic. Thanks for the solution!

edit: Lost ringer, other sounds. I had to use the edited version here: http://xdaforums.com/oneplus-one/help/microphone-sounding-muffled-using-phone-t3347788 b/c of CM 13.
[ONE Android Development] olbatar:
Can someone please add zip file main_Mic_bypass for Android nougat/cm 14.1 please?
[ONE Android Development] MassiveDRS:
---------- Post added at 11:07 AM ---------- Previous post was at 10:34 AM ----------

Nougat CM 14.1 Here

I tried the build.prop edit and the mixer path edit, rebooted and it worked :)

I followed thi tutorial

https://vcillusion.wordpress.com/20...n-low-mic-during-call-problem-in-oneplus-one/
[ONE Android Development] olbatar:
Didn't worked for me... Can you share your edited mixer path please?
[ONE Android Development] Wisiwyg:
Second this... I'm wanting to try some of the new N ROMs but can't bring myself to switch to something that my phone wont work with. First and foremost, it's a phone and it has to work.
[ONE Android Development] LPW00:
Could that stereo mod break the top speaker?
[ONE Android Development] Spockman89:
is it possible to have the surround mod on oneplus x? thanks
[ONE Android Development] phoenixita:
I'm currently using with no issues mixerpath from darkobas rom....

Tesla 7.0
[ONE Android Development] olbatar:
Because some N Rom fix the problem and others won't... It work with pure nexus rom and I must choose between microphones or ringtones notification on resurrection remix Nougat based Rom.
[ONE Android Development] olbatar:
Ok, here is the solution:

You must be rooted, maybe get permissive selinux (not sure...):

_delete the mixer_path.xml and audio_plateform_info.xml in system/etc of your opo.

_download and unzip the main_mic bypass cm13 somewhere in the internal storage.

_copy mixer_path.xml and audio_plateform_info.xml from the previously unzip main_mic_bypass cm13 in system/etc of your opo.

_modify the permission of the new mixer_path.xml and audio_plateform_info.xml with es explorer file to get same permission as the original (rw-r-r).

Reboot.

Enjoy.
[ONE Android Development] kryshnakishore:
Does it work on Nougat rom too?

---------- Post added at 03:52 AM ---------- Previous post was at 03:51 AM ----------

I am on RR ROM nougat too. It bootlooped
[ONE Android Development] olbatar:
Of course it works on nougat, it's the point of this post :eek:

if it loops it's because you didn't set the correct permission or your file explorer won't change the permission.
[ONE Android Development] Gawd:
I have some questions

How does an App know when to provide mono and stereo sounds to the phone speaker? Does it check the build.prop or something, because if that's the case then the App will provide mono no matter what since OnePlus One officially has mono speakers. If that's not the case, then is it only controlled by the system, i.e., from mixer_path.xml?

Also, the earpiece volume is quite low in the True stereo v3 zip, how could that be increased, and does increasing that involve possible risk?

Thanks.
[ONE Android Development] Gawd:
[mod][4.4.2-7.1] TRUE STEREO[balanced]

1. Open the mixer_paths.xml

2. Go to the "output paths" section

3. Find the <path name="speaker"> line

<path name="speaker">

<path name="spk-ear" />

*This is the earpiece volume code* <ctl name="RX1 Digital Volume" value="90" />

<ctl name="RX3 Digital Volume" value="70" />

</path>

Okay never mind my post. I got to know everything after some tinkering :D

Also I created a True sound mod (v4?)

-creates a balance so that it actually creates a surround stereo sound

-very noticeable, loud

-wont harm your speakers (any) even at high volumes

-more bass, treble, without any crackling.

-supports all Android versions from KitKat to Nougat ;D

Download link: gdrive - https://drive.google.com/file/d/0Bzedbk3OVKq1ZjdoVWIzUnBtNWc/view?usp=drivesdk

Having issues? Want back stock just as it came? Here flash this : https://drive.google.com/file/d/0Bzedbk3OVKq1OGo3UXFxUXBoXzA/view?usp=drivesdk

Hit thanks if I helped you, or your device xd

~from my exceptionally awesome Modded True stereo OnePlus One
[ONE Android Development] lumpen_er1:
Greetings to all fellow thread readers and Devs,

Following the steps explained on previous posts i proceeded to download the "Main_Mic_Bypass_V3". On the procedure it is mentioned that there are 2 files on the fix zip, but i only found 1 file (mixer_paths.xml), there's no file with the name "audio_plateform_info.xml" on the zip file.

I'd appreciate your guidance on this,

Thanks,
[ONE Android Development] olbatar:
Why did you use v3 version instead of cm13 version?
[ONE Android Development] Wisiwyg:
Does this also provide Main Mic Bypass for those of us that have mic problems resulting in callers not being able to hear us (for M and N roms)? Thank you for your work with this.
[ONE Android Development] Gawd:
Not right now, but since you've pointed that out, I'll work on that. :)

Meanwhile, check my new thread about TRUE stereo here
[ONE Android Development] olbatar:
I have already provide a solution for mic problem on nougat, test and tell me if it works.
[ONE Android Development] xsoft7:
hi guys,

when i install V3 mod for Mic bypass it fixes low volume, but destroys all audio (No audio calls ,ringtons..) - what can be done? tried on cm13, cm14.1

help please
[ONE Android Development] OpIcarus:
What is the zip to adjust the microphone?

Beyond that you can flash that too 'stereo'?
[ONE Android Development] bfome0513:
Will this work on nougat based cm14?
[ONE Android Development] OpIcarus:
Can i flash more zip? For fix mic and triple mono high?
[ONE Android Development] darkreaper476:
for the love of pete what is the fix???????????
[ONE Android Development] darkreaper476:
Where are you getting "audio_plateform_info.xml" from? None of the files have that.

Edit: Found it in an older post. Still doesn't work...... Wont even get to the boot animation. I set the permissions too..

Edit2: copied the text right from the files to avoid permission issues, now theres no sound at all.

Edit3: Copied the text right from the mixer_path.xml and not the audio_platform_info.xml. and it freaking works now.... I'm thinking no other mods we in play here because I had to reflash my rom after every failure (non wipe)... AFTER 2 YEARS FIXED FOR ME!
[ONE Android Development] Elder Lyons:
So I'm on CM12.1, I flashed the V3 version of the mic bypass but there's still no sound. What did I do wrong?

EDIT: To be more clear, only my main microphone is broken. The rest of them are functional as people can hear me on a loudspeaker call, but obviously I don't want to bother everyone with my own chatter.
[ONE Android Development] Elder Lyons:
Well, I went ahead and did it myself by doing the following:

"Open up mixer_paths.xml, go to the "main-mic" entry under "Analog input devices", and change the "DEC4 MUX" value from "ADC3" to "ADC5". Then, change all instances of "DEC4" to "DEC2" (there should be 3 of them you need to change). Now, scroll down a bit to "Recording paths" and locate the "handset-mic" entry. Change "ADC3 Volume" to "ADC5 Volume".

Save your changes and reboot. The microphone used for phone calls will now be the one located at the very top of the device, right above the front-facing camera. This is also the microphone that is used when speakerphone is enabled."

Seems that did the job. I suspect this manual fix is exactly what the V3 file is supposed to do, but for some reason it doesn't work.

Is there any way the noises made from my ear touching the phone to be less audible in some way, by adjusting the settings? Thanks a lot.
[ONE Android Development] ichigo696:
It doesn't work on recent builds because LOS devs made some changes in mixer_paths.xml. I've created a modified flashable zip based on Opo_SpeakerPhone_Fix_V3.zip that reflects recent changes.
[ONE Android Development] Elder Lyons:
Yes I'm aware of this, but I'm still on CM 12.1.

The workaround worked perfectly, until today! Suddenly people can't hear me anymore on the phone.

Whilst the sound recorder is still in perfect working order, what can I do about this?
[ONE Android Development] ichigo696:
Did you update somenthing (e.g. new ROM build) that could have modified how sound is used?
[ONE Android Development] pahapoika91:
Want to make this work with Op3t?

I can provide needed files and do testing.
[ONE Android Development] ichigo696:
I can try, attach your mixer_paths.xml

Which mod do you wants to test?
[ONE Android Development] pahapoika91:
Something that makes the another speaker make sound when listening music/watching Netflix. Not only while on-call.

Mixerpath:

https://drive.google.com/file/d/0B-4Cz4ARK6CWMEh4azFzR3RzTmc/view?usp=drivesdk
[ONE Android Development] ichigo696:
When i have free time from my exams i shall look into it
[ONE Android Development] Elder Lyons:
Nope I haven't, I'm on cm-12.1-20151117-SNAPSHOT-YOG7DAO1K6-bacon, only applied changes in the mixer file, nothing else.

So I've got no clue why it isn't working when I'm calling someone, but it IS when I'm using sound recorder. It also used to work perfectly but it stopped working two days ago for no reason.
[ONE Android Development] Elder Lyons:
Does anyone have any idea how I can fix this? It's really annoying and practically impossible to always call on loudspeaker.
[ONE Android Development] geokilla:
https://xdaforums.com/oneplus-one/development/mod-true-stereo-phone-speakers-earpiece-t3510586
[ONE Android Development] Elder Lyons:
I'm not looking for the stereo mod, I'm looking to bypass the main mic so it uses one of the other microphones whilst calling, don't want to be rude but I thought that was obvious after explaining that in my post.
[ONE Android Development] geokilla:
Ah sorry. Good luck. I haven't seen any other microphone bypass mods aside from the original one in this thread.
[ONE Android Development] apache04:
Go through this thread mate https://xdaforums.com/oneplus-one/help/microphone-sounding-muffled-using-phone-t3347788/page2
[ONE Android Development] Elder Lyons:
Reporting in:

Finally got it to work, seems like you HAVE to disable fluency otherwise it won't work.
[ONE Android Development] StraffeHendrick:
same problem here:

I have a problem with incoming calls, if i pick up, i cant hear anything, unless i use the speakers, but then they cant hear me when i use speakers..... its me or them... i cant say when it happened cuss i have done some upgrades recently and the phone i got for free with broken screen that i replaced before. The previous owner said he had no problems before.

This are some specs: Oneplus One Modem A0001

android version: 601

CM OS version: 13.1.2.xxxxxxx-bacon

Kernel-version: 3.4.110-cm-g326cf3a

build02

aug 11 2016

Voice over Whatsapp is same problem, also with Messenger. Even when i use a headphone....

Playing music is not a problem, .... voice recording is also ok, i hear what i recorded through the mic.

Is it my fault that i broke the internal speaker or mic with the screen replacement or is it a software problem, someone gave me already an edit of the build.prop. but not yet tried it. I also tried the Google Now option.
[ONE Android Development] ichigo696:
Tell me if it works with this.

Anyway, did you try first a clean flash of the ROM?
[ONE Android Development] StraffeHendrick:
actually no i didnt flashed the rom, i still running the stock rom (bacon) of CM. All apps and stuff are still on the phone even after the twrp recovery flash.... handy but maybe not how it should have been?

I recently flashed the recovery to Twrp.

and how do i have to apply that zip file? just upload the the phone and update through recovery?