[Magisk] AOSP dual speaker mod - Enable 24 bit output for PowerAmp on PIE - LG V30 Themes, Apps, and Mods

As i see many people flashing the old oreo stuff from Whiskey on AOSP which result in many bug, i decided to make a module to enable dual speaker mod, pseudo-HIM mode, and Gcam - stereo recording mod on AOSP
Feature:
+ pseudo-HIM mode, should make sound better and DAC toggle work
+ Stereo recording
+ Dual speaker - no mic breaking
+ I still attach the Poweramp 24 bit mod in attached file
Note:
+ Not working with ainur or narsil or any mixer path editing mod
+ Can work together with the Poweramp 24 bit mod attached
+ May have some unknown bug, report if you have any
For old OP:
Hello everyone
After a bit of work, me and @legacyeah manage to bring the great Legacy Audio Mod by @Rizal Lovins, in the form of a Magisk Module for quick installing and removing. We also manged to fix some bug found in the original audio mod.​
Features:
* 24 bit output on poweramp
* enable 384 khz resampling
* Working audio recording in video
*Based on and improve upon Rizal Lovins Legacy Audio Mod on XDA[/COLOR][/COLOR]
Notes: DVC in poweramp is bugged so DVC only work with 192, 96,48,44.1 khz resampling rate. Other resampling rate will need DVC disabled
*IMO sound quality is better compare to stock pie, it feel the same as stock LG sound quality*
Confirmed working on Havoc 0402 + Ainur with no other Audio mod or AML , other rom and compatibility with other audio mod need more tester
How to install:
1. On an AOSP Pie rom
2. Have Magisk working (if you dont know what magisk is and how to install it, search Google)
3. Flash the provided zip through TWRP or Magisk manager (Magisk manager may has bugs causing the zip not flashable)
4. Reboot
5. Enjoy ! (Music player may need further setting for 24 bit output)​
Note 2: If you find any bug, please feel free to report but please remember if you use this mod with other sound mod (like Viper 4 Android, DTS..) the bug will be noted but no promise for it to be fixed
Credit goes to:
@legacyeah for mic recording bug fix
@Rizal Lovins for the original mod
@SGCMarkus for providing AOSP for our device
And all the testers on telegram group
Update:
*18/2/19: add mod option to force enable HIM ( will cause sound distortion on normal headphone- dont complain)
*23/2/19: 24 bit mod HIM is now a separate module, you can install both module and enable one of your choice
*10/3/19: add 24 bit mod Dual speaker mod. Courtesy of @Dante63. Also cleaning up unnecessary file.
*6/4/19: With new device tree, AOSP now have working 24 bit output by default and HIM mode as well as DAC filter and sound preset working (with Ainur), those mod are depreciated. However, PowerAmp still need a mod to enable 24 bit output. Hence thread is updated with the necessary mod
*3/7/19: Add Pseudo HIM mod, dualspeaker mod, stereo recording.

I noticed that when i take any video from my device after installing this that voice is so much low when i play these videos on my device

Ziad Ajam said:
I noticed that when i take any video from my device after installing this that voice is so much low when i play these videos on my device
Click to expand...
Click to collapse
Low volume on video recording has been mentioned quite a long time on AOSP Pie. Are you sure it happend after flashing this mod. if so please specify: which rom, which camera app and which sound mod did you use?

Thanks man it works well with my v300s stock rom . thumbs up

Mrxyzl said:
Low volume on video recording has been mentioned quite a long time on AOSP Pie. Are you sure it happend after flashing this mod. if so please specify: which rom, which camera app and which sound mod did you use?
Click to expand...
Click to collapse
Actually audio recording was off when i use Gcam but was working well in other apps like snapchat and instagram. Now it works in every app but the recording voice is so weak.
---------- Post added at 06:31 PM ---------- Previous post was at 06:30 PM ----------
Ziad Ajam said:
Actually audio recording was off when i use Gcam but was working well in other apps like snapchat and instagram. Now it works in every app but the recording voice is so weak.
Click to expand...
Click to collapse
Android Pie Lineage OS 16

Ziad Ajam said:
Actually audio recording was off when i use Gcam but was working well in other apps like snapchat and instagram. Now it works in every app but the recording voice is so weak.
---------- Post added at 06:31 PM ---------- Previous post was at 06:30 PM ----------
Android Pie Lineage OS 16
Click to expand...
Click to collapse
So now all apps are having low volume recording or only the Gcam?
I wonder why this would happen because AOSP had low volume recording issue before.
Sent from my LG-H930DS using Tapatalk

Thread update with normal, high impedance mode and dual speaker mode

Working Very perfect in my LG US998 With pie DotOs and Dolby Digital Plus Mod.
No problems work good

So the dual speaker version has working mic?
Also, can you make a dual speaker+him version?

mark20120 said:
So the dual speaker version has working mic?
Also, can you make a dual speaker+him version?
Click to expand...
Click to collapse
I don't see why dual speaker don't have a working Mic.
I'll make one this weekend

It Works!
Mrxyzl, thank you very much. Speaker mod works fine. It would be great if you create a stereo mic mod for PIE camera. It's the only thing I miss in custom PIE roms. Thanks again

Stereo mod with HIM would be perfect.

Thread updated according to changes in new device tree. Add 24 bit mod enable for PowerAmp (only for those who use PowerAMP) other player like neutron and UAPP no need this mod

Mod no longer works after Poweramp v3 build 829 update. Running onHavoc os 2.5 may 20th update for LG V30 H930

Klimon5 said:
Mod no longer works after Poweramp v3 build 829 update. Running onHavoc os 2.5 may 20th update for LG V30 H930
Click to expand...
Click to collapse
thanks. i'll see what i can do this weekend
Edit: something is wrong on your side. mine work perfectly, btw need to enable DVC in order for 24 bit to work

Mrxyzl said:
thanks. i'll see what i can do this weekend
Edit: something is wrong on your side. mine work perfectly, btw need to enable DVC in order for 24 bit to work
Click to expand...
Click to collapse
I fiddled around with some settings. I fixed it. I have been using the 384kHz option with DVC disabled which works but sometimes I end up with the song skipping. I switched it to 192kHz with DVC enabled and that seems to resolve any issues I have. Why are the higher kHz options available if they don't work well or at all? Is it related to the way this mod is set up or how Poweramp is setup?

Klimon5 said:
I fiddled around with some settings. I fixed it. I have been using the 384kHz option with DVC disabled which works but sometimes I end up with the song skipping. I switched it to 192kHz with DVC enabled and that seems to resolve any issues I have. Why are the higher kHz options available if they don't work well or at all? Is it related to the way this mod is set up or how Poweramp is setup?
Click to expand...
Click to collapse
From my experience on stock, 384KHz drops it to 16bit and stops DTS from working.
Sent from my LG-H932 using XDA Labs

Found a way to make GCam record stereo audio

SDevil454000 said:
Found a way to make GCam record stereo audio
Click to expand...
Click to collapse
Much appreciated

Mrxyzl said:
Much appreciated
Click to expand...
Click to collapse
Updated stereo. Sound recording is louder and better quality.

Related

[Q] Mi Audio Enhancher AOSP ?

Hello,
I have a pair of Xiaomi piston v2 on my Mi 3 running AOSP Lollipop.
I really like to listen to music but i'm missing the Mi sound enhancer settings in the sound tab located in android settings.
I was using the Xiaomi piston setting + some adjustments on Viper4android FX, I have Viper4Android on 5.0 now; but i'm really missing that perfect audio quality which I got from the Mi Enhancer (Dirac??)
So is there a possibility to port the sound settings from MIUI v6 to aosp?
Greetings,
Merlin
You can get it once you get used to v4a. It's difficult to use but if you get the right settings you can get that almost perfect sound. The only way to get it is try try and don't cry. I'll post the settings which works for me asap
---------- Post added at 03:16 PM ---------- Previous post was at 03:04 PM ----------
PlaybackAGC enabled with 8x
Fire equalizer enabled with preset as acoustic
Field surround enabled
Differential sound enabled
VHS+ enabled at lvl3 while playing movies
Dynamic system enabled with common earphones 2 and bass at 55%
Viper bass enabled with natural bass
Viper clarity enabled with xhifi.
Yes I'm a bass lover. This profile works great with normal headphones for edm songs and movies
Thanks for your answer, but no. That sounds horrible with Mi piston earphones.
I was using the mi sound enhancer + viper4android in MIUI.
So i'm just asking if there is a way to port the sound enhancer to AOSP
Try extreme beats. It's an audio mod like v4a. It might help

[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

Sound Mod for xz1 xz1c xzp

This module is from the Russian site 4pda.ru
MOD EDIT: Link Removed
Increased sound in speakers
Increased sound in BT headphones
Increased sound in wired headphones
Added Clear Stereo sound effect
Added Clear Phase effect
Added xLOUD effect
Improved sound quality
It's for Android 9 root, flash from twrp
hsheemi said:
This module is from the Russian site 4pda.ru
https://4pda.ru/forum/index.php?showtopic=871692&st=3260#entry95492133
Increased sound in speakers
Increased sound in BT headphones
Increased sound in wired headphones
Added Clear Stereo sound effect
Added Clear Phase effect
Added xLOUD effect
Improved sound quality
It's for Android 9 root, flash from twrp
Click to expand...
Click to collapse
is it safe? did you try it on a daily basis?
jimmy1235 said:
is it safe? did you try it on a daily basis?
Click to expand...
Click to collapse
i tried it and it won't brick the phone it just might not work
Everything works, I personally did it
jimmy1235 said:
is it safe? did you try it on a daily basis?
Click to expand...
Click to collapse
yes it's very safe
it works in pe?
messyjuice said:
it works in pe?
Click to expand...
Click to collapse
it works only on pie stock, existenz
Someone tried it? Feedback? improved quality for real?

[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 ?

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

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"...

Categories

Resources