[Q]K20Pro Music Playback Background Noise - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Horrible background noise at night. Looking farward to a solution. BTW,the following addition to "mixer_paths_tavil.xml" is useless, which works in poco f1 ( same DAC WCD9340).
Code:
<name="COMP1 Switch" ctl value="0" />
<name="COMP2 Switch" ctl value="0" />
<name="HPHL Volume" ctl value="11" />
<name="HPHR Volume" ctl value="11" />
system: Gsi LineageOS 16.0
player: MX player
headphone: Creative In-Ear 1
music: Ascension‐アセンション‐ > Asphodelus‐アスフォデルス‐

Referenced Poco F1, the same Qualcomm DAC WCD9340 phone, the background noise is related to mixer_paths comfigure xml file.
If you suffer the same problem as me, and I think with a high-sensitive armature drivers earphone, it will be a common problem, try to use CLS_H_ULP mode rather than LOHIFI as headphone default mode, and also change other related configures in mixer_paths xml file.
I wonder whether it's a problem caused by LineageGsi, as I don't use MIUI. I havn't checked background noise with K20Pro+MIUI, but I think background noise has more relation with vendor than system.
If someone is interested in this problem, please make some test and give a feedback
I have tested in:
system: AndyYan's LineageOS 16.0 Gsi BvN
vendor:MIUI 10.6.3.0
player: MX player "hw+" decoder
headphone: Creative Aurvana In-Ear 1
music: Ascension‐アセンション‐ > Asphodelus‐アスフォデルス‐

Related

Exynos Note 8 speaker loudness fix

On prior Notes I always increased the speaker loudness—via editing the /system/etc/mixer_paths.xml file usually.
On the Note 8, loudness controls seem to be in mixer_gains.xml The values there seem very low. Anyhow I edited a couple values—for speaker with media etc. No effect on reboot—volume doesn't seem to be affected.
Anyone hacked the volume levels any other way?
Yes. I wanted the head phone volume to be louder. Some songs are very soft and need more volume. This is especially true if you have bass boosted the audio which seems to drop the volume even further. I have rooted my N950N so I was able to edit the system/etc/mixer_gains.xml file in the following way to increase the volume.
</path>
<path name="gain-media-headset">
<ctl name="HPOUT2L Impedance Volume" value="120" />
<ctl name="HPOUT2R Impedance Volume" value="120" />
<ctl name="HPOUT2L Input 1 Volume" value="38" />
<ctl name="HPOUT2R Input 1 Volume" value="38" />
</path>
Higher numbers are louder but distortion comes into play. I found these the best compromise. The original values were 107 and 32 respectively.
IMPORTANT: You need to set the permissions on the mixer_gains.xml file BEFORE and AFTER each edit. Just tick all boxes allowing all permissions. Reboot to apply settings changes to audio volume. If your phone lags and has no audio after reboot -> Check Permissions on mixer_gains.xml.
You should be able to change other values through out this file to turn up the phone speaker or other blue tooth head sets. Enjoy! :good:
ant75 said:
Yes. I wanted the head phone volume to be louder. Some songs are very soft and need more volume. This is especially true if you have bass boosted the audio which seems to drop the volume even further. I have rooted my N950N so I was able to edit the system/etc/mixer_gains.xml file in the following way to increase the volume.
</path>
<path name="gain-media-headset">
<ctl name="HPOUT2L Impedance Volume" value="120" />
<ctl name="HPOUT2R Impedance Volume" value="120" />
<ctl name="HPOUT2L Input 1 Volume" value="38" />
<ctl name="HPOUT2R Input 1 Volume" value="38" />
</path>
Higher numbers are louder but distortion comes into play. I found these the best compromise. The original values were 107 and 32 respectively.
IMPORTANT: You need to set the permissions on the mixer_gains.xml file BEFORE and AFTER each edit. Just tick all boxes allowing all permissions. Reboot to apply settings changes to audio volume. If your phone lags and has no audio after reboot -> Check Permissions on mixer_gains.xml.
You should be able to change other values through out this file to turn up the phone speaker or other blue tooth head sets. Enjoy! :good:
Click to expand...
Click to collapse
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
[/COLOR]
白い熊 said:
On prior Notes I always increased the speaker loudness—via editing the /system/etc/mixer_paths.xml file usually.
On the Note 8, loudness controls seem to be in mixer_gains.xml The values there seem very low. Anyhow I edited a couple values—for speaker with media etc. No effect on reboot—volume doesn't seem to be affected.
Anyone hacked the volume levels any other way?
Click to expand...
Click to collapse
Please help...
I have a rooted Snapdragon note 8. Im trying to increase headphone volume... I done have a mixer _gains xml

[AUDIO][PIE][V30/V30+] Restore Legacy Audio Configuration

Hi all, this mod is to restore audio configuration for 3rd party app music like PowerAmp Hi-Res Output to be compatible on PIE ROM which supported Quad DAC Panel.
Changelog :
Code:
*Enable all sampling rate up to 384khz
*Restore stock audio configuration to match with HiFi Quad Dac Panel
*Bypass Quad DAC detection for headset/headphones to be enable for all connected AUX
*Restore Google stock volume value for Headset/Headphones
This audio configuration will enable Hi-res Output Experimental for AUX/Wired Headphones in PowerAMP since PowerAMP didn't detect AUX/Wired Headphones in PIE ROM
NOTE :
PowerAMP still has bug DVC in PIE ROM in certain sampling rate (88.2Khz,176Khz,352Khz,384Khz) no sound if you choose the one that i listed.
DVC Only work with 44.1Khz,48Khz,96Khz and 192Khz
So if u want to use e.g 384Khz you need to disable DVC in PowerAMP
Install this mod via TWRP and you are ready to listening music
I can confirm it fixes the inverted bug of the quad DAC switch in AOSP pie Roms. Working well over here, i can hear the difference in sound.
The filters seem to be a bit buggy now.
I am using this on my device as I found that inverted switch irritating.
I use USB audio player btw
This is amazing thank you for this ,I'm a longtime Poweramp user, best music player in the market
Thks for your hardwork on this mod
---------- Post added at 02:28 AM ---------- Previous post was at 02:08 AM ----------
Rizal Lovins said:
Hi all, this mod is to restore audio configuration for 3rd party app music like PowerAmp Hi-Res Output to be compatible on PIE ROM which supported Quad DAC Panel.
Install this mod via TWRP and you are ready to listening music
Click to expand...
Click to collapse
Would you mind sharing what you change in these file?
Mrxyzl said:
Would you mind sharing what you change in these file?
Click to expand...
Click to collapse
You can take all those files from Stock ROM, since stock ROM still include old/legacy audio configuration, for more info https://source.android.com/devices/audio/implement-policy
To fix Quad DAC you need to edit mixer_path_tavil.xml
Code:
<!-- ESS DAC START -->
<path name="headphones-hifi-dac">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="1" />
</path>
<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>
<path name="headphones-hifi-dac-aux">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="3" />
</path>
<path name="headphones-hifi-dacdop">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="1" />
</path>
<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>
<path name="headphones-hifi-dacdop-aux">
<ctl name="Es9018 AVC Volume" value="0" />
<ctl name="Es9018 Master Volume" value="0" />
<ctl name="Es9018 HEADSET TYPE" value="3" />
</path>
I use dual speaker mod in stock oreo, but bottom speaker is much treble? how to fix?
Step to install it? I'm new to it and searching to enable hi res on my RR ROM in poweramp
topertups said:
Step to install it? I'm new to it and searching to enable hi res on my RR ROM in poweramp
Click to expand...
Click to collapse
Dont use this on pie, it has bugs. Search Magisk] Enable 24 bit output for PowerAmp on PIE thread
Just want to give my thanks! You're a life saver.
I just bought a V30 because it looked like a perfect phone with a great headphone jack. Unlocked it and tried some custom ROMs, and EVERY single one had a horrible hiss/high noise floor in the sound, no matter the DAC setting. I was literally ready to sell this phone just a week after buying it because I love my good sound quality. But your ZIP fixed it. It sounds perfect now.
So if anyone has a loud hiss using headphones, regardless of HIM or regular DAC modes, absolutely give this a try.
I'm running the ResurrectionRemix 7 (Pie) ROM. I don't have any bugs, and my DAC actually seems to function better, i.e. I don't have to turn it off and on every time I play music to actually apply the DAC settings.
How do I restore to stock? I get terrible hissing with my earbuds.
As this is a TWRP flashable, the changes it makes are not easily reversible. You can either take apart the flashable zip, read through the install script and try to reverse it. Or you can restore the system backup you made before flashing a TWRP mod. If you didn't make a backup, your next best bet is to reflash the rom itself through TWRP or if your coming from a KDZ, reflash the System partition using patched LGUP (make sure its the EXACT KDZ you came from, if its not, your better off backing up your data and following one of Chaz's guides to reflash the whole thing, these phones CAN be bricked by software if your not careful).
cLick1338 said:
How do I restore to stock? I get terrible hissing with my earbuds.
Click to expand...
Click to collapse
This mod simply overrides some files. You'll need to put the original files back. What is your ROM version? I also tried this mod and didn't like it. Reverted it back with the flashable zip (attached) containing the original files made for my specific ROM version (V30q). It might cause issues if you have an other version but I don't really think it will.
Thank you, that did the job (v30q, H930). All mods should have a remover if possible, really. Partially my fault for not doing a backup before though.
Fluvance said:
*
Click to expand...
Click to collapse
It's great to see that it solved the noise problem for you. Is there hissing or noise when playing in apps, for example Youtube, Spotify or Tidal? Or it just fixes the noise floor/ hissing for Poweramp?
DooMLoRD77 said:
It's great to see that it solved the noise problem for you. Is there hissing or noise when playing in apps, for example Youtube, Spotify or Tidal? Or it just fixes the noise floor/ hissing for Poweramp?
Click to expand...
Click to collapse
It only fixed the hissing in Poweramp. Which was my main concern. But it's a little funny when listening to a song with zero hiss, and then have a notification sound come up in the middle that hisses like crazy.
But yeah, Spotify, YouTube, Firefox, system sounds, etc all hiss.

Increase Bluetooth Audio?

Hello!
I am using HavocOS and my Xiaomi Airdots pro. Is there a way to increase the Bluetooth volume? Is increasing it with Viper the only way? Especially in Spotify it is very quitly. I have tried to deactivate the max bluetooth volume in the dev settings but with no result.
You have a few options,
You can sift through audio folders that are approximately here : Path : system/vendor/etc/ and then locate mixer_paths_overlay_static.xml and mixer_paths_tavil.xml
Do some trial and error with manually increasing audio values For example : changing <ctl name="HPHL Volume" value="17" /> to <ctl name="HPHL Volume" value="20" />
Another option
Flash the attached files that I found on 4PDA a few months ago
I don't remember who to give credit to because I had trouble re-finding it just now. So if the creator sees this post, PM me with your details and I will edit this post and provide credit.
Edit Credit goes to this person : http://4pda.ru/forum/index.php?showtopic=912822&view=findpost&p=83438213
I have used the mod and it definitely worked for me and should work on any rom.
First a Caveat : Use at your own risk.
Although I have used this mod and as mentioned it does in fact work. If you have an issue, don't blame me.
Although there is an uninstall file : make a Nandroid backup and so if the sound quality isn't ideal for you, and for some reason the uninstaller doesn't work, you can quickly go back without too much hassle.
Enjoy.
Thank You very much, i will try
You can also install Xiaomi eu. It's playing music much much better and louder than official rom.
Alex2017Germany said:
Hello!
I am using HavocOS and my Xiaomi Airdots pro. Is there a way to increase the Bluetooth volume? Is increasing it with Viper the only way? Especially in Spotify it is very quitly. I have tried to deactivate the max bluetooth volume in the dev settings but with no result.
Click to expand...
Click to collapse
You can also use the louder audio flashable zip I made for mi8 in the mods section.
https://forum.xda-developers.com/showpost.php?p=78865714&postcount=1
Agimax said:
You can also use the louder audio flashable zip I made for mi8 in the mods section.
https://forum.xda-developers.com/showpost.php?p=78865714&postcount=1
Click to expand...
Click to collapse
Cool!
I never knew that you made one.
Edit: How much headroom does your audio mod leave? As you probably already know, should be definitely no higher than -3db, this volume is usually loud enough and without compression artifacts or digital noise.
Edit 2 : Nevermind, I see you left the dynamics, Excellent!
I am sure that your mod has better quality than the one I posted. Thanks for your work.
Agimax said:
You can also use the louder audio flashable zip I made for mi8 in the mods section.
https://forum.xda-developers.com/showpost.php?p=78865714&postcount=1
Click to expand...
Click to collapse
Does it work also on HavocOS? Because in the topic stands "[MIUI Global]"
Just asking to be sure.
Alex2017Germany said:
Does it work also on HavocOS? Because in the topic stands "[MIUI Global]"
Just asking to be sure.
Click to expand...
Click to collapse
It should if you are using MIUI firmware / Vendor partition. The audio files are in the Vendor partition and usually are linked to that location from the system/etc directory. The mod goes to both places.
Ich have found the file mixer_paths_tavil.xml in vendor/etc/
There are some sections with "Digital Volume"
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="RX4 Digital Volume" value="84" />
<ctl name="RX5 Digital Volume" value="84" />
<ctl name="RX6 Digital Volume" value="84" />
<ctl name="RX7 Digital Volume" value="84" />
I dont know if i can change it to 90. There are more sections where "Digital Volume" is listed but with diferent values like 81 and so
Alex2017Germany said:
Ich have found the file mixer_paths_tavil.xml in vendor/etc/
There are some sections with "Digital Volume"
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="RX4 Digital Volume" value="84" />
<ctl name="RX5 Digital Volume" value="84" />
<ctl name="RX6 Digital Volume" value="84" />
<ctl name="RX7 Digital Volume" value="84" />
I dont know if i can change it to 90. There are more sections where "Digital Volume" is listed but with diferent values like 81 and so
Click to expand...
Click to collapse
You can do what you prefer, but i've been modding sound since the first consumer HERO phone. I would not go higher than 87 or 88 on the digital side to help reduce distortion. I also wouldn't turn the amp louder than 19 to 21 (def no more than 24 max).
Rule of thumb for audio:
LINEOUT 1&2 Volume to around 18 or 19
HPHL & HPHR to around 24
ADC1 & ADC2 all to 84
RX0 to RX7 all to 84
DEC0 to DEC8 all to 84
Don't forget to check the other mixer files overlay_dynamic and overlay_static. My mod goes through all of the files tweaks all areas for change.

[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

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