[XT1033][CM11] Audio fix. - Moto G Android Development

Hi.
The latest CM11 nightlies have a problem with audio (MP3 playback is laggy, crashes etc) which can be fixed by flashing @medic's zip. The idea is to replace the audio driver with older one.
It fixes the audio, but breaks voice on second SIM card on XT1033.
So I've extracted the lib from XT1033's 4.4.2 firmware, put it in a flashable zip and voila! Working audio and voice on both SIMs cm11 on XT1033!
Flashable ZIP is attached.

Great!
Saved many lives![emoji4][emoji23]

Thanks!!!!!
Work very fine!!!! on XT1033

Sorry.
You wrote that replacing the driver will fix the audio/voice, but breaks the VOICE on SIM2, but after flashing your ZIP (with the old drivers) will fix audio and voice on BOTH SIMS?!
I not able to best because I use just one SIM, but got curious.

CSanches said:
Sorry.
You wrote that replacing the driver will fix the audio/voice, but breaks the VOICE on SIM2, but after flashing your ZIP (with the old drivers) will fix audio and voice on BOTH SIMS?!
I not able to best because I use just one SIM, but got curious.
Click to expand...
Click to collapse
Itz the bug in Latest nightly build... It can be solved by flashing old audio drivers from the above zip..
Sent from my XT1033

CSanches said:
Sorry.
You wrote that replacing the driver will fix the audio/voice, but breaks the VOICE on SIM2, but after flashing your ZIP (with the old drivers) will fix audio and voice on BOTH SIMS?!
I not able to best because I use just one SIM, but got curious.
Click to expand...
Click to collapse
You need the fix only for latest CM11 nightlies.
There are three (or even more?) audio drivers present.
The first one is what's used in CM 11 nightlies (I guess it was fetched from stock XT1032's 4.4.4 firmware). It causes audio lags on all falcon devices (I guess it's the best driver out there but CM's code is not ready for it yet).
The second one is in @medic's audio fix zip. It's great, audio is working, but it was fetched from XT1032's 4.4.2 firmware and so does not support second SIM card.
The third one is from XT1033 4.4.2 firmware.
The fix in the first post is basically the same zip as @medic's one but I've replaced the driver with the one from XT1033's 4.4.2 firmware so both SIM cards and audio works.

Hello guys. if you think the headphone volume on CM11 is way too low, try this mod! I tested on 28/07 nightly cm, gummy, mokee, and cr-droid and it works BUT without audio mods like VIPER4A or DSP because i dont like audiomods. So if it conflicts, I don't care. Check it out!
http://forum.xda-developers.com/moto-g/general/headphones-volume-increase-cm11-kitkat-t2830060

Latest M9 build by @percy_g2 does not need the fix anymore.

Related

[PORT][3.22.x EBI1/32A]Cyanogenmod 5.0.8/6.1.0 DS EBI1/32A Port [December 8]

***I have recently switched to the Nexus One but I will continue to do these Magic ports as long as there is a desire (and I have time).***
This is a thread for the port files required to use the 32B Cyanogenmod ROM on 32a/EBI1 phones. Please see the following link for details on the ROM:
http://forum.xda-developers.com/showthread.php?t=567610
Note: Rogers users - if you find yourself without data upon flashing this ROM, use the settings found here to restore your APN.
Credit Radix for the following instructions - they are copy/pasted from his thread. Also thanks to all of devs who have contributed to the ROM scene - impossible to mention all of you, specifically Amon_RA, stericson, prash, cyanogen, riku, Radix, koush, TigerTael, haykuro, pershoot, zinx and more I am forgetting I am sure.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
***Please note that the following steps require that you have a recovery with the option to flash any .zip file. I recommend Amon_RAs recovery, Clockwork Recovery, or ROM Manager
***
NOTE: All new ports will be based on Koush's Universal update.zip. This lets you flash just a kernel and matching libs to a phone without the need for a ramdisk. Basically, it takes the ramdisk currently installed and repacks with it the new kernel.
Basically, the port packages provided from now on will port ANY ROM from 32B --> 32A/EBI1.
CM5.x (Eclair base)
Upgrade from 4.2.x Cyanogenmod ROM
http://wiki.cyanogenmod.com/index.p...or_other_rooted_ROMS_to_5.0.x(Dream/Sapphire))
Gapps Mirror: http://briancrook.ca/android/gapps/gapps-ds-ERE36B-signed.zip
CM4.2.x (Donut Base)
NEW INSTALL (ie. never installed CM 4.1.99 or greater before):
Magic Users
Rogers Dream EBI1 Users
UPGRADE INSTALL (ie. already installed 4.1.99 or greater):
Cyanogenmod Wiki
ROM Manager
1. Download ROM Manager from the market
2. Flash the ClockWork Recovery
3. Go to Download ROM > CyanogenMOD > Choose the version you want to flash.
4. Select Gapps addon (if you want Google Apps)
5. This will reboot to recovery, make a backup if requested, flash all the components and reboot.
6. Win.
Theme Support
Themes CAN be applied overtop of this ROM/Port combo. Just make sure to reboot in between the Defanged Base/update-cm-/port file step and pick a theme that corresponds to the Cyanogenmod version you are running. Keep in mind that some themes include a boot.img (no idea why...), so just keep an eye out. If you apply a theme with a 32B boot.img, just reapply the port file afterwards. If you apply a theme with a 32B boot.img, the phone will not boot past your carrier lockscreen...you can easily restart and reflash the port file. Always backup before flashing anything!!
==================================================================================================
If you would like to donate, please use the following link. Any donations are greatly appreciated
==================================================================================================
Port Files:
CM-6.1.0
Download: http://briancrook.ca/android/cm-ports/bc-6.1.0-ebi1-signed.zip
md5sum
CM-6.1.0-RC1
Download: http://briancrook.ca/android/cm-ports/bc-6.1.0-RC1-ebi1-signed.zip
md5sum
ROM Manager Web Connect
For older -test versions of ports, go to: www.briancrook.ca/android/cm-ports/old
CM-6.0.0-RC1
Download: http://briancrook.ca/android/cm-ports/bc-6.0.0-RC1-ebi1-signed.zip
md5sum
For older -test versions of ports, go to: www.briancrook.ca/android/cm-ports/old
==============================================================================
CM-5.0.8
Download: http://briancrook.ca/android/cm-ports/bc-5.0.8-ebi1-signed.zip
md5sum
For older -test versions of ports, go to: www.briancrook.ca/android/cm-ports/old
==============================================================================
CM-4.2.15.1
Download: http://briancrook.ca/android/cm-ports/bc-4.2.15.1-ebi1-signed.zip
md5sum
Iptables was left out by mistake. Tether issues should be gone.
For other port versions, go to: www.briancrook.ca/android/cm-ports/old
Thank you
cheer
Worked great, thanks a ton!
Does anyone else have signal problems with this rom?
I have had lost signal, many many times today
bunny0007 said:
Does anyone else have signal problems with this rom?
I have had lost signal, many many times today
Click to expand...
Click to collapse
no problem
very nice!
i like this rom, but now i cant have Google navigation
elite_is3 said:
i like this rom, but now i cant have Google navigation
Click to expand...
Click to collapse
did you have it before you did the new rom? i had to go to a like 4.2.4 or 4.2.3.1 and then download the gmaps off the market and then took it back to the 4.2.5. I havent did the 4.2.6
can this be installed using the one click method from the unlockr.com
i have the amon ra recovery
also im on a perfect spl - do i need to change that- rookie questions i know-
Anyone else not able to access the dialer while in a phone call... or is just me?
1.33.2005
3.22.20.17
KeeganX said:
Anyone else not able to access the dialer while in a phone call... or is just me?
1.33.2005
3.22.20.17
Click to expand...
Click to collapse
Do you mean the dialpad, that you drag up while on a call? it works for me.
KeeganX said:
Anyone else not able to access the dialer while in a phone call... or is just me?
1.33.2005
3.22.20.17
Click to expand...
Click to collapse
I can access it just fine. Have you tried doing a wipe?
Moving the bug I'm having from another thread to this new one, here it is:
Can somebody confirm if this is just my problem or a ROM bug?
Steps to reproduce:
1) While listening to music using bluetooth
2) Answer an incoming call
3) use the bluetooth headset to pickup phone call
4) Cannot hear any audio nor can the caller hear you talk
I loaded back an android 2.0 rom (jd02 with x3rom 32A patch) and can confirm this is NOT a problem.
I also tried loading back 4.2.5 cyanogen and its a problem there as well.
Anybody can verify with there ROM or have a clue whats going on?
httpftp123 said:
Moving the bug I'm having from another thread to this new one, here it is:
Can somebody confirm if this is just my problem or a ROM bug?
Steps to reproduce:
1) While listening to music using bluetooth
2) Answer an incoming call
3) use the bluetooth headset to pickup phone call
4) Cannot hear any audio nor can the caller hear you talk
I loaded back an android 2.0 rom (jd02 with x3rom 32A patch) and can confirm this is NOT a problem.
I also tried loading back 4.2.5 cyanogen and its a problem there as well.
Anybody can verify with there ROM or have a clue whats going on?
Click to expand...
Click to collapse
I cant confirm, I dont have the proper bluetooth stuff. have you checked the cyanogen bugtracker?
I have a few issues after updating from 4.2.5 without wiping.
1. GPS kept losing signal during navigation.
2. Lost three 888 xxxxxxx call receptions today.
3. My wife complained she heard horrible static noises each time when I changed locations. For example, when I moved from outside to inside my building or I stepped out of my truck.
4. I couldn't listen to my voicemail through GV. FC every time.
The rest work great. The rebooting time is super fast.
Thank you so much, guys.
httpftp123 said:
Moving the bug I'm having from another thread to this new one, here it is:
Can somebody confirm if this is just my problem or a ROM bug?
Steps to reproduce:
1) While listening to music using bluetooth
2) Answer an incoming call
3) use the bluetooth headset to pickup phone call
4) Cannot hear any audio nor can the caller hear you talk
I loaded back an android 2.0 rom (jd02 with x3rom 32A patch) and can confirm this is NOT a problem.
I also tried loading back 4.2.5 cyanogen and its a problem there as well.
Anybody can verify with there ROM or have a clue whats going on?
Click to expand...
Click to collapse
I believe I suffer from this issue as well, or at least something related. This was also happening on 4.2.5, but was perfect on my previous ROM, MyHero.
In my case I use a mini USB Y-Splitter adapter in the car: one end goes to the mini-USB cigarette lighter charger, the other to a 3.5mm jack for the AUX-IN in my car stereo. This way I can listen to Pandora or whatever over the stereo. If I answer a call in this setup the other party cannot hear me. Similarly I cannot speak any Google searches, or use Shazam, or anything that requires my microphone to work. I was hoping this release would fix it. Evidently not.
As stated, worked great with MyHero. *sigh*
No one else could confirm this as an issue before, so I thought I was alone... maybe still am...
Newbie here
I'm confused as to what the differences are between the kernel port files and why it matters which one you choose?
Thanks
httpftp123 said:
Moving the bug I'm having from another thread to this new one, here it is:
Can somebody confirm if this is just my problem or a ROM bug?
Steps to reproduce:
1) While listening to music using bluetooth
2) Answer an incoming call
3) use the bluetooth headset to pickup phone call
4) Cannot hear any audio nor can the caller hear you talk
I loaded back an android 2.0 rom (jd02 with x3rom 32A patch) and can confirm this is NOT a problem.
I also tried loading back 4.2.5 cyanogen and its a problem there as well.
Anybody can verify with there ROM or have a clue whats going on?
Click to expand...
Click to collapse
I listen to music in my car audio which is connected to my phone via BT (music from my phone). When someone calls i just pick up call and talk through built in car system. After the call, music just continues playing.
sleepymatt said:
Newbie here
I'm confused as to what the differences are between the kernel port files and why it matters which one you choose?
Thanks
Click to expand...
Click to collapse
they 'adapt' to the roms for which they are written, allowing 32a owners to flash 32b roms on their devices.
you dont really have a choice on which port file to install. there is only one (generally) for each version of a rom.
sleepymatt said:
Newbie here
I'm confused as to what the differences are between the kernel port files and why it matters which one you choose?
Thanks
Click to expand...
Click to collapse
Pick the one that corresponds to the version of CM you are running. Assuming you want to use the newest cm (version 4.2.6), use the 4.2.6 port file

[MOD] Wifi Calling For Any ROM

Wifi Calling working on ROMs that don't have it included.
It looks the files needed as compared to other WifiCalling packages for other phones are:
/system/lib
libganril.so
libhtc_ril.so
libhtc_ril_switch.so
libkineto.so
librilswitch.so
/system/app
com.android.kineto.apk
Then in the build.prop append this line of text to the very end
Code:
rild.libpath=/system/lib/librilswitch.so
THE ZIP IS NOT FLASHABLE
Its only for testing purpose to make sure we get Wifi Calling working properly so we can make a flashable zip later when we start getting AOSP roms and custom kernels
I am going to work on a installable script from the terminal that will copy over the needed files to the correct directories then append the needed line of text do the build.prop
10Char, working on script
In one of the roms they had the t-mob wifi in a zip they didn't test it but I could look there
Updated with some more information that I gathered for testing
There is a kernel and a flashable zip that will put wifi calling back onto your phone. Check the insert coin rom thread for info on it.
silentsnow31802 said:
There is a kernel and a flashable zip that will put wifi calling back onto your phone. Check the insert coin rom thread for info on it.
Click to expand...
Click to collapse
yes but if you also check it, it will also put all the other tmobile crap on your phone, plus he couldn't test it since he is not on tmobile, so have you tried it and verified that it worked?
update posted. I currently have Wifi Calling while using Revolution HD
BrokenWall said:
update posted. I currently have Wifi Calling while using Revolution HD
Click to expand...
Click to collapse
have you check mic volume level? I have many people said they have trouble hearing me. I did a test call to my skype and the mic volume is indeed very low. I had to revert to stock rom to get volume back to normal.
sovereignty68 said:
have you check mic volume level? I have many people said they have trouble hearing me. I did a test call to my skype and the mic volume is indeed very low. I had to revert to stock rom to get volume back to normal.
Click to expand...
Click to collapse
I have always had low mic call volume running the stock ROM. This has been the case with both Sensations I have owned. Never had an issue with Skype, volume is always perfect.
Just tested this myself with the insertcoin build.prop (from the TMOUS Patch) and its working, using the libs and apk provided here.
BrokenWall said:
yes but if you also check it, it will also put all the other tmobile crap on your phone, plus he couldn't test it since he is not on tmobile, so have you tried it and verified that it worked?
Click to expand...
Click to collapse
Yes I have tried it. I was actually the one that tested the flashable kernel. It does install all the other tmobile crap but titanium backup made short work of that.
silentsnow31802 said:
Yes I have tried it. I was actually the one that tested the flashable kernel. It does install all the other tmobile crap but titanium backup made short work of that.
Click to expand...
Click to collapse
give me some time to sort through the differences in the build.props to see what is triggering the difference in wifi calling working or not then we will see if we can get something made.
So after looking at a build.prop from Revolution HD and then comparing it to the one from Virtuous, Stock, and InsertCoin TmoUS mod.
I think I have traced down the issues, looking into it a built more. After I find the needed values I will see if we can make an install script that will mod the build.prop lines and add the libs and apk and restart the phone.
Update for complete working Wifi Calling. I have tested it a few times and it works fine with only these files at minimum, no need to add alot of extra text or HTC/Tmobile crap.
Works for me thanks. Took me a bit to figure out that you still need to install after copying the apk to /system/app.
Thanks again.
Sent from my HTC Sensation Z710e using XDA Premium App
I forgot where I got this (sorry ) but it works on any ROMs I've tried. Flash it on top of the ROM. Currently using it with LeeDroid without any problems.
It doesn't have t-mobile bloatware.
http://www.mediafire.com/?fdsqwfo28lat0qx
tengtengvn said:
I forgot where I got this (sorry ) but it works on any ROMs I've tried. Flash it on top of the ROM. Currently using it with LeeDroid without any problems.
It doesn't have t-mobile bloatware.
http://www.mediafire.com/?fdsqwfo28lat0qx
Click to expand...
Click to collapse
This is not a problem, the only issue I have with this is that you loose any custom tweaks or settings the developer made to his/her ROM because your flashing a basic stock build.prop
I will make a script here shortly that will copy files to the needed directories and then append the needed information to the end of the current build.prop, and all you will need to do is run the script from a terminal or from ADB off the SDCard after each update.
When I start the wifi app, it connects to my network, but it gets stuck on "enabling....". Any suggestions?
Edit: NVM. After I restarted my phone it worked. Thanks.
Wifi calling working for me but have a small issue. The outgoing mic volume is really low on my end. People on the other end of the line can hardly hear me. Any chance you could bump up the mic gain values a bit?
I am having a few issues:
1. When I turn off wifi calling, the app automatically restarts and re-enables it. This occurs even when I select cellular as connection preferences.
2. When I select cellular for connection preferences, with wifi calling ON, it still uses wifi. Why won't it use the cellular signal?
Thanks.

Lineage OS 13 Alpha 4 (links to LOS 14.1 port and TWRP 3.1.0-0 in second post)

Not sure if you guys are seeing this over on androidforums so im posting it here too
READ THIS BEFORE PROCEEDING: I took all the latest updates and was sitting on v20k before I flashed the zip I compiled. I dont know if you have to be, but dont be surprised if things dont work if you arent where I am with your phone.
************************************* Start of dev info***************************************************
kernel sources based off of v20k: https://github.com/touchpro/android_kernel_lge_stock-v20k
all the device and vendor trees are based off of teamregular's work:
h631: https://github.com/touchpro/android_device_lge_h631
msm8916-common: https://github.com/touchpro/android_device_lge_msm8916-common-lineageos13
g4stylus-common: https://github.com/touchpro/android_device_lge_g4stylus-common
vendor: https://github.com/touchpro/android_vendor_lge
also you need a few modded hardware/qcom folders, until the kernel gets updated to play nice with caf sources:
audio-caf: https://github.com/touchpro/android_hardware_qcom_audio-caf
display-caf: https://github.com/touchpro/android_hardware_qcom_display-caf
******************************************End of dev info***************************************************
I would recommend using my TWRP here to flash it: http://androidforums.com/threads/update-twrp-3-0-3-0-built-from-source-2-18-17.1103219/
what I know works:
display
touchscreen
vibration
ril (calling and texting. i cant test data since i dont have a data plan atm)
wifi
buttons
adb
mtp
panel backlight brightness adjustment
camera
video recording
internal storage
external_SD
sound
bluetooth (file transfer, audio)
youtube/netflix (any others i didnt test but i bet they work)
wired headset sound and microphone
microphone
gps/location services
compass
rotation
flashlight and camera flash
nfc (dunno what works and what doesnt, dont have another nfc device or android pay)
notification led
what doesnt work:
double tap to wake
data (manual network selection now works, im getting closer)
maybe some other things
The rom zip:
https://www.androidfilehost.com/?fid=673368273298938085
gapps: http://opengapps.org/ (choose your package to fit your needs. just choose arm and 6.0)
THIS DOESNT COME WITH SU AND THE ONLY WORKING SU I FOUND IS SUPERSU!
Download it here: http://www.supersu.com/download
If you wish to report a bug:
Please give a detailed report of what the bug is, things that could possibly cause it (xposed, magisk, etc) and a logcat that was running while the bug occurred. This means you may have to do things to make the bug occur.
adb logcat > log.txt
And finally, ENJOY!
Also,
Lineage OS 14.1 for the h631/ms631
twrp 3.1.0-0 for the h631/ms631
Hey. I flashed this rom on my friends phone. Its a metro stylo. Everything works but cellular data. Any fix for this?
Support for H635?
This is just for the US model, right? Not for the international H635?
LOS 14.1
Stonkers said:
Hey. I flashed this rom on my friends phone. Its a metro stylo. Everything works but cellular data. Any fix for this?
Click to expand...
Click to collapse
Please elaborate, did you flash this with TWRP and it's all good? I'm still running KATANA and would like to get a little more current.
Thanks!
barguybrady said:
Please elaborate, did you flash this with TWRP and it's all good? I'm still running KATANA and would like to get a little more current.
Thanks!
Click to expand...
Click to collapse
I flashed los 14 with twrp 3.1. cellular data would not work so i restored a backup. Now bluetooth, netflix and youtube wont work in katana rom. Trying to downgrade twrp and flash metro partitions to see if i can get it working.
Any updates on this rom?
Stonkers said:
I flashed los 14 with twrp 3.1. cellular data would not work so i restored a backup. Now bluetooth, netflix and youtube wont work in katana rom. Trying to downgrade twrp and flash metro partitions to see if i can get it working.
Click to expand...
Click to collapse
any updates on this ROM?
whoshotjr2006 said:
Not sure if you guys are seeing this over on androidforums so im posting it here too
READ THIS BEFORE PROCEEDING: I took all the latest updates and was sitting on v20k before I flashed the zip I compiled. I dont know if you have to be, but dont be surprised if things dont work if you arent where I am with your phone.
************************************* Start of dev info***************************************************
kernel sources based off of v20k: https://github.com/touchpro/android_kernel_lge_stock-v20k
all the device and vendor trees are based off of teamregular's work:
h631: https://github.com/touchpro/android_device_lge_h631
msm8916-common: https://github.com/touchpro/android_device_lge_msm8916-common-lineageos13
g4stylus-common: https://github.com/touchpro/android_device_lge_g4stylus-common
vendor: https://github.com/touchpro/android_vendor_lge
also you need a few modded hardware/qcom folders, until the kernel gets updated to play nice with caf sources:
audio-caf: https://github.com/touchpro/android_hardware_qcom_audio-caf
display-caf: https://github.com/touchpro/android_hardware_qcom_display-caf
******************************************End of dev info***************************************************
I would recommend using my TWRP here to flash it: http://androidforums.com/threads/update-twrp-3-0-3-0-built-from-source-2-18-17.1103219/
what I know works:
display
touchscreen
vibration
ril (calling and texting. i cant test data since i dont have a data plan atm)
wifi
buttons
adb
mtp
panel backlight brightness adjustment
camera
video recording
internal storage
external_SD
sound
bluetooth (file transfer, audio)
youtube/netflix (any others i didnt test but i bet they work)
wired headset sound and microphone
microphone
gps/location services
compass
rotation
flashlight and camera flash
nfc (dunno what works and what doesnt, dont have another nfc device or android pay)
notification led
what doesnt work:
double tap to wake
data (manual network selection now works, im getting closer)
maybe some other things
The rom zip:
https://www.androidfilehost.com/?fid=673368273298938085
gapps: http://opengapps.org/ (choose your package to fit your needs. just choose arm and 6.0)
THIS DOESNT COME WITH SU AND THE ONLY WORKING SU I FOUND IS SUPERSU!
Download it here: http://www.supersu.com/download
If you wish to report a bug:
Please give a detailed report of what the bug is, things that could possibly cause it (xposed, magisk, etc) and a logcat that was running while the bug occurred. This means you may have to do things to make the bug occur.
adb logcat > log.txt
And finally, ENJOY!
Click to expand...
Click to collapse
Hey! Why was the "android_device_lge_g4stylus-common" included to build the ROM for h631?
Rotation doesn't work, after flash the rom it work but after a few minutes the rotation not work anymore, is there any fix?
whoshotjr2006 said:
what doesnt work:
double tap to wake
data (manual network selection now works, im getting closer)
maybe some other things
Click to expand...
Click to collapse
Hey, thanks for working on this. I'm trying to get away from Metro stock ROM, but the phone is my entire Internet connection so of course I need data Does that mean it's working for you in your local kit but not in what you uploaded? Either way, I tried manual network selection and it said "registering on MetroPCS" (or equivalent, that was last night so I don't recall precisely) for about 20-30 seconds, then it very briefly flashed a scarcely-readable error message, then bumped it with a message indicating it successfully joined. But I never get a 4G or any similar symbol in the status bar, or any data, so I wondered if there's something I can do, either to force it into submission or to help you out. Thanks again

Improved Audio on Oreo Custom ROMs (Ainur Sauron)

I am part of the team for Ainur Sauron, and I am here to present improved audio on the Le Max 2. Sauron has a userconfig which can be adjusted. Download the latest from there and place the attached file at /sdcard before installing. Make sure to remove the '.txt' at the end of the file too! Enjoy :victory:
Impedance is currently set to 16Ω which can be changed to whatever you desire. To set edit the attached sauron_useroptions file and change qc.impedance to whatever your headphones impedance is in Ohms multiplied by 1000 (eg. for 22Ω it would be 22000).
Tested by @I_Raptor_I on his x2, if it doesn't work just send me a log
EDIT: Attached the file
I did not know that anyone else was using Ainur Sauron on LeX2 It really improves the audio quality significantly on Oreo!
Quick question - why does it say "Axon 7" during installation procedure?
LazerL0rd said:
I am part of the team for Ainur Sauron, and I am here to present improved audio on the Le Max 2. Sauron has a userconfig which can be adjusted. Download the latest from there and place the attached file at /sdcard before installing. Make sure to remove the '.txt' at the end of the file too! Enjoy :victory:
Impedance is currently set to 16Ω which can be changed to whatever you desire. To set edit the attached sauron_useroptions file and change qc.impedance to whatever your headphones impedance is in Ohms multiplied by 1000 (eg. for 22Ω it would be 22000).
Tested by @I_Raptor_I on his x2, if it doesn't work just send me a log
EDIT: Attached the file
Click to expand...
Click to collapse
Hi, I download and flash the version MK II but can't see any app for setting my personal audio. How it works?
GaetanoS.89 said:
Hi, I download and flash the version MK II but can't see any app for setting my personal audio. How it works?
Click to expand...
Click to collapse
Hello GaetanoS.89, first things first uninstall the MK II Magisk module. Now place the given text file in /sdcard folder, then go and flash that module again, it should state that it has detected the user options text file and that's it.
I_Raptor_I said:
Hello GaetanoS.89, first things first uninstall the MK II Magisk module. Now place the given text file in /sdcard folder, then go and flash that module again, it should state that it has detected the user options text file and that's it.
Click to expand...
Click to collapse
I have not installed magisk n the smartphone.
Can you tell me how I can uninstall it?
Do I need magisk to let work this audio mod?
Thanks
GaetanoS.89 said:
I have not installed magisk n the smartphone.
Can you tell me how I can uninstall it?
Do I need magisk to let work this audio mod?
Thanks
Click to expand...
Click to collapse
Magisk isn't needed as it'll install with any configuration. All you need to do is placed the attched file at /sdcard (called Internal Storage) and rename it to sauron_useroptions (remove the .txt. at the end).
LazerL0rd said:
Magisk isn't needed as it'll install with any configuration. All you need to do is placed the attched file at /sdcard (called Internal Storage) and rename it to sauron_useroptions (remove the .txt. at the end).
Click to expand...
Click to collapse
Did it, and after What I have to do?
@Lazerlord: I tried your mod today by described method.
I copied "sauron_useroptions" into sdcard folder by TWRP file explorer.
Afterwards I flashed latest zip (17.03.) using TWRP. Everything was fine with it during this.
Wiped chache and dalvik and rebooted without any problems.
Result: No ringtone anymore, no message sound, but media sound works fine and was adjustable, no app or menue occoured in regard to your mod. I did not check more.
I could succesfully remove your mod by described method (flash again same file from TWRP)
After removal everything was fine as before :good:
My Phone: X829 with latest AEX 8.1 using Magisk 16.0
123Bart said:
@Lazerlord: I tried your mod today by described method.
I copied "sauron_useroptions" into sdcard folder by TWRP file explorer.
Afterwards I flashed latest zip (17.03.) using TWRP. Everything was fine with it during this.
Wiped cache and dalvik and rebooted without any problems.
Result: No ringtone anymore, no message sound, but media sound works fine and was adjustable, no app or menue occoured in regard to your mod. I did not check more.
I could succesfully remove your mod by described method (flash again same file from TWRP)
After removal everything was fine as before :good:
My Phone: X829 with latest AEX 8.1 using Magisk 16.0
Click to expand...
Click to collapse
Ah, well could you follow these instructions on the main thread which say "help to extend features". It'll help us fix those issues. :good:
How was the media sound though? Did it sound better according to you?
LazerL0rd said:
Ah, well could you follow these instructions on the main thread which say "help to extend features". It'll help us fix those issues. :good:
How was the media sound though? Did it sound better according to you?
Click to expand...
Click to collapse
I removed the "sauron_useroptions" from sdcard folder (as it was described in the file itself, that UO is not mandatory) and reflashed the zip-file again.
With this way everything works !
Will read a little bit the instructions now...
Generaly I have to say I am using Leeco CDLA as headphones atm which are extraordinary by themselves.
So maybe I will use adapter for 3,5mm jack whithin next days and try some user options. Leeco Loadspeaker judgement is difficult imho.
Also new AEX is very good ROM in regard to speaker sound I have to say.
On Oreo 8.1.0. PixelRevenge 15.1 works very well in music playback. He gave me a strange problem. I removed the system camera that I can not install anymore. I had to put another one. I have not tried calls and notifications yet
edit:- Notifications and ringtones ok. In-call audio worsened, the voice is less clear. In speakerphone there is a loud hiss that makes the speakerphone unusable
RISS23 said:
On Oreo 8.1.0. PixelRevenge 15.1 works very well in music playback. He gave me a strange problem. I removed the system camera that I cannot install anymore. I had to put another one. I have not tried calls and notifications yet
edit:- Notifications and ringtones ok. In-call audio worsened, the voice is less clear. In speakerphone, there is a loud hiss that makes the speakerphone unusable
Click to expand...
Click to collapse
We're working on a fix for the mixer_paths that'll correct notifications, ringtones, and other audio. I'm happy that you're enjoying music playback. However, the system camera app problem is nothing to do with Sauron it's probably a ROM issue, or possibly even a Magisk issue.
I've installed this Mod by using Magisk 16.0 (v5.6.4) on RR 6.0(22-03-18).
Before I did this I placed the file sauron_useroptions to /sdcard folder.
During the installation Magisk showed that the useroption file was found and used for the installation.
In Poweramp I get the message that there is a problem with app native libraries (libampffmpeg.so).
I don't know whether the error message has something to do with that, but the volume control in Poweramp after flashing this modul is faulty.
Just when the volume is set the half I can hear anything. The volume control steps seems to be broken, but just in Poweramp.(After uninstalling, the issue is gone, but the error message is still sthere)
In other Apps the volume control is normal.
Since I use RR 6.0(8.1) instead of RR 5.8.5(7.1.2) the speaker sounds cheap tinny - Ainur Sauron didn't help to solve this issue. I removed AudioFX, can this be the reason?
It's difficult to describe the issue "cheap tinny", but I think the audio drivers have problems to divorce the difference frequences.
On RR 5.85. the speaker was more "smooth" and the frequences were divorced much better.
Sorry for my bad english and the critic. I think I'm an individual case and other people don't have the problems which I have, but in my case, the Mod seems not to improve the audio quality.
Azubi96 said:
I've installed this Mod by using Magisk 16.0 (v5.6.4) on RR 6.0(22-03-18).
Before I did this I placed the file sauron_useroptions to /sdcard folder.
During the installation Magisk showed that the useroption file was found and used for the installation.
In Poweramp I get the message that there is a problem with app native libraries (libampffmpeg.so).
I don't know whether the error message has something to do with that, but the volume control in Poweramp after flashing this modul is faulty.
Just when the volume is set the half I can hear anything. The volume control steps seems to be broken, but just in Poweramp.(After uninstalling, the issue is gone, but the error message is still sthere)
In other Apps the volume control is normal.
Since I use RR 6.0(8.1) instead of RR 5.8.5(7.1.2) the speaker sounds cheap tinny - Ainur Sauron didn't help to solve this issue. I removed AudioFX, can this be the reason?
It's difficult to describe the issue "cheap tinny", but I think the audio drivers have problems to divorce the difference frequences.
On RR 5.85. the speaker was more "smooth" and the frequences were divorced much better.
Sorry for my bad english and the critic. I think I'm an individual case and other people don't have the problems which I have, but in my case, the Mod seems not to improve the audio quality.
Click to expand...
Click to collapse
I've heard from @I_Raptor_I that RR already has a loss in audio quality. I advise the use of another ROM and if the tinnyness persists use the attached Sauron zip.
The Poweramp problem is probably due to DVC (Direct Volume Control) in their FAQ they state it may cause issues with 24-bit or HQ audio. The native libraries issue is not related to Ainur as it doesn't touch that file.
About the audio. ROM (which Sauron edits) isn't the only thing that contributes. the HAL and kernel do too, so RR's bad audio may not be able to be fixed or corrected by Ainur but we'll take a look into it.
Ok guys, @LazerL0rd is kindly developing a very nice Oreo kernel for our Le Max 2 improving the speeds dramatically and most importantly audio, he has already optimized our Qualcomm DSP, expect a very nice audio experience on Oreo from now on so stay tuned and make sure to thank LazerL0rd for his hard work, he doesn't even have a Le Max 2 and yet he is spending hours making this kernel for us
Magisk viper?
I have installed viper on RR Oreo via magisk and audio quality is now on point with how it worked through flashing viper and Dolby Atmos on the nugart RR via twrp. There are a couple of things to consider though, viper must be activated before listening to music through your app, viper does not work over Bluetooth by default in viper meaning you must go to viper settings and set mode to compatibility from normal and then viper will work over Bluetooth. The last thing, and I can't remember if this was true on nugart but viper seams to only work with music that you have downloaded to your device and will not work with streaming music from the web.
mikedavo said:
I have installed viper on RR Oreo via magisk and audio quality is now on point with how it worked through flashing viper and Dolby Atmos on the nugart RR via twrp. There are a couple of things to consider though, viper must be activated before listening to music through your app, viper does not work over Bluetooth by default in viper meaning you must go to viper settings and set mode to compatibility from normal and then viper will work over Bluetooth. The last thing, and I can't remember if this was true on nugart but viper seams to only work with music that you have downloaded to your device and will not work with streaming music from the web.
Click to expand...
Click to collapse
To fix streamed music install universal deep buffer remover magisk module by @Zackptg5 , it's on the repo too.
I_Raptor_I said:
Ok guys, @LazerL0rd is kindly developing a very nice Oreo kernel for our Le Max 2 improving the speeds dramatically and most importantly audio, he has already optimized our Qualcomm DSP, expect a very nice audio experience on Oreo from now on so stay tuned and make sure to thank LazerL0rd for his hard work, he doesn't even have a Le Max 2 and yet he is spending hours making this kernel for us
Click to expand...
Click to collapse
Kernel released and in Havoc OS. Source is https://github.com/Havoc-Devices/android_kernel_leeco_msm8996. I'll update personal repo and both to 3.18.108 soon.
does it work on xiaomi mi 6 miui 9? Android 8.0
Wysłane z mojego MI 6 przy użyciu Tapatalka
LazerL0rd said:
Kernel released and in Havoc OS. Source is https://github.com/Havoc-Devices/android_kernel_leeco_msm8996. I'll update personal repo and both to 3.18.108 soon.
Click to expand...
Click to collapse
waitting for the update, thanks

[FIX][NXP] AUDIO FIX for All Custom Roms

- Fixed Audio Compression in roms
- Fixed Audio compression in PUBG (Now full Stock rom like audio Feel) No stutter at all
- Updated to Stock Pie Audio Blobs and Configs
- Removed blobs and config files which conflict with the original audio policy and audio effects...
* Flash it Like a normal zip ( if it gives any error on flashing then mount system and vendor else u are good to go)
Special Thanks to @EndLess for the base zip and idea.
------------------------------------------------------------------------
PLEASE READ THIS BEFORE DOWNLOADING:
If, you are confused as to which Audio zip to install, please read my post here, before downloading:
https://forum.xda-developers.com/max-pro-m2/themes/audio-fix-custom-roms-t3933011/post81424353
------------------------------------------------------------------------
DOWNLOADS
For Q ROMs:
**Removed
Read this post:
https://forum.xda-developers.com/max-pro-m2/themes/audio-fix-custom-roms-t3933011/post81846069
For Pie ROMs:
Audio_fix_24bitP.zip
Checksum (SHA-1):
83611283804d2a9d841b2bbbf86bc9bd4f4a9c5d
Download:
https://drive.google.com/file/d/1fGiQbIBZpN5xcDkqVtY4gDW5IykCSWHm/view?usp=sharing
Audio_fix_16bitP.zip
Checksum (SHA-1):
d781fa85662acfa5929d51f3bf5a5a73331af0c1
Download:
https://drive.google.com/file/d/1ecd7d5fJzvaU_oU7DaLKAGSNOmO3BWOu/view?usp=sharing
------------------------------------------------------------------------
NOTE FOR ANDROID 10 USERS
If you facing any issues with the Q zips, for example if the phone gets stuck at boot logo, then it may be an issue of your recovery.
In such cases, do the following:
- Make sure you use TWRP recovery
- Mount /vendor before flashing
- Clear cache and dalvik
- Reboot
TROUBLESHOOTING
1) You have to perform a dirty flash of your ROM, when switching between the two versions of the audio fix.
2) After installing the fix, you might have to uninstall and reinstall your audio mods like AML and Sauron, otherwise there are chances that the fix would not appear to work or your audio mods might misbehave.
3) After installing the fix, if you are facing some minor distortions then reboot to recovery and install it one more time.
4) If some distortions are still present, then try installing the 16bit zip.
------------------------------------------------------------------------
CHANGE LOG
14-Jan-2020
- Ported both audio fix zips to Android 10. There will be 4 zips now. Select the appropriate one that you need from the 1st post
- Used audio config from latest arrow 10 with a few modifications. Thanks to Arrow Dev Team.
- Removed some unnecessary audio blobs and configs. Almost no distortions in audio now.
23-Sept-2019
- Fixed the 24bit zip to work with lineage and other ROMs based on the lineage tree...
15-July-2019
- Audio_fix_v5.zip renamed to Audio_fix_24bit.zip
- Audio_fix_v6.zip renamed to Audio_fix_16bit.zip
- Removed most redundant config and mixer files (Already present in custom ROM tree)
- Audio blobs taken from WW (India) 1906.067 release
- Added newer changes from new Arrow trees to audio files
26-May-2019
- Created a new separate 16bit zip
- Fixed audio distortions during audio recording (e.g. during WhatsApp voice notes, call waiting etc.)
24-May-2019
Quick Update:
- Fixed Dirac/ZenfoneParts crash (On some ROMs like Havoc and Superior)
- Properly fixed PUBG audio this time...
24-May-2019
- Initial release
- Fixed BT audio issue
Hit thanks :good: if it helped you
Are all the bugs, like BT audio, fixed?
lscambo13 said:
Are all the bugs, like BT audio, fixed?
Click to expand...
Click to collapse
Yes... Tested myself...
Tyakrish said:
- Fixed Audio Compression in roms
- Fixed Audio compression in PUBG (Now full Stock rom like audio Feel) No stutter at all
- Updated to Stock Pie Audio Blobs and Configs
- Removed blobs and config files which conflict with the original audio policy and audio effects...
* Flash it Like a normal zip ( if it gives any error on flashing then mount system and vendor else u are good to go)
Special Thanks to @EndLess for the Base zip and idea.
Download Link : -
https://drive.google.com/uc?id=1mS2rSwRM0vE_sQUJWAtAgm5UHSUjeZyq&export=download
Filename: Audio_fix.zip
Checksum(SHA-1): 7b24766148b278aa372a9d3f54f9af9e83b33035
Click to expand...
Click to collapse
Thanks man
Updated zip:
- Fixed Dirac crash (On some ROMs like Havoc and Superior)
- Properly fixed PUBG audio this time...
Tyakrish said:
Yes... Tested myself...
Click to expand...
Click to collapse
Awesome
Updated zip:
- Fixed audio distortions during audio recording (e.g. during WhatsApp voice notes, call waiting etc.)
EDIT:
The new zip 'Audio_fix_v6.zip' uses stock pie audio config. This zip fixes some minor audio distortions which might occur as mentioned above.
But if you aren't facing any distortions, then I would suggest that you install 'Audio_fix_v5.zip' which I also posted above. The v5 zip uses Arrow audio config and uses 24 bit audio PCM for its primary output, which means more accurate audio and better audio quality.
Thanks @TekSabz and @Praveen Pannu for testing
is this fix bluetooth audio lag in pubg
is this fix bluetooth audio lag in pubg
Does this also fix very low incall volume on original rom? Thank you!
g40q90 said:
Does this also fix very low incall volume on original rom? Thank you!
Click to expand...
Click to collapse
This fix is meant for custom ROMs only... Flashing on stock pie may have unforseen results...
You can try it though. I shall not be held responsible for any damages.
Make sure you have backed up your system and vendor through recovery before flashing the zip. If you are having any issues with audio, or the entire ROM itself, restore system and vendor from the backup.
If it does work, then do tell me.
Thanks man appreciated
Update:
As you might know, GCam has been fixed in most of the recent custom ROMs. For this purpose, the developers had to switch to a different device tree. As a consequence of this, audio somewhat crackles in the newer updates of some custom ROMs (according to users).
I want to inform you that some users have reported that flashing any of my audio fixes can fix this issue also, since my zip contains original audio blobs, mixer and config files from Stock Pie.
Now I don't want to create more confusion, so I am not making another zip.
For Advanced users, in case you want the same sound which was default in the custom ROMs before the above mentioned changes to device tree, then you can follow the steps below:
1) From a previous build of your ROM (before GCam was functional), go to /vendor/etc/audio and copy and backup the file "audio_policy_configuration.xml"
2) Flash the newer build of your ROM.
3) Flash any of my audio zip files.
4) After flashing the new build and one of my audio fixes, in TWRP File Manager, go to /vendor/etc/audio and delete the audio policy configuration file which is present and replace it with the one which you had backed up earlier.
5) Reboot. Done.
Otherwise, you can even modify my zip and replace the audio policy config file in it. In fact I think someone has already done it.
XDA is all about learning ! Enjoy
Edit:
It does seem that on some of the telegram channels, some audio fix zips are being shared. I have seen them. They are basically rip-offs of mine and Endless's zips.
I have no problem that people rip-off, but those that do it and release them, must give proper credits to the original person i.e. @EndLess.
Also these rip-off zips do nothing else but just create more confusion for the users.
Arown orton said:
Thanks man appreciated
Click to expand...
Click to collapse
No prob.
Works for me. Thx mate.
Updates:
15-July-2019
- Audio_fix_v5.zip renamed to Audio_fix_24bit.zip
- Audio_fix_v6.zip renamed to Audio_fix_16bit.zip
- Removed most redundant config and mixer files (Already present in custom ROM tree)
- Audio blobs taken from WW (India) 1906.067 release
- Added newer changes from new Arrow trees to audio files
Please note the above changes to the filenames of the two zips...
UPDATE:
- Fixed the 24bit zip to work with lineage and other ROMs based on the lineage tree...
Download from 1st post...
Tyakrish said:
UPDATE:
- Fixed the 24bit zip to work with lineage and other ROMs based on the lineage tree...
Download from 1st post...
Click to expand...
Click to collapse
These zips are not working on pixel experience android 10 (asus max pro m2). , After flashing these zips phone stuck on Google logo
---------- Post added at 04:17 PM ---------- Previous post was at 04:12 PM ----------
Tyakrish said:
Updated zip:
- Fixed audio distortions during audio recording (e.g. during WhatsApp voice notes, call waiting etc.)
EDIT:
The new zip 'Audio_fix_v6.zip' uses stock pie audio config. This zip fixes some minor audio distortions which might occur as mentioned above.
But if you aren't facing any distortions, then I would suggest that you install 'Audio_fix_v5.zip' which I also posted above. The v5 zip uses Arrow audio config and uses 24 bit audio PCM for its primary output, which means more accurate audio and better audio quality.
Thanks @TekSabz and @Praveen Pannu for testing
Click to expand...
Click to collapse
Not working in pixel experience android 10 asus max pro m2
Please help
P.K.S said:
These zips are not working on pixel experience android 10 (asus max pro m2). , After flashing these zips phone stuck on Google logo
---------- Post added at 04:17 PM ---------- Previous post was at 04:12 PM ----------
Not working in pixel experience android 10 asus max pro m2
Please help
Click to expand...
Click to collapse
The zips are not updated to work with Android 10 yet. For now please only use them on Pie ROMs.
Deleted
Couldn't install it on Pixel Experience with Android 10 (2019-12-12 version). Phone doesn't boot after flashing 24-bit audio patch.

Categories

Resources