How To Guide [ROOT] Realme GT2 Audio recording quality mod (magisk module) - Realme GT 2

I've made a mod to improve the audio quality in videos recorded with the camera. For me, it sounds much better than stock. If you try it, let me know what you think.
Installing it requires root and magisk:
1. Download GT2RecQualityMod[version].zip on the phone,
2. Open magisk,
3. Go to modules,
4. Click "install from storage",
5. Choose the file,
6. Reboot,
7. Test with stock camera.
This is my first attempt and it's tested only on my Realme GT2 (RMX3311/GDPR), Android 13 firmware C.10 and C.12, and with just the apps I have on my phone. If some apps don't work or the audio sounds like without the mod, please let me know.
Latest versions:
----------- GT2RecQualityMod1.2.zip -----------
- Updated recording profiles used by the Recorder app with improved loudness and clarity
- The rest is the same as in v1.1
----------- GT2RecQualityMod1.1.zip -----------
- Based on lvimfs (audio parameters like NS, EQ, Compresor etc.), with manual tuning of parameters in /odm/etc/lvimfs_params/LVIMFS_Parameter_ID4_MIC_Cam.txt
- I've disabled some audio processors like EQ's, Compressor, Limiter - that are not configured correctly
- Activated Wind Noise Suppression - and it works amazing! Tested by blowing into the mic )
----------- GT2RecQualityMod1.zip -----------
- Based on raw mic quality, it disables lvimfs (audio parameters like NS, EQ, Compresor etc.)
To Do: get rid of white/static noise without losing volume

Thanks for sharing, it's only replacing mixer_paths.xml and audio_platform_info.xml, right?
And a question wizard:
Would it be possible to copy the parameters or files from a custom rom for GT2 e.g. PixelOS, if that has good audio recording, or would it f*k something rom/device specific up?
Here are backups from my GT2 - RMX3311_11.C.10_EU_202303171905 if anyone needs, in /system/vendor/etc
Stock Camera got louder, but introduced noise.
Your Gcam Mod sounds the best, it's a bit quieter but 0 noise.

To adjust the volumes (mic sensitivity) you can edit mixer_paths.xml from the zip file. Search "handset-stereo-dmic-switch" and modify the marked values from below. Reinstall the module and reboot.
or
The working xml files are in /odm/etc those from system/vendor are not used by android anymore. You can edit them directly, after installing the Magisk module.
If you like to try the xml files from a custom rom (GT2 specific) you can replace mixer_paths.xml and audio_platform_info.xml located in /data/adb/modules/GT2RecQualityMod/odm-files/ and restart. files from odm-files are linked (mirrored) with those from /odm/etc
<!-- Lucian: here is the configuration set for camera apps. -->
<path name="handset-stereo-dmic-switch">
<!-- Lucian: added some options to play with volumes -->
<ctl name="TX_DEC1 Volume" value="84" />
<ctl name="TX_DEC2 Volume" value="84" />
...
...
...
<!-- Lucian: this also affect the volumes -->
<ctl name="ADC1 Volume" value="18" />
<ctl name="ADC4 Volume" va lue="18" />
</path>

Will do, i have tried the PixelOS ones, to save some time - the result is pretty much the same, louder with introduction of noise.
/here:

Can you attach those from PixelOS? I'll like to take a look

New release: GT2RecQualityMod1.1.zip
based on tuning the parameters of
/odm/etc/lvimfs_params/LVIMFS_Parameter_ID4_MIC_Cam.txt
- added and configured wind noise suppression / canceling
There are a lot of options in there, but not documented anywhere. I think the files are generated by "Qualcomm audio calibration tool" that requires license...
Qualcomm did something amazing with lvimfs_params, that allows the developer to tune every aspect of audio recording but Realme developers didn't care to do something good with this technology
If someone would like to contribute to the improvement of the audio quality, please give it a try! If we could remove the static noise it will be awesome, I think modifying the EQ to lower the static noise frequencies will help.
Regarding lvimfs_params, what I've learned so far:
lines containing "Operating Mode"
enables/disables that feature, like
0 // LVAC_LVAC_InputEq_OperatingMode disables the input equalizer, 1 enables it;
the following lines containing _InputEq_ are parameters like gain, band, frequency etc. that changes the aspects of recording.
There is no documentation, is just trials.
For changes to apply a reboot is required, maybe restarting service will be faster, but I don't know which one...
Have fun!

Have a much better sound obviously! I see one user did bitrate up mod, could you merge your mode plus 320kbps modification. Thank you!
Link

It is on my list, it won't improve much of the quality still. Now I'm more preoccupied on reducing the static noise. It will be included in the next release.

New release:
GT2RecQualityMod1.2.zip
- Updated recording profiles used by the Recorder app with improved loudness and clarity
- The rest is the same as in v1.1
Could not find a way to change the audio bitrate, if someone knows what file is responsible please help, I've tested all media_profiles(_V1_0).xml that I've found and none of them worked...

I played around with trying to get the Bitrate up but just managed to destroy Video Recording, so just as a pointer in my case only changing the Bitrates in the various recording <EncoderProfiles> in "media_profiles.xml" did not work.

I want to report some strange behavior. I face the problem with this mod on some applications. First, I'm on RUI C12 EU, with stock camera, I recorded three videos in a row and all of them have broken audio, the issue is feel like microphone have gain boost +30db sound was capped and distorted. The second app is element(chat/voice) when i try to record voice face again same problem. I will attach some samples to understand better.
When I disable the mod the issue still presents, only when remove the mod audio is stock/"fine".

@b0nb0n3v Something is wrong, but I don't know what... Do you have other magisk modules installed that could change mixer_paths.xml or lvimfs_params? Maybe they are conflicting.
I've attached a sample of how it sounds on my device. Stock camera, mod v1.2:

wizard8400 said:
@b0nb0n3v Something is wrong, but I don't know what... Do you have other magisk modules installed that could change mixer_paths.xml or lvimfs_params? Maybe they are conflicting.
I've attached a sample of how it sounds on my device. Stock camera, mod v1.2:
Click to expand...
Click to collapse
I have andreno gpu drivers and systemless host in the past i tried mixer_paths.xml for 320kbps mod but with no difference I decide to remove it. Could this mod couse this bug, it's removed long time ago? The problem is always when the sound/speech is lound on quiet place or low sound recording is fine. Tia

b0nb0n3v said:
I have andreno gpu drivers and systemless host in the past i tried mixer_paths.xml for 320kbps mod but with no difference I decide to remove it. Could this mod couse this bug, it's removed long time ago? The problem is always when the sound/speech is lound on quiet place or low sound recording is fine. Tia
Click to expand...
Click to collapse
Test if my mixer_paths backup a in the top of the thread makes a difference, if you don't have one yourself. Maybe the change stayed?

smashda said:
Test if my mixer_paths backup a in the top of the thread makes a difference, if you don't have one yourself. Maybe the change stayed?
Click to expand...
Click to collapse
Thank you I check the files and there are stock, my be I'm the private case with this "bug"...

Related

[MOD][Aroma]StereoMOD™ & S-Force Z/ZR/ZL v4.0 (10/10/14)

I am happy to present my StereoMOD™ based on dontbelieve mod from Z1. I did modify XZ snd_soc_msm files so that they will output Speaker and Earpiece at the same time like in Z1 mod.
What will this do?
Achieve real Stereo and surround sound effect from both left and right channels by using earpiece as additional speaker.
To test out rotate the device to landscape and try some stereo video or music.
Try this:
-Left/Right Stereo Audio/Visual Test.: http://youtu.be/dvqbq_0jZ_U
-Dolby Digital - HD Surround Sound Test: http://youtu.be/PvnlpPWAcZc
Disclaimer
I am not responsible for any damage caused by this mod. Eg, your phone is broken, you miss any important call, alarm didn't go off and you were late for work, or your earpiece is busted. It's your own risk. Proceed with Caution, you have been warn.
Requirement:
Xperia Z, Xperia ZR or Xperia ZL
Stock, or Stock Base 4.3-4.4.4, Dirty Unicorn v7.8(4.4.4), KMA AOSPA 30/07 or possibly all custom roms, u name it?
recovery installed
4-way rotation enabled, if auto channel swapping is selected.
Rooted
Click to expand...
Click to collapse
Installation:
Download the latest version of StereoMod.zip
Flash it through recovery
Select backup feature of the aroma, so you can always restore it back.
Select your preferred channels configurations, features, volumes and install.
Reboot
Click to expand...
Click to collapse
Manual Installation: obsolete
Unzip the package
Copy snd_soc_msm_2x_Fusion3 from the package
Replace this file in to /system/etc/snd_soc_msm folder
Set permission -rw-r--r--(644).
And Reboot!
Not satisfied just yet? (obsolete)
How about having full control over the volume for both speaker and earpiece?
Open the snd_soc_msm_2x_Fusion3 file that you just replaced and edit with editor. I recommended using 920 Text Editor or DroidEdit on mobile which could run such a big code.
Go to line #2966, you will see that the following code is related to speaker. Scroll down to line #2985 and #2986, you will see these code:
'RX1 Digital Volume':1:73
'RX3 Digital Volume':1:71​RX1 is Earpiece and RX3 is Loudspeaker. Change these blue values will effect the volumes for xLoud off.
If you scroll down alittle bit to line #3010, you'll noticed instantly that it is related to xLoud on. Do the same to Line #3029 and #3030.
'RX1 Digital Volume':1:74
'RX3 Digital Volume':1:72​Change these values will effect volumes for xLoud on. Becareful not to raise RX1 volume too high, it might fry your earpiece. Both of their stock default value is 68. You take full responsible for your own tweak.
How about swapping left and right channels? with the cost of broken Loudspeaker during call (obsolete)
As now you are familiar with the code. I'll go short this time.
Modify these Lines between line #2972 and line #2975.
'RX3 MIX1 INP1':0:RX1
'RX3 MIX1 INP2':0:RX6
'RX1 MIX1 INP1':0:RX2
'RX1 MIX1 INP2':0:RX7​And these Lines between line #3016 and line #3019
'RX3 MIX1 INP1':0:RX1
'RX3 MIX1 INP2':0:RX6
'RX1 MIX1 INP1':0:RX2
'RX1 MIX1 INP2':0:RX7​All you have to do is to replace all RX3 with RX1 and all RX1 with RX3 in the BLUE values. And you're done.
UninstallObsolete, use uninstall or restore options of the aroma instead
Flash StereoMod XZ-Revert.zip and reboot
Download Link:
v4.0 - https://www.mediafire.com/?laink00e1br010e
v2.0 - http://www.mediafire.com/view/qzvt1e272s5v8gs
v1.2 - http://www.mediafire.com/download/or4xz7z941jy11m/StereoMod_XZ_v1.2.zip
v1.1 - http://www.mediafire.com/download/727h9hu2c57xt57/StereoMod_XZ_v1.1.zip
Revert - http://www.mediafire.com/?6y6pdfye4ro2yyy
Click to expand...
Click to collapse
Beta: (obsolete)
-StereoMod v1.2 tweak by Metallijim - http://www.mediafire.com/view/55m2wc9tsvys615/snd_soc_msm_2x_Fusion3(Metallijim_mod
This tweak will REDUCE speaker volume which will possibly BALANCE OUT the differences between speaker and earpiece volume.
If you like my works and want to support future development. Please donate to me or buy me a bear,... I meant Beer.
Bitcoin: 1Etkcm3bhpdr7htMwAzRN1CQnUodq42jLn​Changelog:
v4.0:
Bring Default channel back
Make S-Force as an option
Backup and Restore feature - for any rom
Uninstall option - mostly for stock rom
Added Safety measure
Fix small bugs from v3.0
Optimized snd file
v3.0:
->Skipped<-
Auto channel swapping based on device rotation, but it tend to swap only when the device is in portrait, or in upside down portrait.(Only for Stock 4.4.4)
S-Force ported from Xperia Tablet Z (Included with Auto channel swapping, Only for Stock 4.4.4)
xLoud as a channel swapping switch!-xLoud always enabled
Fixed Loudspeaker on call bug for swapped channel-Finally!
Stereo Ringer as an option
Stereo FM radio as an option
Top notch volumes
Earpiece boost
Optimised Headphone boost
Updated snd file to 4.4.4
v2.0:
Simplified aroma installer
Various volume level choices
Swapped channels enabled, but earpiece as a loudspeaker in call.
Headphone boost
Earpiece boost
Ringer boost
Bass boost - hopefully slightly!
v1.2:
extra volume boost
Distortion reduction
Swapped channels to fix loudspeaker during call
v1.1:
Volume Boost
v1.0:
initial release
Click to expand...
Click to collapse
Bugs:
let me know
Auto Channel swapping only swap during portrait and upside down portrait, instead of landscape!
won't active loudspeaker during phonecall?
Credit:
-dontbelieve - for Z1 Stereo Mod
-Metallijim - a great beta tester and for a beautiful aroma splash screen! Well done mate
-androidfreak70 - a great help
-Anyone - who made recovery and aroma possible
-Sony
i will test and report,tnx a lot man
jing000l said:
i will test and report,tnx a lot man
Click to expand...
Click to collapse
OK and let me know if it works!
Sent from my SGP321 using XDA Premium 4 mobile app
Works awesome.
Thank you for porting this mode to ZR:good:
I'm so happy, good job
Waiting for more reviews, Im still unrooted. Hesitant as its my new phone. But I like the idea and will try it.
Worked
Downloaded the 1.2 Version and the sounds are reverted (I rotated my device to left landscape and when i tried the youtube test, the sound was revert, anyways, I hope it could be more balanced as the earpiece is not that too noticeable
Kratellismorru said:
Downloaded the 1.2 Version and the sounds are reverted (I rotated my device to left landscape and when i tried the youtube test, the sound was revert, anyways, I hope it could be more balanced as the earpiece is not that too noticeable
Click to expand...
Click to collapse
Well it's not revert but defaults channels is design that way, i'm working on a way to swap channels. Maybe u could try the beta tweak or manually set both volume urself.
Sent from my C6903 using XDA Premium 4 mobile app
Working fine here! Thanks alot keep up
Thank you, it works perfectly... The loudspeaker too.
Sent from my C6603 using XDA Free mobile app
v2 is up! Have fun exploring your favorite spot. Start from low volume to the top.
Thanks to @Metallijim for his beautiful aroma splash screen!
Changelog:
v2.0:
Simplified aroma installer
Various volume level choices
Swapped channels enabled, but earpiece as a loudspeaker in call.
Headphone boost
Earpiece boost
Ringer boost
Bass boost - hopefully slightly!
Click to expand...
Click to collapse
Sent from my C6903 using XDA Premium 4 mobile app
Sent from my C6903 using XDA Premium 4 mobile app
Wow crazy loud is really freaking loud
Thanks it works great!
Thread updated. V4 changelog:
v4.0:
Bring Default channel back
Make S-Force as an option
Backup and Restore feature - for any rom
Uninstall option - mostly for stock rom
Added Safety measure
Fix small bugs from v3.0
Optimized snd file
v3.0:
--->Skipped<---
Auto channel swapping based on device rotation, but it tend to swap only when the device is in portrait, or in upside down portrait.(Only for Stock 4.4.4)
S-Force ported from Xperia Tablet Z (Included with Auto channel swapping, Only for Stock 4.4.4)
xLoud as a channel swapping switch!-xLoud always enabled
Fixed Loudspeaker on call bug for swapped channel-Finally!
Stereo Ringer as an option
Stereo FM radio as an option
Top notch volumes
Earpiece boost
Optimised Headphone boost
Updated snd file to 4.4.4
Click to expand...
Click to collapse
Tried first time, Its good and thanks for still working with ZR group
request:
1. In call also, the volume is stereo which must not be in that way I guess
2. The treble is way too high in earphones in comparison to bass and mids which is kindof irritating to ears. (I'm using Sony MDR-EX110LP earphones)
EDIT: also the experimental Left/Right interchange on ratation is not working
sshivampp said:
Tried first time, Its good and thanks for still working with ZR group
request:
1. In call also, the volume is stereo which must not be in that way I guess
2. The treble is way too high in earphones in comparison to bass and mids which is kindof irritating to ears. (I'm using Sony MDR-EX110LP earphones)
EDIT: also the experimental Left/Right interchange on ratation is not working
Click to expand...
Click to collapse
Thanks for ur feedback. The auto channel swapping is not really working the way it should yet. It will only be swapped upon portrait and portrait upside down orientation. Their for 4 way rotation must be enabled. Therefore, rotate upside down first before entering landscape. A demo on how it works will be posted later!
Edit: 1) incall speakerphone stereo is the only thing that i can't achieve right now.
2) High treble is the hardware limitation of the earpiece. It wouldn't be able to sound as deep as speaker. However, this mod is more preferable on Xperia Z, since Xperia Z main speaker goes through water proof membrane. So it doesn't sound much of a difference between both speakers.
Stereo
Working great!!!! thank you
monivan said:
I am happy to present my StereoMOD™ based on dontbelieve mod from Z1. I did modify XZ snd_soc_msm files so that they will output Speaker and Earpiece at the same time like in Z1 mod.
What will this do?
Achieve real Stereo and surround sound effect from both left and right channels by using earpiece as additional speaker.
To test out rotate the device to landscape and try some stereo video or music.
Try this:
-Left/Right Stereo Audio/Visual Test.: http://youtu.be/dvqbq_0jZ_U
-Dolby Digital - HD Surround Sound Test: http://youtu.be/PvnlpPWAcZc
Disclaimer
I am not responsible for any damage caused by this mod. Eg, your phone is broken, you miss any important call, alarm didn't go off and you were late for work, or your earpiece is busted. It's your own risk. Proceed with Caution, you have been warn.
Requirement:
Installation:
Manual Installation: obsolete
Unzip the package
Copy snd_soc_msm_2x_Fusion3 from the package
Replace this file in to /system/etc/snd_soc_msm folder
Set permission -rw-r--r--(644).
And Reboot!
Not satisfied just yet? (obsolete)
How about having full control over the volume for both speaker and earpiece?
Open the snd_soc_msm_2x_Fusion3 file that you just replaced and edit with editor. I recommended using 920 Text Editor or DroidEdit on mobile which could run such a big code.
Go to line #2966, you will see that the following code is related to speaker. Scroll down to line #2985 and #2986, you will see these code:
'RX1 Digital Volume':1:73
'RX3 Digital Volume':1:71​RX1 is Earpiece and RX3 is Loudspeaker. Change these blue values will effect the volumes for xLoud off.
If you scroll down alittle bit to line #3010, you'll noticed instantly that it is related to xLoud on. Do the same to Line #3029 and #3030.
'RX1 Digital Volume':1:74
'RX3 Digital Volume':1:72​Change these values will effect volumes for xLoud on. Becareful not to raise RX1 volume too high, it might fry your earpiece. Both of their stock default value is 68. You take full responsible for your own tweak.
How about swapping left and right channels? with the cost of broken Loudspeaker during call (obsolete)
As now you are familiar with the code. I'll go short this time.
Modify these Lines between line #2972 and line #2975.
'RX3 MIX1 INP1':0:RX1
'RX3 MIX1 INP2':0:RX6
'RX1 MIX1 INP1':0:RX2
'RX1 MIX1 INP2':0:RX7​And these Lines between line #3016 and line #3019
'RX3 MIX1 INP1':0:RX1
'RX3 MIX1 INP2':0:RX6
'RX1 MIX1 INP1':0:RX2
'RX1 MIX1 INP2':0:RX7​All you have to do is to replace all RX3 with RX1 and all RX1 with RX3 in the BLUE values. And you're done.
UninstallObsolete, use uninstall or restore options of the aroma instead
Flash StereoMod XZ-Revert.zip and reboot
Download Link:
Beta: (obsolete)
-StereoMod v1.2 tweak by Metallijim - http://www.mediafire.com/view/55m2wc9tsvys615/snd_soc_msm_2x_Fusion3(Metallijim_mod
This tweak will REDUCE speaker volume which will possibly BALANCE OUT the differences between speaker and earpiece volume.
If you like my works and want to support future development. Please donate to me or buy me a bear,... I meant Beer.
Bitcoin: 1Etkcm3bhpdr7htMwAzRN1CQnUodq42jLn​Changelog:
Bugs:
let me know
Auto Channel swapping only swap during portrait and upside down portrait, instead of landscape!
won't active loudspeaker during phonecall?
Credit:
-dontbelieve - for Z1 Stereo Mod
-Metallijim - a great beta tester and for a beautiful aroma splash screen! Well done mate
-androidfreak70 - a great help
-Anyone - who made recovery and aroma possible
-Sony
Click to expand...
Click to collapse
can this be ported to other devices??
Of course
5.0 update?
yes, support for new stock lollipop?=)
5xx support pls ???? we are waiting for this

[MOD][v2.0.0 - 2016 05 09] MixerMod *Stereo Speakers + Audio Adjustments*

*T&C*
When posting in this thread be respectful to all members and abide by XDA rules/guidelines.
Do not re-use any included files/code in another project without prior permission.
I am not responsible for anything that happens as a result of using these files, instructions or commands/code.
Your destiny is your own.
Click to expand...
Click to collapse
MixerMod
Stereo speaker output and hardware level audio tweaks for the Moto G 3rd Gen.
Features
Survival Script
Multiple Editions
Backup / Restore
System-less Support
Customisable Installer
Audio Enhancements
(modified mixer_paths.xml)
Latest updates from CyanogenMod & Motorola
Volume boost for handset (in-call), headphones & tty
Stereo speaker output for media audio, speaker phone, system sounds, alarms, etc
***DISCLAIMER***
By using this mod you take full responsibility for, but not limited to, any damage that may occur to your device, data, ears, or musical taste, etc
You agree not to hold the author liable in anyway.
Do not blame me if; your sound stops, jaw drops, thermonuclear war starts or zombie apocalypse now
Click to expand...
Click to collapse
*Install at your own risk*
Compatibility
Device
Moto-G3 merlin
Moto-G3 osprey
Moto-E2 surnia
may work on other devices with similar hardware
ROM
(Android L 5.1.1 – M 6.0.1)
Stock Moto, CM based, AOSP
should work with any ROM/kernel
Requirements
A Compatible Device
Custom recovery (temporary boot or permanent flash) OR a file-manager with RW /system
(stock recovery has not been tested so pls report any results here)
NOT Required
Root, busybox, manual modifications
**NANDROID NANDROID NANDROID**
It is advised to always have a recent nandroid/twrp backup of /system (minimum) saved locally before making any critical system changes, so please do this before proceeding.
Click to expand...
Click to collapse
Installation
Flash MixerMod-install.zip from recovery
OR
copy/paste mixer_paths.xml to /system/etc and set file permissions to rw-r-r (chmod 644)
(optional) copy/paste 55-mixer.sh to /system/addon.d and set file permissions to rwx-rx-rx (chmod 755)
Reboot
Removal
Flash MixerMod-restore-CM.zip from recovery
(if updating OTA with stock Motorola ROM; flash restore-Moto.zip)
OR
Replace /system/etc/mixer_paths.xml with stock version or rename mixer_paths.xml.bak
(optional) delete /system/addon.d/55-mixer.sh
Reboot
**HINTS**​
Safe Usage​
Lower all android volumes to below 50% (system, in-call & media volume, etc) BEFORE installing for the first time (to ensure vol is not set to high upon initial activation).
Do not use high volume for long periods of time.
Your general listening volume levels should be set between 25%-75%
Only use max volume (75%-100%) for quiet sources as even the main speaker can distort at high volume.
When using your device in landscape: ensure buttons face up so the handset speaker is on your left and the main speaker is on your right (rotating your device will not change left/right output).
To equalise speakers; adjust the L:R balance/pan in your default AudioFX App or favourite media player, if the setting is available make L>R.
If you also have 3rd party sound enhancement/processing mods or libraries installed (EG Viper4android, Dolby, Sony, Beats, etc) then; It is recommended to use a balanced-soft-medium release as the volume increase in the louder releases may be too much and cause distortion &/or impact sound quality.
Click to expand...
Click to collapse
Most Importantly:
Please Enjoy !!
If you wish to use this mod or any of the included files/code for your own ROM build or mod;
Please first PM me a request with your project details and provide clear & appropriate credit when approved.
Testimonials
aSuperSaiyanG0D said:
I installed the boosted variant/edition on my moto g3 (osprey) along side the xtrememusic mod and gotta say..
Bravo man, bravo
...I like how the earpiece is a tad lower than the main speaker...like the HTC 10 sound (top speaker is for treble and bottom is for bass)
Click to expand...
Click to collapse
**WARNING**
The handset speaker on this device is not designed for media-audio playback and is not capable of matching the max volume or quality of the main speaker.
After installing this mod you should not play audio at high volume for long periods of time if you are concerned about damaging your speakers.
Click to expand...
Click to collapse
Downloads
<Android File Host> | <XDA Downloads>
<Changelog & Version Info>
<Addons & Tools>
<Guides>
<FAQ>
​
Credits & Thanks
@hp420 for testing & sharing MotoG3 system-wide volume boost
@chdloc for IIR biQuads discovery, app & info
@osm0sis for ZipScriptSign tool + testkeys and mountSU
@Alberto97 and CyanogenMod for updated system/device files + zip binary file
@lost101 and Motorola for stock system/device files
@Lukest85 (me) for sharing, coding & compiling this mod + discovering & activating stereo speaker output for this device
YOU; the XDA community for rockin' the casbah !!
Apologies if I missed anyone; Pls PM me!
Support
XDA PM or post in thread
Donations
XDA:DevDB Information
MixerMod, Device Specific App for the Moto G 2015
Contributors
Lukest85, Lukest85, Lukest85
Source Code: https://github.com/cyanogenmod/android_device_osprey-cm13/
Version Information
Status: Testing
Current Stable Version: 1.0.0
Stable Release Date: 2016-04-25
Current Beta Version: 2.0.0
Beta Release Date: 2016-05-09
Created 2016-04-25
Last Updated 2016-05-09
*MixerMod Editions*​Overview
From balanced -> loud
The main/right speaker volume increases and the handset/left is constant.
The handset speaker (left) has now been activated at max volume but it is still significantly softer than the main speaker (right) by upto 30dB at default ±0dB
Due to this limitation the only way to achieve L:R balance is to reduce the main speaker volume proportionately.
The balanced edition addresses this issue with ±2dB variance but the softest main spkr (right) & overall volume.
Considering the overall volume reduction of the balanced edition may not be practical or necessary for everyday use;
I have created separate editions with different volume levels within safe min/max range to hopefully suit most use cases and device setups.
The different editions can now be used to achieve the best available L:R balance for your desired overall volume;
If one edition is to loud/unbalanced then try the next edition down in volume
If one edition is to soft then try the next one up in volume
If you want a custom package just ask
Tech Spec
Activated: ±0dB for all outputs and ±0dB master volume (NOT balanced)
Details of other editions below
The following editions apply +10dB to the left spkr volume and ±0dB in-call
Balanced: -20dB to right/main speaker volume
Soft: -10dB to right/main speaker volume
The following editions apply +10dB to the left spkr volume and +2dB in-call
Medium: -4dB to right/main speaker volume
Loud: ±0dB to right/main speaker volume
The following editions apply +12dB to the left spkr volume and +2dB in-call
Boosted: +2dB to right/main speaker volume
All editions (excluding activated) include the following audio tweaks;
Master volume: +2dB
Headphones/tty digital volume: +2dB
Handset/Left speaker output gain: x4
Volume Chart
Code:
[B]v1.0.0 Pure Stereo[/B]
[B]Name - Master Spkr-L Spkr-R HPhones In-Call[/B]
activated - 84 84 84 84 84
balanced - 86 94 64 86 84
soft - 86 94 74 86 84
medium - 86 94 80 86 86
loud - 86 94 84 86 86
boosted - 86 96 86 86 86
[I](86 = +2dB) (default = 84 aka ±0dB)[/I]
Click to expand...
Click to collapse
*Changelog*​
Latest Stable Release
Code:
[B]2016-04-25 v1.0.0[/B]
[I]Initial Release[/I]
Audio:
*Stereo speaker output
*Digital volume optimization for all outputs
*All CM commits: new Low-Latency Recording path + xml fixes
Package:
*Backup/Restore
*Survival Script
*Multiple editions with differing volume levels
Older Releases
Code:
Not yet
Latest Testing Release
Code:
[B]2016-05-10 beta2 v2.0.0[/B]
Package:
*Bug fix for /system SuperSU install
*Additional error/failure notifications
Audio:
*Reduced processing for speakers (vs beta1)
*If IIR filters don't work try temp disabling hotword detection (OK google)
Editions:
*All-In-One
*System (no SU or /systemSU)
*IIR (alpha) Headphone biQuad filters
All other editions have been included in each of the above
Older Releases
Code:
[B]2016-05-09 beta1 v2.0.0[/B]
Audio:
*New routing for speakers (fuller sound, more chance of distortion at high vol)
*Adjusted SRS TruMedia and Analogue Volume for Headphones (may not work with every setup)
*Increased Headphone volume for each edition
*Adjusted L:R speaker balance/volume for each edition
New Editions:
*AIO (beta) All In One
Includes all editions for a personalised setup via mixer.prop file (change SETTINGS with txt editor)
*IIR (alpha) Headphone biQuads
Loud edition with Infinite-Impulse-Responce filters for headphones (qcom h/w level 5-band equalizer)
Default is passthrough (no change)
Package:
*Major overhaul of all scripts & files (inc. shell script instead of updater-script)
*Default install to /su
*Backup/restore to/from anywhere in local storage (int or ext) or not at all
*Utilise 'mixer.prop' config file for a customisable & personalised setup/restore (store anywhere in /sdcard)
*Volume level specs for editions now reside in mixer.prop
*Survival script now optional (via mixer.prop)
*zip size greatly reduced
*Support for addons
*Improve multi-device support
Upcoming Features
subject to change and in no particular order
Include system-less setup without SuperSU (init.d) currently manual process
GUI for installer/restore (AROMA)
Further audio improvements
Stay tuned
Please contact me if you wish to contribute and/or collaborate !
Click to expand...
Click to collapse
*Tools & Addons*​
Native to MixerMod
Due to XDA upload restrictions you will need to remove the last .xyz extension (ie .txt) from the filename of each attachment BEFORE utilising the addon.
Download from attachment or AFH​
Survival Script (addon.d): 55-mixer.sh
Keep MixerMod installed throughout ROM flashes (safe).
included in MixerMod-install.zip and also available separately.
Code:
See OP for install/removal instructions
Linking script (su.d): 55mixer
System-less SuperSU compatibility (/su)
will be integrated with future MixerMod-install.zip
Can be modified for /system/su.d or /system/etc/init.d compatibility
Code:
copy/paste a modified mixer_paths.xml to /su/etc and set file permissions to rw-r-r (chmod 644)
copy/paste linking script to /su/su.d and set file permissions to rwx (chmod 700)
reboot
Tinymix: binary file
Testing mixer_paths.xml changes live & on the fly.
usually already included in each ROM. This version is from the latest stock osprey Moto ROM.
Code:
copy/paste to system/bin
set file permissions to rwx-rx-rx (chmod 755)
Usage: run from terminal as su
Code:
tinymix ‘control’ ‘value’
(integer/number values do not require quotes but all controls DO)
Examples
Set the handset speaker master volume to default ±0dB
Code:
su
tinymix ‘RX1 Digital Volume’ 84
Set the main speaker master volume to default ±0dB
Code:
su
tinymix ‘RX3 Digital Volume’ 84
Query current volume levels (differs per output device ie speakers/headphones/in-call)
Code:
su
tinymix | grep Digital
Funky Beats: Spotify Playlist by @Lukest85
An eclectic mix of favourite tracks, hidden gems and new releases.
Check 'em out or follow along to get your groove on.
My starred playlist, in no particular order.
Shuffle, Press Play and Enjoy !
Free for anyone to listen online (browser or app, no premium account required)
Click to expand...
Click to collapse
Kernels with FauxSound Control
Currently in testing​
Use one of these kernels for additional hardware level audio enhancements & sound control.
Configure volume & gain levels from within your preferred kernel control app (eg Kernel Adiutor) or FauxSound compatible app
Inazuma Kernel by @zeeshanhussain12
AGNi Kernel by @psndna88
Click to expand...
Click to collapse
Recommended Audio Mods
HINTS
These have been tested on this device in conjunction with MixerMod and should not cause any conflicts, though you may need to apply a balanced/soft/medium edition of MixerMod.
​
Remastered System Sounds by @Locklear308
High quality system sounds, remastered in stereo.
More themed and ported system sounds available.
Take full advantage of your stereo speakers !
Evangelion System Sounds by @simonpunk2013
Futuristic system sounds, notifications and alarms.
Many more EVA themed goodies.
Ported from NERV ROM posted by @TakuyaZ
ViPER4Android MK-Mod by @metaspook
Modified version of famous V4A audioFX app by @zhuhang
Software equalizer with many tweaks + new sound drivers/library.
Standalone app.
Viper|Atmos SonyBeats by @guitardedhero
Well renowned AIO audiophile tweaking package with maximum compatibility. The new standard.
Third party sound enhancements, libraries, tweaks & software equalizers
Includes: ViPER4Android, Dolby Atmos, Sony & Beats sound libraries
Click to expand...
Click to collapse
Popular Sound Libraries & Effects
HINTS​
May not be compatible with every setup.
Only install ONE of the following mods at any given time as there may be some conflicts and/or overlap.
If you want a combo setup then search the respective mod's support thread and you should find something posted by @guitardedhero to suit your needs, if it's not already available in the OP.
XTREMEMusic by @androidexpert35
Ultimate compilation of many integrated sound libraries, effects & EQ.
Based on Project Desire, PON-3 & HTK Audio Engine, with many extras
Includes
ViPER4Android
XTREMEMusic AudioFX App
Optimisations for dual speaker devices
Re-sampling of 6144khz 64bit for Headphones and 192khz 24bit for Speakers
Qualcomm Hardware Effects for the onboard Snapdragon Hexagon DSP found in this device
Sound Libraries: HTC Boom Sound, Sony sForce Surround 3D, Sony DSEE-HX, Harmon Kardon, SoundAlive, Beats, SRS, DTS, MegaBass, Vivo Hi-Fi, Dirac, more
eXtremeBeats by @Ben Feutrill
Compilation of handpicked, tweaked & integrated sound libraries of very high quality, in the smallest possible package (2MB)
Includes
Sound Libraries: Sony xLoud, BeatsAudio, SRS, PureAudio Engine, more
No EQ app or apks
Compliments a ViPER4Android standalone install very well.
Project Desire by @PDesire
Compilation of many enhanced, custom made ans integrated sound libraries, with an EQ app.
Based on ReHeaR. Now EOL and open source.
Includes
Project Desire Audio Effects app
Custom Audio Engines: Harmoforia, Harmonia, CryRez/P2SE, Vibeuforium, more
Sound Libraries: SoundAlive, MaxxAudio, Dolby DTS, SRS, Sony, Beats, many more
ReHeaR by @jimRnor
A compilation of many custom and well known sound libraries & effects.
Base for many other sound mods on XDA
Includes
No EQ app
Custom Audio Engines: ZeXshO X, PMEE-HS, Harmoforia, Vibeuforium, Quantum
Sound Libraries: Maxxaudio, SRS, Dolby DTS, BeatBass, HTC Acoustic, Samsung SoundAlive, more
Click to expand...
Click to collapse
Similar Mods
Links for other devices will be added here​
Moto-G 3rd Gen
System-wide volume boost by @hp420
Boost all output volumes for stock-mono configuration.
Multiple editions with varied volume levels.
NOT directly compatible with MixerMod as they modify a common file.
Click to expand...
Click to collapse
*FAQ*​
Q: What does this mod do ?
A: Improves output audio quality by modifying system file/s for the hardware controlled audio configuration.
Checks device compatibility
Installs a modified /system/etc/mixer_paths.xml file for audio routing, output, volume/gain, etc
Preserves existing/stock system file/s as .bak until restored
Installs /system/addon.d survival script to preserve mod files across ROM flash/wipe
Includes the latest updates, fixes & cherrypicks from multiple sources (Vendor/AOSP/CM)
Q: Do Left and Right speakers output stereo or mono sound ?
A: Stereo.
This mod routes the Left audio channel to (only) the upper Handset speaker and the Right audio channel to (only) the Lower Main speaker.
Factory default routes both channels to only the lower main speaker for mono output.
Q: Are you sure the handset speaker is working ?
A: Yes, output is a lot lower than the main speaker due to device limitations.
To test put your finger over the main speaker or adjust L:R balance/pan so R=0 or L>R
Q: Is this mod safe to use ?
A: Yes; provided you do not manually modify the system files yourself (ie to increase the volume further or make other changes).
Q: Will this damage my speakers or ears ?
A: No, Provided you adhere to all warnings/instructions and do NOT modify any relevant system files manually.
Volume/Gain for all outputs are set to a safe level.
Q: Has anyone bricked or broken their device using this mod ?
A: No damage to any device has been reported due to using this mod, nor similar mods for other devices.
HOWEVER it is still recommended to make a Nandroid backup of /system before installing, not to playback audio at high volume for lengthy periods and do not make manual modifications to system files.
Q: I have a compatible device but the mod will not install or flash !
A: Please report details here and provide from build.prop your ro.product.device value and if possible any relevant log files such as /cache/recovery/last_log, logcat, etc,
Q: Is this mod compatible with xyz device ?
A: This mod is currently only compatible with recent Qualcomm Snapdragon based devices that use the onboard soundcard only.
Q: Can I try this mod with a device not listed as compatible?
A: Not recommended unless confident of h/w similarities to confirmed devices. Advise posting a request here with your mixer_paths.xml & device details so I can provide a test package.
Q: I still want to try this on an un-approved device on my own !
A: Test at your own risk but do not be surprised if you can no longer boot or experience audio issues/failure;
Flash a Test Release, as Stable Releases are restricted to approved devices only (see OP) or manually extract & install mixer_paths.xml as per OP.
Q: Should I expect any issues after installing ?
A: No
MixerMod has been confirmed to be error free & stable for all compatible devices listed in OP.
(may work on devices with similar h/w; post your mixer_paths.xml if you wish to test on a new device)
Q: After installing this MixerMod I have errors, problems, questions or requests to report !
A: Post in this thread with your original mixer_paths.xml(.bak)
Include as much relevant detail as practical: Device, ROM, kernel, any & all active sound mods or libraries, + non-stock audio settings/FX, etc
Q: What are your testing variables ?
A: Before any release I first test the new audio settings for a lengthy period of time on a Moto-G3 XT1550 osprey with different settings & variables to ensure no adverse effects:
MM 6.0.x ROMs
Custom kernels
Stock/built-in AudioFX, on vs off
3rf Party AudioFX apps/libraries
eg ViPER4Android, Dolby, Sony, Beats, etc
Multiple MultiMedia apps/players
eg Spotify, Poweramp, SonyMusic, GoogleMusic, Soundcloud, etc
Other sound/audio mods
eg eXtremeMusic, ExtremeBeats, Project Desire, etc
Various Headphones, IEM and external speakers
Built-in speakers with music, video, podcast & audio-test signals
Different environments & ambient noise levels
Volume/Balance measurements tested/recorded with a basic dB soundmeter.
Final field test and selection of each release/edition based on realworld results, compatibility and my personal experience.
Q: What are the Limitations of this mod ?
A: It will not walk your dog, laugh at your jokes or save you from an alien invasion.
I do not currently have access to suitable pro sound equipment so dB measurements for volume & balance are obtained via a basic soundmeter from another handset.
L:R Speaker orientation is locked ie Rotating your device will NOT swap Left/Right channels
Different sized h/w speaker drivers (handset vs main); to compensate for the smaller handset speaker this mod reduces the main speaker volume to achieve better L:R balance.
NB Without reducing the main speaker stereo sound would not be practical as the main speaker is too loud.
No 3rd party soundcard/DAC/DSP to utilise (ie only onboard Qualcom Snapdragon Hexagon processing is available for this device)
Click to expand...
Click to collapse
*Guides*​
General Inquiries
If you want me to make a custom file/mod for your specific setup (I'm happy to), are requesting a change to this mod, testing your own mod, reporting an error, tweaking your setup or just sharing your settings for others, then;
Post here or PM me, and include
Your desired changes
Original un-modified /system/etc/mixer_paths.xml(.bak) file
Details of your sound & device setup IE model, ROM, kernel, mods, etc
Specify any & all active sound mods/libraries + non-stock audio settings
To manually adjust your L:R speaker volume and achieve equal balance; Try A, B or C as follows.
A) via ROM audioFX app, your preferred media player w/pan, or a custom soundFX mod:
Adjust Left:Right output settings so L>R under Balance/Pan according to your preference.
**WARNING**
The following manual steps can be dangerous if a mistake is made and/or volume/gain is set to high/low so only do this if you are confident, have read all the provided info, follow the instructions implicitly and of course;
do so at your own risk, accepting all responsibility if any damage occurs.
B) via a file manager (root + RW /system)
edit/open file /system/etc/mixer_paths.xml in a text editor
Search or scroll for MixerMod under <path name=speaker />
Make your changes to XX for;
<ctl name='RX1 Digital Volume' value=XX />
<ctl name='RX3 Digital Volume' value=XX />
Where;
RX1=Left handset speaker
RX3=Right main speaker
XX sets the volume as a number between 74 and 94 in 1dB increments (stock=0:84 ±0dB)
Play some media and set Android volume <50%
Reboot to apply your changes
Test your changes & repeat the above until you are happy with the volume and balance
If you want to post your new settings please make sure to include any & all sound mods/libraries + non-stock audio settings.
C) Test temporary volume/gain levels live:
Start playing some media
NB I recommend a long playlist with varied but short music/video selections as when media focus shifts your changes will revert.
Run the following code from a terminal
Code:
su
tinymix 'RX1 Digital Volume' XX
tinymix 'RX3 Digital Volume' XX
Speaker: RX1=Left and RX3=Right
Headphones: RX1=Left and RX2=Right
Adjust XX and re-do the above until you are happy with the volume & balance
To save your desired settings edit /system/mixer_paths.xml accordingly (see above) then reboot.
Click to expand...
Click to collapse
Reserved
Reserved
omg, this is super cool! thanks.
---------- Post added at 09:28 AM ---------- Previous post was at 09:07 AM ----------
not really balanced though
HelpMeruth said:
omg, this is super cool! thanks.
Click to expand...
Click to collapse
Cheers ! 'most welcome and glad you like it !
HelpMeruth said:
not really balanced though
Click to expand...
Click to collapse
Which edition/s have you tried?
Do you have any other sound mods or libraries installed?
FYI
*Only the balanced release aims for equal L:R speaker volume as achieving this greatly reduces the main speaker volume.
*The L:R difference on my test device (osprey, stock, no other sound mods) with balanced edition ends up 0-3dB, varying slightly per frequency.
I am hesitant to lower the main speaker much more than it is already for this one but can do if requested.
*Stock/default/flat there is generally approx 30dB difference between the two speakers on this device, which is a lot for this scenario.
So perfect balance may not be practical for many situations.
*Currently L:R balance will even out as you choose a quieter edition of MixerMod (see the OP for more details).
*Volume levels for most releases can be tweaked so feedback is welcome but please provide device/setup info!
edit: Added this info to OP
i had balanced but noticed that the loudspeaker(the earpiece speaker) was a bit louder than the real speaker
HelpMeruth said:
i had balanced but noticed that the loudspeaker(the earpiece speaker) was a bit louder than the real speaker
Click to expand...
Click to collapse
osprey or merlin ?
osprey
HelpMeruth said:
osprey
Click to expand...
Click to collapse
The soft edition from OP will increase the main spkr a few knotches (10dB)
I've attached some alternate editions for you in case you only need a small change;
balanced2 will only reduce the handset spkr by 2dB
balanced3 will only increase the main spkr by 4dB
Alternatively
Run the below command/s in a terminal while audio is playing then let me know your results and I'll post a new edition for you.
(tinymix changes only last for that audio session)
Adjust main/right spkr
Code:
su
tinymix 'RX3 Digital Volume' 68
raise/lower the number until you are happy (OP balanced = 64 and stock = 84)
Adjust the handset/left spkr
Code:
su
tinymix 'RX1 Digital Volume' 92
raise/lower the number until you are happy (most OP editions = 94 which is generally the max without distortion)
Would this be safe to use alongside the xtrememusic mod?
Sent from my Nexus 7 using Tapatalk
I'm wondering how this works with ViPER4android. Would like to try it but not if V4a interferes as I really like it.
sent from my cdma X1548 Virgin Mobile Moto G 2015
Looking forward to trying this out
Will this need re-flashed everytime the official 13.1 Cyanogen nightly gets updated?
thx
aSuperSaiyanG0D said:
Would this be safe to use alongside the xtrememusic mod?
Click to expand...
Click to collapse
Sure is !
Currently MixerMod will not conflict with any other sound mods, though you may need to try different MixerMod Editions to get your desired sound/volume/balance.
Pls report results here for others with same setup.
Hedied4me said:
I'm wondering how this works with ViPER4android. Would like to try it but not if V4a interferes as I really like it.
Click to expand...
Click to collapse
There is a native headphone boost etc included in MixerMod and I can confirm it works very well in combo with V4A !
RE speakers; I would recommend to start with a balanced/soft/medium edition of MixerMod if you also use 3rd party sound libraries eg @guitardedhero 's Viper|Atmos packages, Sony, Beats, etc
bjzapp said:
Looking forward to trying this out
Will this need re-flashed everytime the official 13.1 Cyanogen nightly gets updated?
thx
Click to expand...
Click to collapse
Go for it, just set n forget !
no need to reflash MixerMod after a ROM upgrade addon.d survival script is included.
You should see a few messages from MixerMod in recovery during the process to let you know it's doing its thing...it will even backup the unmodified files from the new ROM before patching so you're never in danger.
Installed the boosted variant along side the xtrememusic mod and gotta say..
Bravo man, bravo ??
And actually I kinda like how the earpiece is a tad lower than the main speaker, kinda how I imagine the HTC 10 would sound (since the top speaker is for treble and bottom is for bass)
And yes I installed it on my moto g3 (osprey)
Disregard my signature ?
Sent from my Nexus 7 using Tapatalk
aSuperSaiyanG0D said:
Installed the boosted variant on my moto g3 (osprey) along side the xtrememusic mod and gotta say..
Bravo man, bravo ??
And actually I kinda like how the earpiece is a tad lower than the main speaker, kinda how I imagine the HTC 10 would sound (since the top speaker is for treble and bottom is for bass)
And yes I installed it on my moto g3 (osprey)
Disregard my signature ?
Click to expand...
Click to collapse
Thank you for the great report and review !! :good:
Excellent comparison too ! that's the limitation of the smaller handset spkr showing through but with lemons we make tasty lemonade :highfive:
Glad your enjoying it !
RE sig; No worries, I've an N7 somewhere as well.
If you don't mind I will add your comments as a quote/review in OP !?
Lukest85 said:
Thank you for the great report and review !! :good:
Excellent comparison too ! that's the limitation of the smaller handset spkr showing through but with lemons we make tasty lemonade :highfive:
Glad your enjoying it !
RE sig; No worries, I've an N7 somewhere as well.
If you don't mind I will add your comments as a quote/review in OP !?
Click to expand...
Click to collapse
Ayee thank you for taking the time to develop this little mod aha ?
And no problem you're more than welcome to ?
Sent from my Nexus 7 using Tapatalk

[Solved] How to remove audio distortion from all stereo phones with unequal speakers

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[Brought to you by a collaboration of Ainur and ARISE]​
Description of the issue:
The issue with all Oreo ROMs for mi max 2 right now, is that there is very apparent audio distortion at max volume.
The reason for that is this:
The phone uses a stereo setup with the earpiece acting as the left channel and the bottom loudspeaker acting as the right channel.
Of course those two speakers are not of the same quality or meant to play the same frequencies.
Reading a bit around the official miui forum you will find that the earpiece speaker is meant as a treble speaker playing mid to high frequencies and the bottom loudspeaker as a woofer playing low to mid frequencies or even high ones since it can.
Using an aosp Oreo ROM though loses that optimization and treats the two unequal speakers as equal with the result of having the earpiece rattle heavily when it must play a frequency under 550hz.
Using an equalizer such as the one included in Dolby Atmos Axon 7, to reduce every frequency Lower than 500hz worked to remove the rattle from the earpiece but also removed the bass from the bottom loudspeaker, which isn't the ideal solution.
The final solution was to implement a high filter pass (suggested by UltraM8/Sovetnikov from Ainur), which was elaborated upon and implemented by Joe0Bloggs from ARISE.
Description of included impulses:
If your left channel is the earpiece and the right channel is the bottom speaker, (which is true for mi max 2) you need one of the following impulses:
1) Hi-Low Speakerphone HiL:
Which simply applies a high filter pass of 500hz to the left channel
2) Hi-Low Speakerphone 4-Way HiL:
Which applies a high filter pass of 500hz to the left channel but also redirects those left channel frequencies that are cut-off and merges them with the right channel.
So in the scenario that the left and right channel have a difference you will he able to hear it instead of it being just cut-off
If your right channel is the earpiece and the left channel is the loudspeaker, (which may be true for other phones with a similar issue) you need one of the following impulses:
1)Hi-Low Speakerphone HiR:
Simply cuts off any frequency under 500hz with a high filter pass on the right channel.
2)Hi-Low Speakerphone 4-Way HiR:
Cuts off any frequency under 500hz from the right channel with a high filters pass but also redirects and merges it with the left channel.
To test which is your left and right channel, you can use anyone of the myriad left-right channel test videos in YouTube:
Left Right Channel Test
All the impulses are wav files and they are zipped in ImpulsesOxygen.zip, so you simply unzip them and import the wav file of your choosing in the JamesDSP Convolver.
Those impulses can also be used with ROMs of other phones that either come with dual-speaker setup or use a mod to create two channel audio.
Installation Procedure:
You will need to flash the following modules through Magisk (They can all be found in the Downloads section of Magisk Manager):
1) Ainur Sauron
2) Ainur JamesDSP (you can also use viper4a fx, but it has some bug when switching impulses)
3) Audio Modification Library
4) Audio Compatibility Patch
After flashing the requirements:
1) Reboot so all Magisk Modules are installed
2) Copy the impulse of your choosing (wav file) at 'Internal Storage/JamesDSP/Convolver' (I suggest you use the 4-Way HiL wav found in the zip for mi max 2)
3) Open JamesDSP
4) Enable the Master Switch on top of that window to activate JamesDSP
5) Enable the Convolver option near the bottom of that window
6) Select as Impulse your chosen wav file (4-way HiL for example)
Download:Mega.nz -ImpulsesJoe
(Or from the zip attachment in this post)
MD5sums of the attachments:
HiL: e9dc1fd5ce67793a60bc1d7bfb73eb72
HiR: 2ed4dab03e326643d72a7eec0f53b246
4-Way HiL: 96207e83552fc99a40e6012ff5646bbe
4-Way HiR: c0d88c31352d50ba350755f97a924266
ImpulsesOxygen.zip: 99149367d212c447d2427fd372eb2be5
Contact: For any clarifications feel free to contact @Joe0Bloggs on Telegram.
Thanks for putting the word out for this solution! :good:
Joe0Bloggs said:
Thanks for putting the word out for this solution! :good:
Click to expand...
Click to collapse
Good work man. Cheap stereo speakers can die another day.
:highfive:
Voidablazer said:
The issue with all Oreo ROMs for mi max 2 right now, is that there is very apparent audio distortion at max volume.
The reason for that is this:
The phone uses a stereo setup with the earpiece acting as the left channel and the bottom loudspeaker acting as the right channel.
Of course those two speakers are not of the same quality or meant to play the same frequencies.
Reading a bit around the official miui forum you will find that the earpiece speaker is meant as a treble speaker playing mid to high frequencies and the bottom loudspeaker as a woofer playing low to mid frequencies or even high ones since it can.
Using an aosp Oreo ROM though loses that optimization and treats the two unequal speakers as equal with the result of having the earpiece rattle heavily when it must play a frequency under 550hz.
Using an equalizer such as the one included in Dolby Atmos Axon 7, to reduce every frequency Lower than 500hz worked to remove the rattle from the earpiece but also removed the bass from the bottom loudspeaker, which isn't the ideal solution.
The final solution was to implement a high filter pass (suggested by UltraM8/Sovetnikov from Ainur), which was elaborated upon and implemented by Joe0Bloggs from ARISE.
You will need to flash the following through Magisk:
1) Ainur Sauron
2) Ainur JamesDSP (you can also use viper4a fx, but it has some bug when switching impulses)
3) Audio Modification Library
4) Audio Compatibility Patch
Now you simply have to reboot, open JamesDSP , enable the master switch, scroll down, enable convolver and select one of the attached Impulses.
(All impulses must be moved go the directory: InternalStorage/JamesDSP/Convolver)
If your left channel is the earpiece and the right channel is the bottom speaker, (which is true for mi max 2) you need one of the following impulses:
1) Hi-Low Speakerphone HiL:
Which simply applies a high filter pass of 500hz to the left channel
2) Hi-Low Speakerphone 4-Way HiL:
Which applies a high filter pass of 500hz to the left channel but also redirects those left channel frequencies that are cut-off and merges them with the right channel.
So in the scenario that the left and right channel have a difference you will he able to hear it instead of it being just cut-off
If your right channel is the earpiece and the left channel is the loudspeaker, (which may be true for other phones with a similar issue) you need one of the following impulses:
1)Hi-Low Speakerphone HiR:
Simply cuts off any frequency under 500hz with a high filter pass on the right channel.
2)Hi-Low Speakerphone 4-Way HiR:
Cuts off any frequency under 500hz from the right channel with a high filters pass but also redirects and merges it with the left channel.
To test which is your left and right channel, you can use anyone of the myriad left-right channel test videos in YouTube:
Left Right Channel Test
All the impulses are wav files and they are zipped in ImpulsesOxygen.zip, so you simply unzip them and import the wav file of your choosing in the JamesDSP Convolver.
Those impulses can also be used with ROMs of other phones that either come with dual-speaker setup or use a mod to create two channel audio.
Download:Mega.nz -ImpulsesJoe
(Or from the zip attachment in this post)
MD5sums of the attachments:
HiL: e9dc1fd5ce67793a60bc1d7bfb73eb72
HiR: 2ed4dab03e326643d72a7eec0f53b246
4-Way HiL: 96207e83552fc99a40e6012ff5646bbe
4-Way HiR: c0d88c31352d50ba350755f97a924266
ImpulsesOxygen.zip: 99149367d212c447d2427fd372eb2be5
Contact: For any clarifications feel free to contact @Joe0Bloggs on Telegram.
Click to expand...
Click to collapse
Can you please explain it in simple steps. Kind of noob friendly?
ridershahmir said:
Can you please explain it in simple steps. Kind of noob friendly?
Click to expand...
Click to collapse
Installation Procedure:
You will need to flash the following through Magisk:
1) Ainur Sauron
2) Ainur JamesDSP (you can also use viper4a fx, but it has some bug when switching impulses)
3) Audio Modification Library
4) Audio Compatibility Patch
After flashing the requirements:
1) Reboot so all Magisk Modules are installed
2) Copy the impulse of your choosing (wav file) at 'Internal Storage/JamesDSP/Convolver' (I suggest you use the 4-Way HiL wav found in the zip for mi max 2)
3) Open JamesDSP
4) Enable the Master Switch on top of that window to activate JamesDSP
5) Enable the Convolver option near the bottom of that window
6) Select as Impulse your chosen wav file (4-way HiL for example)
ridershahmir said:
Can you please explain it in simple steps. Kind of noob friendly?
Click to expand...
Click to collapse
Sure, for the user, all that's involved is
1. Have the problem--a phone that's got a big speaker and a little speaker for stereo and a custom ROM that isn't optimized for their difference
2. Test and find out whether the "small" speaker is for the left or right channel--using this video https://youtu.be/hTvJoYnpeRQ for example
3. Install the solution: the OP mentioned 4 programs but you mostly have to just make sure Ainur JamesDSP is working. Then copy the files from ImpulsesOxygen.zip to (InternalStorage)/JamesDSP/Convolver .
4. In JamesDSP, enable Master switch for Speaker and, some way down the menu, enable "Convolver enable" for convolver and choose one of the files from ImpulsesOxygen.zip as "Impulse response". Choose "hiL" or "4way hiL" if (referring back to step 2) your small speaker is for the left channel; choose "hiR" or "4way hiR" if your small speaker is for the right channel. Below screenshots are example config for the Mi Max 2 with small speaker for left channel.
ridershahmir said:
Can you please explain it in simple steps. Kind of noob friendly?
Click to expand...
Click to collapse
I really don't think it can be explained in simpler steps...
@Joe0Bloggs This is really nice, thank you for the insight. What do you think, can it be implemented on a system level without Ainur and Audio libraries?
sirdickens said:
I really don't think it can be explained in simpler steps...
@Joe0Bloggs This is really nice, thank you for the insight. What do you think, can it be implemented on a system level without Ainur and Audio libraries?
Click to expand...
Click to collapse
Someone more experienced in that level of modding can chime in here I hope... The OP was working on a modified mixer_paths that should have similar effect but it hasn't worked so far. The lines that were supposed to do the job read like this I believe
<ctl name="RX3 HPF cut off" value="MIN_3DB_850Hz" />
https://github.com/mozilla-b2g/device-flo/blob/master/mixer_paths.xml
The present approach with JamesDSP and convolver files does have more fine-grained control over the sound and the bandpass+phase shifted signal of the bass redirection channel in the 4-way filters should not be doable outside of JamesDSP or V4A.
Joe0Bloggs said:
Someone more experienced in that level of modding can chime in here I hope... The OP was working on a modified mixer_paths that should have similar effect but it hasn't worked so far. The lines that were supposed to do the job read like this I believe
<ctl name="RX3 HPF cut off" value="MIN_3DB_850Hz" />
https://github.com/mozilla-b2g/device-flo/blob/master/mixer_paths.xml
The present approach with JamesDSP and convolver files does have more fine-grained control over the sound and the bandpass+phase shifted signal of the bass redirection channel in the 4-way filters should not be doable outside of JamesDSP or V4A.
Click to expand...
Click to collapse
Sounds interesting, I am not an expert but will try and look into it.
Thank you for your kind explanation. I hope developers will also take a look at it.
Btw, stereo is awesome now! It would be interesting to tweak a bit more as I think earpiece might carry over a bit lower frequencies, thus pushing stereo even further!
AML has been included in Ainur Sauron, I can see AML libs and scripts inside the zip file. This is exactly what I did with my Max2, as I mentioned in MXM review, but I have lack of deep investment as yours, instead I use some other impulses and luckily fixed the problem too. Nice to see this thread since it can help other users. Btw, can you please write a guide to install these mods with SuperSu instead of Magisk? (AML can not install in recovery without Magisk)
romeo_coi said:
AML has been included in Ainur Sauron, I can see AML libs and scripts inside the zip file. This is exactly what I did with my Max2, as I mentioned in MXM review, but I have lack of deep investment as yours, instead I use some other impulses and luckily fixed the problem too. Nice to see this thread since it can help other users. Btw, can you please write a guide to install these mods with SuperSu instead of Magisk? (AML can not install in recovery without Magisk)
Click to expand...
Click to collapse
I don't know about AML but as far as I can tell the essence of the mod doesn't require you to install Ainur and only requires you to install one of JamesDSP and V4A, hence AML isn't necessary.
Joe0Bloggs said:
I don't know about AML but as far as I can tell the essence of the mod doesn't require you to install Ainur and only requires you to install one of JamesDSP and V4A, hence AML isn't necessary.
Click to expand...
Click to collapse
Ainur provide better audio quality. So if you only need to fix the distortion, Jame DSP or V4A is enough. But it's worth to install Ainur audio mod too, because the AOSP audio quality is worse. What I mean here is AML has been included in Ainur zip, we just need to install 1 instead 2 files.
Thank you worked very well for me. Even with Dolby atmos same time.
Whats that speaker PID count? Im not sure about the results of all this but seems that sound is improved
m1n15s said:
Whats that speaker PID count? Im not sure about the results of all this but seems that sound is improved
Click to expand...
Click to collapse
so Oreo for daily use is bearable
reversegear said:
so Oreo for daily use is bearable
Click to expand...
Click to collapse
I use oreo for months so for me was ok all this time if u mean sound wise i think now with those settings is better
Voidablazer said:
[Brought to you by a collaboration of Ainur and ARISE]
Description of the issue:
The issue with all Oreo ROMs for mi max 2 right now, is that there is very apparent audio distortion at max volume.
The reason for that is this:
The phone uses a stereo setup with the earpiece acting as the left channel and the bottom loudspeaker acting as the right channel.
Of course those two speakers are not of the same quality or meant to play the same frequencies.
Reading a bit around the official miui forum you will find that the earpiece speaker is meant as a treble speaker playing mid to high frequencies and the bottom loudspeaker as a woofer playing low to mid frequencies or even high ones since it can.
Using an aosp Oreo ROM though loses that optimization and treats the two unequal speakers as equal with the result of having the earpiece rattle heavily when it must play a frequency under 550hz.
Using an equalizer such as the one included in Dolby Atmos Axon 7, to reduce every frequency Lower than 500hz worked to remove the rattle from the earpiece but also removed the bass from the bottom loudspeaker, which isn't the ideal solution.
The final solution was to implement a high filter pass (suggested by UltraM8/Sovetnikov from Ainur), which was elaborated upon and implemented by Joe0Bloggs from ARISE.
Description of included impulses:
If your left channel is the earpiece and the right channel is the bottom speaker, (which is true for mi max 2) you need one of the following impulses:
1) Hi-Low Speakerphone HiL:
Which simply applies a high filter pass of 500hz to the left channel
2) Hi-Low Speakerphone 4-Way HiL:
Which applies a high filter pass of 500hz to the left channel but also redirects those left channel frequencies that are cut-off and merges them with the right channel.
So in the scenario that the left and right channel have a difference you will he able to hear it instead of it being just cut-off
If your right channel is the earpiece and the left channel is the loudspeaker, (which may be true for other phones with a similar issue) you need one of the following impulses:
1)Hi-Low Speakerphone HiR:
Simply cuts off any frequency under 500hz with a high filter pass on the right channel.
2)Hi-Low Speakerphone 4-Way HiR:
Cuts off any frequency under 500hz from the right channel with a high filters pass but also redirects and merges it with the left channel.
To test which is your left and right channel, you can use anyone of the myriad left-right channel test videos in YouTube:
Left Right Channel Test
All the impulses are wav files and they are zipped in ImpulsesOxygen.zip, so you simply unzip them and import the wav file of your choosing in the JamesDSP Convolver.
Those impulses can also be used with ROMs of other phones that either come with dual-speaker setup or use a mod to create two channel audio.
Installation Procedure:
You will need to flash the following modules through Magisk (They can all be found in the Downloads section of Magisk Manager):
1) Ainur Sauron
2) Ainur JamesDSP (you can also use viper4a fx, but it has some bug when switching impulses)
3) Audio Modification Library
4) Audio Compatibility Patch
After flashing the requirements:
1) Reboot so all Magisk Modules are installed
2) Copy the impulse of your choosing (wav file) at 'Internal Storage/JamesDSP/Convolver' (I suggest you use the 4-Way HiL wav found in the zip for mi max 2)
3) Open JamesDSP
4) Enable the Master Switch on top of that window to activate JamesDSP
5) Enable the Convolver option near the bottom of that window
6) Select as Impulse your chosen wav file (4-way HiL for example)
Download:Mega.nz -ImpulsesJoe
(Or from the zip attachment in this post)
MD5sums of the attachments:
HiL: e9dc1fd5ce67793a60bc1d7bfb73eb72
HiR: 2ed4dab03e326643d72a7eec0f53b246
4-Way HiL: 96207e83552fc99a40e6012ff5646bbe
4-Way HiR: c0d88c31352d50ba350755f97a924266
ImpulsesOxygen.zip: 99149367d212c447d2427fd372eb2be5
Contact: For any clarifications feel free to contact @Joe0Bloggs on Telegram.
Click to expand...
Click to collapse
Great, very very good work.Amazing sound now.
Thy for this outstanding workaround.
Would be really great if this could be implemented in lineageos as standard.
Greetz
Thank you so much for your clear explanation. Oreo sounds much better now. Again, thank you so much.
My oxygen audio is better now, dolby atmos & viper uninstalled :laugh:
Thank you ?????
Any update on getting this natively? I'm on a Pie ROM and would like to get this to work either with a kernel driver or custom module. Not really sure where to begin...Haven't built my own kernel or written an actual kernel driver in years but I would love to jump into some android dev with finding a solution to this.

[MAGISK MODULE][LGV30/V30+] Stock Android 9.0 Optimization (ALL in ONE MOD)

Hi guys, i just want to share new All in One mod for official stock android 9.0 LG V30/V30+
Requirements :
1. Unlocked Bootloader
2. Official Stock Android Pie
3. Magisk Installed
This Magisk Module include :
1. Camera Improvement: enable all AI supported scenes also 100% JPEG quality, enable Cine Shot from LG V50, also enable Steady Recording @60fps (FHD 16:9 and FHD 18:9) and others improvement.
2. Audio improvement: bypass detection of HiFi Quad DAC (HIM), improve volume same as Google stock for Qualcomm DAC, enable 384Khz sample rate, enable DTS:X Surround, Custom Equalizer, Dual Stereo Speaker and others improvement.
3. Performance improvement: removed CPU limitation 2.3Ghz by LG to enable 2.45Ghz, also removed limitation 2.3Ghz for gaming to enable 2.45Ghz
4. LGE Optimization feature configuration
5. Enable all Weather effect on Lockscreen
6. Miracast wfd re-enable
7. And many more
Click to expand...
Click to collapse
DOWNLOAD APP (OPTIONAL) :
CineShot : https://www.apkmirror.com/apk/lgelectronics/lg-cine-shot/lg-cine-shot-3-0-36-release/
LG Equalizer : https://www.apkmirror.com/apk/lgelectronics/equalizer/equalizer-7-0-14-release/
Install as normal apk after module is installed!
NOTE:
- Not compatible for Custom ROM and Stock Oreo
- If you already add DTS:X and Weather code into build.prop you can remove them
- Steady Recording (EIS) doesn't work on FHD 21:9 @60fps (camera freeze)
Click to expand...
Click to collapse
CREDITS : @topjohnwu for Magisk @TotallyAnxious @ChazzMatt for DTS:X, Weather Effect, and Custom EQ build.prop
@Inerent for providing LG V50 files
Anyone who support my project by posting feedback or suggestions
How to Enable More Display Color Mode :
Delete this overlay file :
com.android.settings.apk from directory OP/OPEN_XXX/overlay/app
Click to expand...
Click to collapse
CHANGELOG :
Code:
- V1 initilal release
- v2 fix speaker glitch because wrong audio configuration on v1
- v3 using latest module script template and fix DTS:X Surround code
- v4 enable all weather effect on lockscreen and fix some configuration media_profile
- v5 enable Steady Record @60fps work only FHD 16:9 and 18:9 doesn't work on FHD 21:9 @60fps
enable Cine Shot for rear and front camera, also enable potrait mode on rear camera (forced using ultra wide angle)
- v6 fix Cineshot, Updated LG Equalizer from LG V50, fix build.prop code for weather lockscreen effect and Custom Equalizer
- v7 Reconstruct all Audio Configuration, added newly audioeffect format, added auxpackagelist for lge apps, enable auto framing smartcam, enable shot solution, remove HDR10 Video support, currently doesn't work (temporary removed until i find the fix), remove older prop code.
- v8.0 :
*add missing audio decoder configuration that supported in our phone
*improved audio with Quad DAC off: disable low power mode audio quality uLP/LP and change to HIFI, change echo preference from mono to stereo 48Khz, this will also improve audio output when using bluetooth headphone/speaker that didn't using Quad DAC.
*add missing permissions for audio, bluetooth and camera, also add permissions for spesific LG V30 Variant.
*reconfigure bluetooth stack a2dp offload
*Added Dual Stereo Speaker
- v9.0 :
*Added paid search features pemissions for chrome
*Revert back mixer_path to default, only HIM Quad DAC and Stereo Speaker mod (at least work on H930DS) other variant to be confirmed
This may fix all your problem to install this main module for variant that have bootloop issue except for CineShot and Equalizer that some variant need special permissions, so i seperated the module.
- v9.1 :
*change back default headphone mode to HIFI instead ULP
*configure initial value for dual speaker as i'm forget to change it.
- v9.2 :
*add missing permissions as system is always looking for
*some changes in media profile (always 100% Jpeg quality)
*some changes in mixer path (dual speaker code follow vendor structure)
- v9.3 :
*bug fixes
- VERSION 9.4
*Add variant dual speaker and without dual speaker
*bug fixes
*some change in audio output config
- VERSION 9.5
*Cleanup unused files
*fix flash sometimes doesn't work when taking photo
- VERSION 9.6 :
AUDIO
- Enable 16/24bit offload
- Enable bluetooth a2dp hw offload (can be disable in developer options)
- Enable gapless playback for any music player app that use system properties
- Use High Dyn Sampler rate for any music player app that use system properties
VIDEO Recording
- Increased bitrate video recording from 36Mbps to 52Mbps (high [email protected]) / 1080p @30fps is 36Mbps from 24Mbps (high) ON ALL aspect ratio
- Increased bitrate for 720p too on all aspect ratio
MEDIA
- Re-enable some codec that disabled by LG
- Try to Re-enable miracast WFD (didn't tested)
NO Changes
- 4K UHD @30fps remain the same at 52Mbps
- AVC Profile baseline lvl 4 for auto and AVC Profile High lvl 5 for Manual Video is remain the same
REMOVED
- Potrait Mode for Rear Camera has been removed due to poor quality and i can't found solution to change to the main camera instead of super wideangle without editing the app, is more complicated if we edit the system app because of signature verification in framework
- remove duplicate aac compress offload (unused code).
*STABLE VERSION 10.0
*AUDIO :
- Fix sometimes internal audio recording not working
- Add/fix some missing code in audio_policy_configuration
*CAMERA :
- 100MB bitrate for 4K UHD (High setting)
- 52MB bitrate for 1080p @30/60fps (High setting) in all aspect ratio
- 36MB bitrate for 720p @30/60fps (High setting) in all aspect ratio
*GAMING :
- Slightly Improved performance for gaming
FAQ
Q : How to install this Module?
A : Install via Magisk Manager.
Q : How to update this Module to newer version?
A : Remove old version from Magisk Manager then reboot. After booting complete install new module via Magisk Manager.
Q : Is this module compatible on CUSTOM ROM based LOS/AOSP?
A : No. Only for Official Based Stock Android Pie/9.0
Q : Is this module compatible with Official Android Oreo firmware?
A : No. Only for Official Based Stock Android Pie/9.0
Q : Why DTS:X don't work i'm using PowerAMP?
A : You need to disable DVC in PowerAMP to make DTS:X working or use other player music. Just like other phone outside LG, if DVC enable Dolby or vendor sound enhancement don't work.
Q : Why 384Khz is not working no sound in PowerAMP or UAAP?
A : 384Khz only working if you turn off Hi-Fi Quad DAC. Hi-fi Quad DAC can properly handle up to 352KHZ to make sure everything work like sound preset and dither
Q : I don't want to to boost Hi-Fi Quad DAC under 50 ohms headset/headphone, how can i do that?
A : Extract mixer_paths_tavil.xml from the module zip then find and edit the following line (look at the BLUE value, this value is from stock).
You need to change that value same as this code below!
HIM mode remain unchanged since the two following mode (NORMAL & AUX) i set to 0 value to make same as HIM mode in the module, so you need to change it back to stock value that has BLUE value
<!-- This is Normal mode for headset under 50 ohms -->
<path name="headphones-hifi-dac">
<ctl name="Es9018 AVC Volume" value="15" />
<ctl name="Es9018 Master Volume" value="1" />
<ctl name="Es9018 HEADSET TYPE" value="1" />
</path>
<!-- This is HIM mode for headset 50-600 ohms -->
<path name="headphones-hifi-dac-advanced">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="2" />
</path>
<!-- This is AUX External Device above 50 ohms -->
<path name="headphones-hifi-dac-aux">
<ctl name="Es9018 AVC Volume" value="6" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="3" />
</path>
<!-- This is Normal mode headset under 50 ohms for playing DSD using DoP -->
<path name="headphones-hifi-dacdop">
<ctl name="Es9018 AVC Volume" value="15" />
<ctl name="Es9018 Master Volume" value="1" />
<ctl name="Es9018 HEADSET TYPE" value="1" />
</path>
<!-- This is HIM mode for headset 50-600 ohms for playing DSD using DoP -->
<path name="headphones-hifi-dacdop-advanced">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="2" />
</path>
<!-- This is AUX External Device mode above 50 ohms for playing DSD using DoP -->
<path name="headphones-hifi-dacdop-aux">
<ctl name="Es9018 AVC Volume" value="6" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="3" />
</path>
Click to expand...
Click to collapse
After editing you can put it back to the zip file and re-install module with a new one!
Nice. Thanks for this
It seems build.prop code in system.prop didn't readed by system, so dts:x don't work, i use my phone to create this mod.
I will try to fix my module. Thanks
Sorry too late update, new version 3 uploaded, please redownload module and remove old version!
If you already add DTS:X code into build.prop you can remove them by using root explorer with text editor.
Please note that this module include LG equalizer if you already install LG equalizer before installing this module please remove that!
Wow...this seems interesting... Trying out right away...
Wow. This is a new level of forcing HIM (see the screensho !). Thank you a lot !
I played a bit with magisk modules recently, and I noticed that the module.prop file was working on previous 19.4.xxxxx canary version. It's weird you're forced to use a separate script with resetprop...
I'm just completely confused about the huge hissing noise I have when listening to music... I modified the gains in the ESS DAC section of mixer_path_tavil.xml (0->18 or 20) but still : how do Poweramp HiFi mode (24bits but just 48kHz for me) achieves perfect sound with gain set to 0 ? Is there another file/value that I can edit for my own setup ?
Awesome. Just one (probably noob question) :
This doesn't play well with Narsil, right?
Jilano34 said:
Wow. This is a new level of forcing HIM (see the screensho !). Thank you a lot !
I played a bit with magisk modules recently, and I noticed that the module.prop file was working on previous 19.4.xxxxx canary version. It's weird you're forced to use a separate script with resetprop...
I'm just completely confused about the huge hissing noise I have when listening to music... I modified the gains in the ESS DAC section of mixer_path_tavil.xml (0->18 or 20) but still : how do Poweramp HiFi mode (24bits but just 48kHz for me) achieves perfect sound with gain set to 0 ? Is there another file/value that I can edit for my own setup ?
Click to expand...
Click to collapse
Ya i use resetprop to make sure it's working, because on my phone it's not working with system.prop magisk 19.4
What's your headphone/headset? Because on my phone using IEM TFZ King Pro and Sony WH-1000XM3 (using AUX Cable) don't have any hissing, also i use PowerAMP latest beta, it's working fine 24bit/192KHZ,
PowerAMP in LG V30 Android Pie it's ONLY supported DVC with output 24bit 44.1, 48, 96, 192KHZ, if you choose other sampling rate DVC don't work.
Unfurtunately forced HIM is to set value to 0
cascabel said:
Awesome. Just one (probably noob question) :
This doesn't play well with Narsil, right?
Click to expand...
Click to collapse
What is Narsil? this module didn't override any audio effect only audio configuration and mixer, if you are talking about other sound mod, this module probably working with them
Rizal Lovins said:
What's your headphone/headset?
Click to expand...
Click to collapse
Well, difficult questions : I don't have high quality headsets or headphones... I use a HyperX Cloud I, a Beyerdynamics Custom Street, a Sony 250AP-ish headset. The situation is always the same : hissing without high quality option...
Rizal Lovins said:
PowerAMP in LG V30 Android Pie it's ONLY supported DVC with output 24bit 44.1, 48, 96, 192KHZ, if you choose other sampling rate DVC don't work.
Click to expand...
Click to collapse
Yeah this works perfectly : no noise with high quality output (with DVC, and I put 48kHz because I can't hear any difference with more sampling rate). But I would like to use OpenSL output option (or other apps...) without noise and with DTS / JamesDSP... I don't understand what PowerAmp is doing to suppress the noise ! Can we do the same thing with a (your) mod ?
Rizal Lovins said:
Unfurtunately forced HIM is to set value to 0
Click to expand...
Click to collapse
Hmmmm I changed the value, and still it was forced.
[EDIT]
Maybe my faulty jack plug (I stop hearing from the right when I push in a certain way) can generate the noise issue... I just realized that ! It's a bit stupid, sorry. I guess we'll see after I managed to send back for warranty repair.
Rizal Lovins said:
What is Narsil? this module didn't override any audio effect only audio configuration and mixer, if you are talking about other sound mod, this module probably working with them
Click to expand...
Click to collapse
Yeah, Narsil (like Ainur Sauron) messes with mixer. So they're probably not compatible with your mod. But hey, this one is specifically for v30, so it might be better. Gonna try it as soon as i get home. ?
Bro can you tell which file i should remove from the module to remove the performance improvement
Since its already hot in my country and overclocking will make it heat up and consume more battery
Ali1228 said:
Bro can you tell which file i should remove from the module to remove the performance improvement
Since its already hot in my country and overclocking will make it heat up and consume more battery
Click to expand...
Click to collapse
It's not overclocking. Lg handcoded it so bigger core frequency will get stuck on 2361. He just removed that. So there's nothing you can remove, rathee you've to add.
---------- Post added at 04:18 AM ---------- Previous post was at 04:16 AM ----------
@Rizal Lovins you can make gaming even better by
sys/class/kgsl/kgsl3d0 and find throttle file set to 0
tech_infinity said:
It's not overclocking. Lg handcoded it so bigger core frequency will get stuck on 2361. He just removed that. So there's nothing you can remove, rathee you've to add.
---------- Post added at 04:18 AM ---------- Previous post was at 04:16 AM ----------
@Rizal Lovins you can make gaming even better by
sys/class/kgsl/kgsl3d0 and find throttle file set to 0
Click to expand...
Click to collapse
If we disable kgsl throttle, does that mean zero throttling at any temperature?
Rizal Lovins said:
How to Enable More Display Mode :
CHANGELOG :
Click to expand...
Click to collapse
Am not seeing any extra display mode after removed this apk.
Lg h930ds Ind - H930_30b pie
How camera pic. Quality?
Ali1228 said:
Bro can you tell which file i should remove from the module to remove the performance improvement
Since its already hot in my country and overclocking will make it heat up and consume more battery
Click to expand...
Click to collapse
This is not overclocking, it's just remove CPU freq limit 2.3Ghz hardcode by LG. I just remove that code to enable max freq CPU
bgshankars said:
Am not seeing any extra display mode after removed this apk.
Lg h930ds Ind - H930_30b pie
Click to expand...
Click to collapse
I mean display color mode.
Imam mustofa said:
How camera pic. Quality?
Click to expand...
Click to collapse
There is not much change. But it's worth to change from 95 to 98/100 image encoding
EDIT: Module updated to v4.
Wonder if you can add some overlay to reduce navigation bar height

[MODULE][AUDIO] Jackshi Audio (improve the volume levels n moar)

Yo there.
Brief summary
My previous device was a Mi A1 which packed some punch on its audio jack output. It could go LOUUUUD. Obviously I found X3's sound very lacking in that regard but very good in other audio aspects. Upon inspecting MIUI's mixer_paths, I found out that qualcomm's codec ULP mode (ultra low power) is used by default when you plug in some headphones. AFAIK this mode disables the codec's dedicated headphone amplifier (or something close to it, didn't really investigate further after getting the results I wanted lol). But no. We don't want this.
Sooo?
This module will increase/boost your jack**** 3.5mm volume levels. It does this by enabling the HIFI mode provided by the SoC's codec and disabling its compander module. It also tunes both the analog and digital values to more optimal levels.
Why not just increase RX_blablablabla?
Becaaause, with that method you increase digital gain only, which introduces distortion and similar artifacts. We don't want that. Before increasing the digital gain as high as possible, we need to do it with the analog gain first. The module does this for you, using values based off my testing.
If you want to go louder still, edit the mixer_paths_wcd9375 file present inside the module zip and increase the RX Digital Volume values of the headphones-ce section. If you're using AML do the same on the .aml.sh file (it is 83 by default).
What about HPHR/L?
It is already maxed out by default (20) and doesn't work unless you disable qualcomms compander. This module disables the compander and actually reduces it to 19 just to be on the safe side. If you want to go higher still follow the same steps presented above.
Why LOHIFI and not HIFI?
From my testing, there's no difference between those two and I'll always favor the mode which is more battery friendly.
Compatibility
Should work with any audio mod out there as long as you use AML.
Can also be used standalone.
It has only been tested on the lastest Xiaomi.EU build but should work in any MIUI based ROMs and most likely AOSP ROMs too (didn't test yet but it SHOULD work).
If you want to be 100% sure it works on your ROM (AOSP or not) install AML and Ainur NARSIL. I'll also leave my narsil_useroptions if you're interested.
Interesting, but isn't Ainur Narsil module doing the same thing? Like removing compander for example?
Also, doesn't Ainur edit mixer_paths too for higher volume?
@SkaboXD Ainur doesn't adjust the volumes but yeah, you can use it to disable the headphones compander module as well (although I'm not sure if that actually works). AFAIK.
theres 2 zip which one should i flash? im on eu, no other audio mod installed.
nvm. im just stupid
its magisk module ?
zainnasai said:
its magisk module ?
Click to expand...
Click to collapse
It is, checkout the description.
_Yank said:
It is, checkout the description.
Click to expand...
Click to collapse
thanks bro
at least mention AML as Audio Modification Library (magisk module) once I totally had to think hard what it was. Also you made it sound with Ainur Narsil you can test it, not that it should 100% work with it and AML.
also looking at your narsil_useroptions, the value for impendance is wrong? it should be 48000 instead of just 48 for 48ohm
thanks tho, much appreciated.
_Yank said:
It is, checkout the description.
Click to expand...
Click to collapse
Where you can edit the volume of the Bluetooth ?

Categories

Resources