Extend Volume Steps - all versions of Android - One (M8) Q&A, Help & Troubleshooting

Due to it's excellent Audio DAC and having a proper Headphone socket, I use this phone entirely as a HIFI media player. 128GB SD card with FLACs. Onkyo HD Player for playing.
If you want more volume steps (if ROM doesn't have it) you need to edit the build.prop (upto 9) or default.prop (10).
Attached instructions.
At the end of:
ro.config.media_vol_steps=xx
xx = your number of steps, I find 60-75 ideal for fine volume control.
BTW, it doesn't work on Sense ROMs, you end up with 2 lots of volumes! 1 with the original 15 steps and 1 with your chosen number of steps.
I haven't found a way around this yet!

Related

[Sound MOD] AC!D Audio Technology: Treat your ears to a whole new sound experience!

Hi guys...
I've used Beats Audio Installer (from Play Store), Nexus Louder and Modified DSP with Beats on my phone.
All of them are fairly decent enhancements of our Defy's already nice audio output.
>
But then I flashed AC!D SoundMOD, which I came across in one of the Galaxy S3 forums.
>
IT IS AWESOME.
>
There's a major improvement in sound...
I noticed that even complex background rhythms are very noticeable when using the phones speaker.
>
Earphones and external speakers improved by whole orders of magnitude!!!
>
I'd like more of my fellow Defy users to be able to enjoy this great sound package, and hence I'm making this post.
Please keep in mind that I'm just reposting this here, all work on AC!D SoundMOD was done by r-ikfoot, Rizal Lovins and Knight47 and any other associated devs.
>
AC!D contains all this audio technology:
- Beats Audio by Dr Dre (Powerful bass)
- Clearbass Sound by Sony (Clear Bass)
- Xloud by SonyEricsson (higher sound
volume and clearer sound on speaker)
- Dolby Digital Sound (Equalizer enhancer
bass setting and Surround setting)
- Surround Sound (Deeper bass and
reduction of bass distortion plus EQ setting
support)
- Alsa by Walkman (Audio resampling and
driver activation for android phone)
- Dynamic Bass by Walkman (more Bass
frequency and better bass support)
- DSP Manager by Cyanogen Team (EQ
setting support overall more powerful sound)
- Audio resampling from Sony Xperia T
(NEW!)
- Clearbass audio setting from Xperia
T (NEW! Bass even clearer and deeper
than before!)
- Sony Walkman Player ( NEW! now
with Xperia V style!)
>
So without further ado, here are the links for AC!D SoundMOD.
>
Flashable zip: http://www.mediafire.com/?ujfj1azabcw1ibw
>
PLEASE NOTE THAT IT ONLY WORKS ON ICS AND JB- MIUI, AOKP, CM9 & CM10
>
DON'T FLASH IF YOURE RUNNING FROYO OR GINGERBREAD ROMS
>
Original Thread: http://forum.xda-developers.com/showthread.php?t=1883317
>
1. After downloading the zip, first make sure your System partition has at least 20MB free space. (That's quite a bit, I know, but we'll talk about reducing that later in the post.)
2. Place the downloaded zip on your SD card in your folder of choice, and reboot the phone into recovery.
3. Clear the cache partition.
4. Now choose 'Install zip from sdcard'.
5. Choose your zip file from its location and confirm that you want to flash it.
6. Wait for the zip to get installed.
7. Wipe cache again. [I just like doing this a lot ]
8. Reboot and rejoice!
>
>
[HOW TO] Free up some memory after flashing AC!D:
>
Now this zip is 18 MB, but 8MB out of that is Walkman visualiser. The Walkman Google and Facebook plugins are ~2MB.
All these apps are no use as system apps, so go to Titanium Backup or whatever app backup/ manipulation software you use, and convert VISUALISER to user app.
This won't affect visualiser functionality, just free up some memory.
Similarly, you can move or uninstall the Google Images, Facebook and other plugins.
Only the WALKMAN player won't move to user storage.
>
Open your ears to a whole new world of music.
Have fun!!!
>
>
>
Moved to General section.
Sounds interesting... Thinking of trying... Downloading
Thanks! (will click after testing )
Tried no luck stuck at moto logo using latest aokp job
Sent from my MB526 using xda app-developers app
**** in -> **** out.
All those audio mods for android are useless, everything you need is an equalizer and a trained ear.
Even if you put 10 plugins modifying the bass frequencies on there, that won't change the fact that you're plugging 1/2 inch headphones into your ears.
The AD/DA converters will still be as bad as they were when being manufactured.
You won't get the same bass response like from a subwoofer (which isn't really audible anyway, most of it you feel in your stomache area) and you won't have ANY crosstalk like from regular speakers.. and bear in mind that this is the setup your music is being created on.
There are two ways to improve your listening experience on your Android phone:
1) Don't use those ****ty earphones
2) Use those ****ty earphones but try to recreate a linear frequency curve by listening to music on a better setup and then use an equalizer to match it at least a little
If you've been listening to your music as MP3s then this whole operation is stupid anyway.
Buy (!) your music, and rip it in a lossless format like FLAC. This will increase the size of your rips, but it might be worth your while.
dog121 said:
Tried no luck stuck at moto logo using latest aokp job
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Works great for me.... did you have enough free space?
Kaffeekranz said:
**** in -> **** out.
All those audio mods for android are useless, everything you need is an equalizer and a trained ear.
Even if you put 10 plugins modifying the bass frequencies on there, that won't change the fact that you're plugging 1/2 inch headphones into your ears.
The AD/DA converters will still be as bad as they were when being manufactured.
You won't get the same bass response like from a subwoofer (which isn't really audible anyway, most of it you feel in your stomache area) and you won't have ANY crosstalk like from regular speakers.. and bear in mind that this is the setup your music is being created on.
There are two ways to improve your listening experience on your Android phone:
1) Don't use those ****ty earphones
2) Use those ****ty earphones but try to recreate a linear frequency curve by listening to music on a better setup and then use an equalizer to match it at least a little
If you've been listening to your music as MP3s then this whole operation is stupid anyway.
Buy (!) your music, and rip it in a lossless format like FLAC. This will increase the size of your rips, but it might be worth your while.
Click to expand...
Click to collapse
Agree except maybe for the flac part, on blind test almost anybody can't tell the difference between flac and mp3 @ 320kbps
Kaffeekranz said:
**** in -> **** out.
All those audio mods for android are useless, everything you need is an equalizer and a trained ear.
Even if you put 10 plugins modifying the bass frequencies on there, that won't change the fact that you're plugging 1/2 inch headphones into your ears.
The AD/DA converters will still be as bad as they were when being manufactured.
You won't get the same bass response like from a subwoofer (which isn't really audible anyway, most of it you feel in your stomache area) and you won't have ANY crosstalk like from regular speakers.. and bear in mind that this is the setup your music is being created on.
There are two ways to improve your listening experience on your Android phone:
1) Don't use those ****ty earphones
2) Use those ****ty earphones but try to recreate a linear frequency curve by listening to music on a better setup and then use an equalizer to match it at least a little
If you've been listening to your music as MP3s then this whole operation is stupid anyway.
Buy (!) your music, and rip it in a lossless format like FLAC. This will increase the size of your rips, but it might be worth your while.
Click to expand...
Click to collapse
I know that with crappy speakers, there's no way to improve the sound experience.
As I say in the OP, most of the improvement was over EXTERNAL SPEAKERS.
>
I know you hate these packages, but at least try it out before passing judgement.
>
And I'm not talking just bass boosts here. To be honest most plugins end up over emphasizing the bass, and end up distorting the music.
YaPeL said:
Agree except maybe for the flac part, on blind test almost anybody can't tell the difference between flac and mp3 @ 320kbps
Click to expand...
Click to collapse
Yes, you're right, I was a bit exaggerating.
But when I have a look at my friends computers I still see 128kbps *.wmas lying around.
It's at least something you should pay attention to.
TeeJay3800 said:
Moved to General section.
Click to expand...
Click to collapse
Should have been moved to themes and apps . General is too abstract .
Between , I can't really make out any difference in audio quality .
I have disabled dsp by renaming it and then rebooting .
Using Sennheiser CX 680 in ear .
Work fine. Also Acid Mod for Sony. I tried and works well ^^
there is no need for audio mods, an equalizer is more than enough... its all about the headset, not the software.
im using a thermaltake esports isurus headset and have 320kbps mp3 files, highly doubt that anyone would need better sound quality than this...
Have tried today for a couple minutes....poweramp is much better than this mod....
Sent from my MB525 using xda app-developers app
DSP Manager with 10hz bass unlock is significantly better
but ty anyways.
Thanks.

[Q] What’s with the EQ cluster****?

I’m using a Jedi Rom with Awesome Beats preinstalled and find that the EQ only affects the music app (in my case Sony Walkman). Not satisfied with that, I installed the Equalizer app from the play store because it is supposed to be a system wide EQ. Indeed, I did for some moments in time get it to work that way, ie it affected the sound in phone calls, audio streaming apps (like NPR News) as well as music. But somewhere along the line what with updating Rom versions it all came apart and now I am getting conflicts and errors (Equalizer fcs when I try to use it on phone calls in particular). I think it wants to be the only audio EQ effects package.
Further complicating the mix is MusicFX, which is apparently an EQ for the Google Music app (which I don’t have installed - Walkman is currently my only audio app). Having made my Xda searches, I know mine is not a new problem – variations have turned up with different phones and EQs. I have tried uninstalling Beats (various methods) and MusicFX, freezing and unfreezing one or both, reinstalling Equalizer between reboots after doing the former, etc but unfortunately, nothing has gotten me back to my goal of a single system wide EQ, maybe because I’ve had botched uninstalls every time. (Some of the errors I’ve gotten are: “Sound Effects Currently Not Available”, “Unfortunately MusicFX has stopped”, and Equalizer audio effect not available.)
Given that every audio app seems to install its own EQ (ex. PlayerPro and PowerAmp), how do you get a system wide EQ to work, much less remain stable when trying out new players? Do you have better luck with Roms that start out with no EQ (is there such an animal)? If anyone can shed any light on the subject (ie, how to set up and keep a system wide EQ working), I’d be grateful…
Eh, i don't believe it was supposed to be system-wide. You probably wouldn't want to EQ calls or your ringtone though for the safety of the small speakers.
You can go flash Ac!d 5.0 which works great on the GN2. Disable Awesome Beats and any other EQ app you have and let Ac!d do the job. It's system-wide, and works as soon as headphones are plugged in. You can also flash the volume mod, maybe the one that goes to 58db, if getting it louder is a concern.
>silentecho13, thanks for your response!
Actually I do want to EQ calls, or minimum I want to be able to if I need it. What brought it up in the first place was I had some really terrible earphones that needed a huge amount of EQ in order to use them for calls (it was like a tin can on a string lol). I've ditched those earphones, and I have already applied volume edits to my default_gain.conf which helps somewhat. Still, using EQ I find helps the sound in a better, controllable way than just upping the volume, and I still would like to apply it to phone calls, especially when the person on the other line is using a poor phone. When the EQ cut out and stopped working I really could tell the difference and I didn't like it.
As for the question of whether EQ was supposed to be system wide I don't know. Judging from the posts I found, it appears to me that the subject was more discussed a couple years ago than recently. I don't know why this is, or if I just don't know where to look. Was Android changed in a way since GB that makes it harder to implement? Did people give up on it as a goal? Or am I just doing it wrong? Well, I'm sure I am doing it wrong, but I was hoping to hear from someone who knows how the OS handles it and understands the issues of conflicting EQ app installs.
In any case, I just tried your suggestion of flashing AC!D Audio (5.0 for Samsung along with their redo of the Walkman player) and it was more of the same ("Unfortunately, Sound enhancements has stopped") except now I don't have access to any EQ settings. If I re-enable the Awesome Beats, its EQ will load, but the controls have no effect on music. I think I need to start with a Rom that has no sound enhancements or EQs preinstalled. Or perhaps I could make Acid or Equalizer work if I could just successfully clean the Awesome Beats Audio off my system. I guess I'll just try that again and see...
Alright, some new info and theories...
I managed to uninstall Beats Audio from my Jedi 6.1 system. I followed TEKHD's method in http://forum.xda-developers.com/showthread.php?t=2003153&page=3, except that I got the replacement files off the CleanRom 3.0.1 zip. This was to make sure that the files are from JB 4.1.2. I didn't flash, I just manually added the files and changed their permissions. The other change from TEKHD's method was I had to put back in the MusicFX.apk that I'd deleted, also from CR3 in order to get AC!D working later.
I tried to reinstall the Equalizer app but that was a no go. I'm starting to think it might have a problem with 4.1.2 - the same conflicts as before no matter what I did, and when I had it working before it was on a 4.1.1 base. Anyway I uninstalled that and installed the AC!D Audio 5.0 for Samsung and the Noozxoide equalizer. That I finally got working, I think, as designed. Unfortunately it is not a complete system wide EQ, or at least, it didn't affect phone calls for me. It did work for music and an NPR news stream, just as Beats did. I also tested it with the stock video player and it was able to alter its sound too (didn't try with Beats on that one).
What I do wonder though is how different any of the EQs I have tried can be from one another? They all clearly have the same interface to what I guess are Android system level controls: Compression, Bass Boost, EQ, Virtualization, perhaps the same audio controls that the STweaks utility also exposes. They (Equalizer, Beats, Noozxoide, etc...) all look the same. Why doesn't Android just have its own stock EQ to use those presumed controls? As far as AC!D goes, it appears to have put back the same files that I had to delete to get rid of Beats, though I have to believe that the AC!D folks have changed plenty of settings in those files.
Still wondering what it takes to get an EQ to handle the phone audio and hoping someone comes along who actually knows this stuff so I don't have to keep guessing...

[APK] USB Audio Player Pro, is a standout & uses our DAC to 192k!

USB Audio Player Pro.
Plays DSD, and FLAC files up to 192000 bit rate on our standard DAC, no USB Hw used.
FLACs get can be played through UAPP at their full glory from non OTG memory.
SACD rips are converted to PCM at 192K from OTG only, which forces you to pick files individuality. If played through UAPP they get downgraded to 44K.
I have tried out every notable player and none sounded like this. I have always preferred vinyl but when Super Audio CDs started growing, I was thrilled. Now I can play my hard drive stash on my phone! Too bad the app does not see OTG.
Playing from OTG is a bit convoluted ( more than a bit ? Depends if you have audiophile ears).
I use File Commander to get UAP to play/find the .dsf or .flac.
Then once playing you can create a playlist as you go. Never having to pick it again with FC.
More on the app's issues with Android 6 http://www.extreamsd.com/forum/showthread.php?tid=155
It isn't easy messing with Mother Android!
File Commander is the only app I can find that does this service well enough. It can be slow on hard drives greater than 200 GB. It is not much good for housekeeping chores.
Update, there are others: File Manager + unlike FC, does a download (efing slow) , X-plore and B1 File too but do not recognize DSD. ES is useless for OTG. Filers are in a sad state for MM on our phone.
I use Solid (not classic) for deleting/ copying.
Note this app does not limit any low or high frequency junk. Vinyl transcriptions that I thought to be OK are not listenable due to pops and clicks.
Be sure to choose Android bit rate as Variable (pic 2).
See pic 1: using FC to load a .DSF (DSD) to UAPP from OTG drive. Pic 4 - 6 settings I used to get 192k.
Pic 7: .dsf (DSD) file residing on internal memory (or sdcard) showing 44k PCM.
Pic 8: the plugin EQ tweeked for my Apple earbuds.
FC
https://play.google.com/store/apps/details?id=com.mobisystems.fileman
UAPP
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
More to come....
How is the DAC capable of such? Does it even sound good for a mid range phone or even compared to a dedicated DAC?
Locklear308 said:
How is the DAC capable of such? Does it even sound good for a mid range phone or even compared to a dedicated DAC?
Click to expand...
Click to collapse
As I compare the DSD (.dsf) output from a file residing on OTG (192 k PCM) vs the same from SDcard or internal memory (44k PCM) it is stunning as to stereo imaging and placement of instruments beyond the space in my head. Highs are much smoother as well.
I was considering buying a 40 dollar ESS DAC (micro usb) on Amazon and an adapter. Now ....
Locklear308 said:
How is the DAC capable of such? Does it even sound good for a mid range phone or even compared to a dedicated DAC?
Click to expand...
Click to collapse
I think that ESS DAC would allow DSD direct!
Also at volume near 100% I notice no clipping of our Amplifier.
aviwdoowks said:
USB Audio Player Pro.
Plays DSD, and FLAC files up to 192000 bit rate on our standard DAC, no USB Hw used.
FLACs get can be played through UAPP at their full glory from non OTG memory.
SACD rips are converted to PCM at 192K from OTG only, which forces you to pick files individuality. If played through UAPP they get downgraded to 44K.
I have tried out every notable player and none sounded like this. I have always preferred vinyl but when Super Audio CDs started growing, I was thrilled. Now I can play my hard drive stash on my phone! Too bad the app does not see OTG.
Playing from OTG is a bit convoluted ( more than a bit ? Depends if you have audiophile ears).
I use FX Commander to get UAP to play/find the .dsf or .flac.
Then once playing you can create a playlist as you go. Never having to pick it again with FX.
More on the app's issues with Android 6 http://www.extreamsd.com/forum/showthread.php?tid=155
It isn't easy messing with Mother Android!
FX is the only app I can find that does this service well enough. It can be slow on hard drives greater than 200 GB. It is not much good for housekeeping chores, I use Solid for deleting/ copying.
Note this app does not limit any low or high frequency junk. Vinyl transcriptions that I thought to be OK are not listenable due to pops and clicks.
Be sure to choose Android bit rate as Variable (pic 2).
See pic 1: using FX to load a .DSF (DSD) to UAPP from OTG drive. Pic 4 - 6 settings I used to get 192k.
Pic 7: .dsf (DSD) file residing on internal memory (or sdcard) showing 44k PCM.
Pic 8: the plugin EQ tweeked for my Apple earbuds.
https://play.google.com/store/apps/details?id=com.mobisystems.fileman
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
More to come....
Click to expand...
Click to collapse
How does it compare to the neutron music player. (which I believe holds its own in audio quality)
akshaypatil869 said:
How does it compare to the neutron music player. (which I believe holds its own in audio quality)
Click to expand...
Click to collapse
This is different when using only the phone and no DAC. Neutron may try to render at higher rates but it never blew me away. Nor is there any acknowledgment of it's output.
In UAPP, I did not have to check the Android output shown on the player screen. It was like night and day.
akshaypatil869 said:
How does it compare to the neutron music player. (which I believe holds its own in audio quality)
Click to expand...
Click to collapse
Uuap would not have sounded better if I had not checked the android bitrate to be variable.
Standard settings of it and, I think, other players result in 44k output through the phone without any DAC present
Will it work with music on the SD card too? Or does it have to be loaded from OTG?
It does work! My S7 is dead to me! This phone is great. My FiiO Q1 might collect dust.
From audio_Policy.conf
Snip
AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_HDMI
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
compress_offload {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000|88200|96000|176400|192000
channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_FLAC
devices
Snip
I just made a request for support with a big name player that browses OTG and plays DSD too. Can you guess who?
So I am considering getting this app, however want to make sure it will do what I want it to, LOL.
So I dont have any external USB DAC right now, and normally stream music to my car using Bluetooth to my AudioEngine B1. It sounds good, but looking for the Android DAC to help improve once I start playing my local DSD files and high quality recordings. With this setup, will this improve the sound considerably?
banshee28 said:
So I am considering getting this app, however want to make sure it will do what I want it to, LOL.
So I dont have any external USB DAC right now, and normally stream music to my car using Bluetooth to my AudioEngine B1. It sounds good, but looking for the Android DAC to help improve once I start playing my local DSD files and high quality recordings. With this setup, will this improve the sound considerably?
Click to expand...
Click to collapse
You may want to wait as UAPP will not browse OTG and said to me, no plans to do it.
Yet PowerAmp does browse now and they say they are tring to support all phone DACs
Go my post in Q & A. Register and submit.
You may not get 192k over BT
banshee28 said:
So I am considering getting this app, however want to make sure it will do what I want it to, LOL.
So I dont have any external USB DAC right now, and normally stream music to my car using Bluetooth to my AudioEngine B1. It sounds good, but looking for the Android DAC to help improve once I start playing my local DSD files and high quality recordings. With this setup, will this improve the sound considerably?
Click to expand...
Click to collapse
You can play OTG from a Playlist, it is the only way to get 192k PCM from a dsf too.
I am still on Marshmallow and unrooted. Nougat users, does USB Audio player play high resolution?
Does File Commander browse OTG and pass audio files to the player?
Thanks
Any Nougat stock no root working equalizer software for MZP need advices what to use.
Wysłane z mojego XT1635-02 przy użyciu Tapatalka
Has anyone tested this with a dragonfly?
Locklear308 said:
Has anyone tested this with a dragonfly?
Click to expand...
Click to collapse
Splain pleaze
DAC
Right!
I never used a DAC btw.
sebx_g1 said:
Any Nougat stock no root working equalizer software for MZP need advices what to use.
Wysłane z mojego XT1635-02 przy użyciu Tapatalka
Click to expand...
Click to collapse
This works for me.

Sound of Voices to quite - Viper4Android DRC (Dynamic Range Compression)

Hey guys.
I have the issue that i'll often watching content from Prime & Netflix on my FIreTV Stick (1gen) in my bedroom (its quite there).
Most of the content is unable to watch because explosives are really loud and voice are too quite -> common issue when player does'nt do any Dynamic Range compression.
Sadly the FIreTV does'nt. I have tried the following:
Disable DD and DD+ in the system options opf the dire TV stick
try come sound options of my LG 32LC41 TV -> sadly there are not much options on this really old TV and no one makes voices louder and explosives quiter
So here are my questions:
is there any other solution for this issue?
does viper4android working and has such an option which works on the firetv stick 1gen over HDMI?
thx
pOpY
As on April, 2023 there are following methods:
The avialble applications can be categorised as follows'
I) Real Time Normalization
(a) Across the system: Viper4Android-Android, Realtek driver v6.0.1.6767, Date 30-10-2012-Windows, Realtek-Dolby Audio
(b) Application level: AIMP-Android, AIMP-Windows, double Twist v3.2.1-Android, Cloud Player v1.8.5-Android, many online streaming services
II) Replay Gain identification, linking and saving as separate file without even disturbing meta data: Neutron Audio Player - Android
III) Replay Gain Normalization (Replay gain writing at Meta Data it can be undone, if player is not compatible it will ignore Replay gain): mp3gain, foobar2000, R128Gain_1.0.11_win64_gui.
IV) Loudness conversion (can not be undone to original, such processes generally cannot be lossless): Audacity, etc many apps for windows as well as android.
Note: Perceived volume level or Digital “loudness” is measured as LUFS and it’s negative. Mp3gain 89dB = -18LUFS
--------------------------------------------
I.a.1 The following is experience sharing of Android with Viper4Android 2.7.2.1 on spare phone Xiaomi mi5 lineage 17.1 (Android 10) (Phone Volume 40 to 70%)
i) Enable "Master limiter"
Output -0db
Output pan 50:50
Threshold limit 0dB
ii)Enable "FET Compressor" with the following settings
operator threshold to -60dB (or -50 to -60dB)
Compression ratio to 10.00:1, (or higher like 20:1 upto infinite)
Automatic Knee untick it,
inflection: 10.8dB
inflection point gain 2.00x,
Automatic Gain-Untick,
Automatic Gain 25.6dB (or 20 to 40dB it will be more effective but in relation with operator threshold )
Automatic attack, untick
Attack to 10ms. (0.1 to 12ms)
Max attack 200ms, (10 to 250ms)
Automatic Release untick
Release 20 ms (0.2 to 25 ms)
Max Release 250 ms (2 to 300ms)
Crest 20dB,
Adapt 2639
Clipping prevention Tick
it is able to normalize loudness automatically tested qith audio volume 88.8dB (-14LUFS) and 105.2 db (-3LUFS), -36LUFS (dB as identified by MP3Gain PC software).
As normalization standard is available so many parameters are not required for audio normalization, once selected it can target -18 LUFS like Foobar plug in /double Twist.
Note:
(i) Even after Audio Modification libraries (AML) is installed, a4v needs SoundFX to be disabled. It is working on Legacy Mode. it works along with Dolby Atmos also.
(ii) James DSP is having Dynamic Range Compressor, but not having options to provide necessary inputs /it is not having them built in, it is not able to work as auto volume normalizer.
(iii) Any DSP expected to impure or introduce artifacts to the audio, we may not be able compensate by tweaking with v4a etc to the original. If you enjoy your own way, you may like it. Further if the function of Auto loudness / Auto volume level /auto volume normalization is at top priority , it succeeds to great extend android across the system. Tested with pink noise with digital loudness from -3LUFS to -23LUFS. It is noticed if bass is very high in original the above settings may not be suitable or difficult to adjust to universal setting.
(iv) There is no auto loudness normalization in "Dolby Atmos" in current versions. Dolby Audio is effective which is available at speaker control panel on windows 10.
in my case:
The Viper4Android 2.7.2.1 rootless type installed from TWRP (as magisk module is infinitely trying for installation of driver) even after installing Selinux 11, AML 4.2, Lineage's SoundFX disable or all in one type available at Github.
at present UNINSTALLER for above rootless type is not readily available.
There is noticeable deterioration in sound quality of low frequency with fet compressor of v4a.
I.a.2. or If you are on windows 10 with Realtek audio , install 2012 driver v6.0.1.6767, Date 30-10-2012 (old driver) it will give options “Enhancements" select loudness equalization ’ (sometimes it miss few milliseconds at start of track). This is real-time type as well as across the system, but it's effectiveness cannot be checked with pink noise. It is also noticed that later drivers having Dolby Audio , when made it on , it is also acting as loudness normalizer. However Dolby Atmos is not having any such feature.
---------------
I.b.1 or use "double Twist v3.2.1.apk" (i.e classic) Android {for real-time normalization: Settings>Loudness Normalization>on} but it is not able to recognize all folders / audio files.
I.b.2. or "Cloud Player v1.8.5" for Android by double Twist Corp {for real-time normalization: Settings>Loudness Normalization>on (after buying)} but it is not able to recognize all folders / audio files.
I.b.3. Or use "AIMP" for Android or PC {for Real-time auto loudness normalization: options >sound effects > options > Volume Normalization> Replay Gain > select / Tick Replay Gain, Untick at Use values from tags (as not required for real time mode) , Tick on the fly Analysis> tick (=ok)}. Some times it misses by a few milliseconds at new track.(PC version's UI is not user friendly at present)
I.b.4 or Jet Audio HD Player Android {for Real-time auto loudness normalization: Menu > Preferences > Playback> select "Adjust Replay gain with AGC"}
I.b.5 Foobar2000 PC
Use "EBU or R128 Normalizer" plugin for Real-time auto loudness normalization ( install the plug in , add the same at DSP from preference. It is working ok. Tested with pink noise with digital loudness from -3LUFS to -33LUFS. Working perfectly when started with -33LUFS and going up , it's output was normalized to -18LUFS and verified with Youlean_Loudness Meter 2 vst3 plug-in installing to Foobar.
I.b.6 PC through installation of VST adapter: adding this adapter to DSP compnent to Foobar and using available VST plug in. At present volume normalizer for play purpose yet to be developed.
I.b.7 Many online streaming services
---------------------
II.1 "Neutron Audio Player" Android It writes replay gain information to a separate file with a reference for location and file name, so even meta data is also preserved. However getting into folder browsing is outdated {Neutron v2.12 Menu (3 horizontal lines) icon> Sources (do not select folders available in options, the following folders will linked /show up at the folders of neutron at later stage )> + > File system > Devices > SD card> now it will come to nearly modern browser mode..browse to required folder having music files...., select folder > select Tick > it will scan files}
(i) Addition of music folder to Neutron
{Neutron v2.12 Menu (3 horizontal lines) icon> Sources (do not select folders available in options, the following folders will linked /show up at the folders of neutron at later stage )> + > File system > Devices > SD card> now it will come to nearly modern browser mode..browse to required folder having music files...., select folder > select Tick > it will scan files
, if not hold on folder to get option to scan.(The files inside above folder is not responding/not scanning , delete above folder in above settings of neutron click and hold to get delete option (it is not real deletion at internal drive) , make back and forth , to get refreshed and re-create. If required
select other than previously used folder or super folder or some other sub folder. For using any other than sub folder you have to repeat above process.
{Neutron v2.21.9 Menu , just after fresh installation : select Audio Source as Manual>File System> + > Audio files folder or subfolder (as per your plan and scheme how you want them appear later) >Use This folder > ALLOW >select this folder > click on Tick Icon> Folder on drive will be added to folders of Neutron, if not successful add another folder or subfolder consisting audio files.
if above skipped or at later stage some more folders to be added : (3 horizontal lines with arrow) icon> Sources > + > File system > + > now it will come to nearly modern browser mode..browse to required folder having music files...., select folder > >Use This folder > ALLOW > select Tick >.....
(ii) (i) Deletion of music folder to Neutron
To delete folder in neutron app (No physical deletion on inernal drive) : (3 horizontal lines with arrow) icon> Sources > tap and hold on the folder > delete
(iii)Normalize the volume level all files in a folder to -18LUFS
{Menu> Sources> Folders > Click and hold on the required folder to get normalize option >+EQ Preset> Normalize > select Tick}
(Source file will not be affected , even metat data)
(iv) To remove above normalization
To delink above Neutron assigned Replay Gain through Normalize: {Menu> Sources> Folders > Click and hold on the required folder >click again on +EQ Preset}
Note: Some times icons /menu are relocated, please find them to get navigation options.
-----------------------------
III.1 mp3gain.exe {It is the most compatible with Windows as well as Android apps, it is a defacto standard for Replay Gain, until mp3 normalization standard is formed}
or III.2 Foobar2000 v1.6.16 {compatible with Foobar2000 player v.1.16.16, AIMP v3.30.1250 and VLC player v3.5.4 , Jet Audio HD v11.2.3, both windows / Android , USB Audio player pro trial 6.0.3 (Android) but not v6.1.0.0, Power Amp v3b957 (Android), FIIO Music v3.1.7 (Android) }
or III.3 R128Gain_1.0.11_win64_gui {compatible with AIMP and VLC player both windows / Android, USB Audio player pro trial 6.0.3 (Android) but not v6.1.0.0, Power amp v3b957 (Android)} program on PC (freeware) to write replay gain data at meta data of track (or album) without changing any music data i.e music will be as original. If the player is compatible with this replay gain, data stored at metadata will play the music file with normalized volumes.
----------------------------------
IV.1 Normalization open freeware DAW like Audacity etc.
Procedure to Loudness Normalization by Audacity
1)file>Browse to the required files > Open all required files,
2)Select all files,
3)Effect > Volume & Compression>Loudness Normalization>Perceived Loudness (Digital)>.....LUFS>Apply
4)File > Export >...... (processed file will be outlet folder)
IV.2 PC through VST3 for 5.1
Install VST3 plug-in e.g The Normalizer by FinalLoud by TBPro Audio VST3 manager. They are in advanced audio creation (DAW) etc. It will do permanent changes to music.
-----------------------------------------
In case of real time loudness normalizer, if it is not programmed to know track to track to information or analysis of sufficient length of buffer etc , it may intervene in between / intermittently causing a feeling of unnaturalness or distortion. Same difficult is similar with across system loudness normalizer.
--------------------------------------------
Due to any reason , if you don't want to listen to full length of song, but initial few seconds (like 30 sec or 120 sec or 180 sec or any) , automated preview of various varieties are available at "Automate Community" a forum of Automate by llamalab.

Avoiding Android Mixer/48Khz upsampling of 44.1/16 audio

Is anybody aware of a system-wide solution to avoid the upsampling of 44.1KHz / 16-bit music to 48KHz?
With system-wide, I mean a solution that does not rely on certain player apps such as UAPP or Neutron, which we know can do it, but only when playing from inside that app. A solution which works with all (or most) audio sources and apps, modifying the default system behavior of upsampling 44/16 to 48KHz when playing to the Quad DAC.
Personally, I am looking for solutions to work with Tidal offline tracks. Others are looking for solutions to Qobuz, Spotify, Google Play Music or other apps.
Do some of the custom ROMs have fixes for this? Are there policy file or build.prop changes that are proven to fix it?
Googling and searching on XDA finds many references to Android's infamous 48KHz upsampling/re-sampling (SRC) but none that look to be actual, working solutions for our phones. I hope I am wrong and that there is a simple fix which I overlooked.
Background
The LG V series and G series (most models) are appreciated by audiophiles for their excellent ESS Sabre DAC (ES9218P, branded Quad DAC by LG). It can deliver amazing sound quality when paired with good headphones or IEMs (In-Ear-Monitors, earphones). (And no, that doesn't necessarily mean High-Impedance headphones/IEMs, but that's a whole other discussion.)
V30 in particular has gained a rather large following among audiophiles, many of whom congregate on head-fi.org, where you will find a huge V30 thread, a growing V40 thread and a dedicated V30 Music apps, tricks and tips thread.
When it comes to HiRes music (anything higher than 48KHz sample rate and anything 24-bit) most music apps play it correctly: Bit-perfect, without any processing or re-sampling, directly to the DAC -- exactly as audiophiles want it. A few apps are known to downsample HiRes music to Android's default sample rate of 48KHz, but those are the exception.
However 44.1KHz / 16-bit music is always routed through Android's Mixer, which upsamples it to 48Khz. This causes artifacts that are audible to good ears, particularly when played on sensitive IEMs. Since 44/16 includes anything CD quality (whether compressed or uncompressed) that means most music in the world gets molested before it reaches the DAC.
For whatever reason, LGs implementation of the ESS DAC throughout the V and G series have suffered from this inability to play 44/16 music without upsampling. It is the one thing that truly hampers their reputation among audiophiles (arguably even more so than the inability to select between gain modes, which is annoying, but not a deal breaker for most).
This can be verified by inspecting the Output Thread of audio_flinger dumps, showing whether an output stream is played through the DIRECT path (not the MIXER path) and with the offloadable flag (sent straight to the DAC for decoding and rendering). Of course it can also be verified by listening for those artifacts.
The last 1.5 years, audiophile V30 users have relied on UAPP or Neutron as music players because they are able to work around this upsampling. They do so by converting 44/16 format music to 44/24 on the fly, adding zero bits to convert 16-bit to 24-bit. Different from the 48KHz upsampling, this is a harmless conversion which doesn't affect audio quality. (Of course it's also much faster, requiring no interpolation.) And once music is in 44/24 format, it is no problem sending it directly to the DAC, as described above.
We recently confirmed that PowerAmp also is able to do this correctly now (which wasn't always the case). But only if you configure it to convert all music to 44/24, which obviously isn’t desirable for HiRes.
UAPP is my personal favorite, as it also supports streaming services Tidal, Qobuz and Google Play Music, in addition to network services and any PCM or DSD file you can throw at it. All of it pristinely bit-perfect. But it cannot support Tidal or Qobuz offline, which means when playing offline you are limited to HiRes music (only a small part of their catalog) unless you can tolerate the 48KHz upsampling of CD quality tracks in the Tidal/Qobuz apps.
Head-Fi titan @csglinux and I have set out looking for a solution to this, along with other interested head-fi members. csglinux has been testing various policy and build.prop edits (so far no cigar), while I have been digging through the ESS driver source code from the kernel (but I am not set up to actually build the kernel).
More background and discussion can be found in csglinux' V30 Music apps, tricks and tips thread on head-fi. I also recently had a brief (and more technical) discussion with @ctheanh about this over in the XDA V40 forum, starting here. Arguably those posts would be more suited here.
We have several ideas, but it is a steep hill to climb, as none of us are Android developers. But before posting pages of what we have already tried, or dozens of audio_flinger dumps from various setups, we wanted to throw the topic out there for input. Again, maybe there is already a solution we have overlooked.
Any input is much appreciated!
TL;DR
I personally recommend UAPP as the best $8 anybody can spend if they care about sound quality on their V30. This is not about avoiding that. But UAPP doesn't cover all scenarios, in particular offline Tidal and Qobuz.
That's why we're looking for a system-wide fix (mod or custom ROM) that avoids the upsampling.
Reserved (more technical background and evidence to come)
TheDannemand said:
Is anybody aware of a system-wide solution to avoid the upsampling of 44.1KHz / 16-bit music to 48KHz?
With system-wide, I mean a solution that does not rely on certain player apps such as UAPP or Neutron, which we know can do it. A solution which works with all (or most) audio sources and apps, changing the default behavior of upsampling 44/16 to 48KHz (when playing to the Quad DAC).
Personally, I am looking for solutions to work with Tidal offline tracks. Others are looking for solutions to Qobuz, Spotify, Google Play Music or other apps.
Do some of the custom ROMs have fixes for this? Are there policy file or build.prop changes that are proven to fix it?
Googling and searching on XDA finds many references to Android's infamous 48KHz upsampling/re-sampling (SRC) but none that look to be actual, working solutions for our phones. I hope I am wrong and that there is a simple fix which I overlooked.
Background
The LG V series and G series (most models) are appreciated by audiophiles for their excellent ESS Sabre DAC (ES9218P, branded Quad DAC by LG). It can deliver amazing sound quality when paired with good headphones or IEMs (In-Ear-Monitors, earphones). (And no, that doesn't necessarily mean High-Impedance headphones/IEMs, but that's a whole other discussion.)
V30 in particular has gained a rather large following among audiophiles, many of whom congregate on head-fi.org, where you will find a huge V30 thread, a growing V40 thread and a dedicated V30 Music apps, tricks and tips thread.
When it comes to HiRes music (anything higher than 48KHz sample rate and anything 24-bit) most music apps play it correctly: Bit-perfect, without any processing or re-sampling, directly to the DAC -- exactly as audiophiles want it. A few apps are known to downsample HiRes music to Android's default sample rate of 48KHz, but those are the exception.
However 44.1KHz / 16-bit music is always routed through Android's Mixer, which upsamples it to 48Khz. This causes artifacts that are audible to good ears, particularly when played on sensitive IEMs. Since 44/16 includes anything CD quality (whether compressed or uncompressed) that means most music in the world gets molested before it reaches the DAC.
For whatever reason, LGs implementation of the ESS DAC throughout the V and G series have suffered from this inability to play 44/16 music without upsampling. It is the one thing that truly hampers their reputation among audiophiles (arguably even more so than the inability to select between gain modes, which is annoying, but not a deal breaker for most).
This can be verified by inspecting the Output Thread of audio_flinger dumps, showing whether an output stream is played through the DIRECT path (not the MIXER path) and with the offloadable flag (sent straight to the DAC for decoding and rendering). Of course it can also be verified by listening for those artifacts.
The last 1.5 years, audiophile V30 users have relied on UAPP or Neutron as music players because they are able to work around this upsampling. They do so by converting 44/16 format music to 44/24 on the fly, adding zero bits to convert 16-bit to 24-bit. Different from the 48KHz upsampling, this is a harmless conversion which doesn't affect audio quality. (Of course it's also much faster, requiring no interpolation.) And once music is in 44/24 format, it is no problem sending it directly to the DAC, as described above.
We recently confirmed that PowerAmp also is able to do this correctly now (which wasn't always the case). But only if you configure it to convert all music to 44/24, which obviously isn’t desirable for HiRes.
UAPP is my personal favorite, as it also supports streaming services Tidal, Qobuz and Google Play Music, in addition to network services and any HiRes PCM or DSD file you can throw at it. All of it pristinely bit-perfect. But it cannot support Tidal or Qobuz offline, which means when playing offline you are limited to HiRes music (only a small part of their catalog) unless you can tolerate the 48KHz upsampling of CD quality tracks in the Tidal/Qobuz apps.
Head-Fi titan @csglinux and I have set out looking for a solution to this, along with other interested head-fi members. csglinux has been testing various policy and build.prop edits (so far no cigar), while I have been digging through the ESS driver source code from the kernel (but I am not set up to actually build the kernel).
More background and discussion can be found in csglinux' V30 Music apps, tricks and tips thread on head-fi. I also recently had a brief (and more technical) discussion with @ctheanh about this over in the XDA V40 forum, starting here. Arguably those posts would be more suited here.
We have several ideas, but it is a steep hill to climb, as none of us are Android developers. But before posting pages of what we have already tried, or dozens of audio_flinger dumps from various setups, we wanted to throw the topic out there for input. Again, maybe there is already a solution we have overlooked.
Any input is much appreciated!
Click to expand...
Click to collapse
Erm i suggest bit perfect mode on USB audio player pro
Mrxyzl said:
Erm i suggest bit perfect mode on USB audio player pro
Click to expand...
Click to collapse
Thank you. Again, I already use that, and have for the last 1.5 years. But UAPP doesn't cover all scenarios, in particular offline Tidal and Qobuz, nor Spotify and other popular streaming services.
That's why I'm asking if anybody knows of a system-wide fix (mod or custom ROM) that avoids the upsampling.
I seem to recall that you did some work into this in a custom ROM, right?
Edit: It's a long opening post, so maybe I should state this briefly:
1) This is about a system-wide fix to avoid the Mixer and upsampling of 44/16 audio when playing through the Quad DAC.
2) This is not about avoiding UAPP or Neutron. I personally recommend UAPP as the best $8 anybody can spend if they care about sound quality on the V30.
So my settings sucks?
TheDannemand said:
snip.
Click to expand...
Click to collapse
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
So my settings sucks?
Click to expand...
Click to collapse
Well, yes and no
Personally I wouldn't do it. I would set PowerAmp to output at 44.1KHz and 24-bit, which should avoid any re-sampling and just convert to 24-bit. Make sure you disable Dither (somewhere else in those Settings) so that it just adds zero bits in that 16-to-24-bit conversion. That way your 44/16 music should be sent unchanged to the DAC in 44/24 format.
But then you need to change your settings when you play HiRes music in PowerAmp, since otherwise it will be downsampled to 44.1KHz.
That said, as a fixed setting you are much better off letting PowerAmp upsample to 352Khz than letting the Android Mixer upsample to 48Khz. 44-to-352KHz is a harmonic upsampling (8x44=352) so it can be done perfectly, whereas 44-to-48KHz is just ugly. And when playing HiRes 88KHz and 176KHz music, it will be harmonically upsampled to 352Khz as well.
Ideally, PowerAmp would have had a way to only convert 44/16 to 44/24 and pass everything else through untouched. That's what UAPP does when it detects that it's running on a V30.
Another benefit of UAPP is it understands MQA and knows how to set a flag to enable the V30's hardware unfolding and rendering. (Note that you don't have to buy UAPP's optional MQA decoder for this.) With PowerAmp, the MQA will either be lost (if you re-sample or process the stream in any way) or ignored because the flag to enable MQA decoding won't be set.
Disclaimer: I don't use PowerAmp myself, so I cannot say if it it does something other than what those settings imply. I am completely open to corrections if any of my assumptions about it are wrong.
The DAC itself will upsample internally as part of so-called "noise shaping" to minimize the rounding errors that occur when trying to fit a digital sample into an analog sine wave. But we want to leave this process just to the DAC, and not add another step of upsampling (or any other digital modification) before sending music to the DAC. And particularly not an ugly upsampling like 44-to-48KHz, which simply cannot be done in a pretty way.
TheDannemand said:
snip.
Click to expand...
Click to collapse
Thanks for that detailed answer man, I appreciate it!
I tried neutron, hated the UI. I'll try out USB audio pro. Looks like it's a bit updated to MD. It's not as nice looking as PA, but that's ok lol.
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
Thanks for that detailed answer man, I appreciate it!
I tried neutron, hated the UI. I'll try out USB audio pro. Looks like it's a bit updated to MD. It's not as nice looking as PA, but that's ok lol.
Click to expand...
Click to collapse
I am the same: I tried Neutron and absolutely could not stand that UI. But I know some who love it. And they deserve credit for being first to crack the 48KHz upsampling on V30 (as I understand).
With UAPP I was instantly comfortable with its UI, features, and of course the sound quality -- the latter being as good as it can get, since it plays everything bit perfect and even supports MQA. If it could handle Tidal offline, I wouldn't even need a solution to bypass the Android Mixer, as that is the only big thing missing for me. Again, with others it's Qobuz offline or Spotify or some other music service.
TheDannemand said:
I am the same: I tried Neutron and absolutely could not stand that UI. But I know some who love it. And they deserve credit for being first to crack the 48KHz upsampling on V30 (as I understand).
With UAPP I was instantly comfortable with its UI, features, and of course the sound quality -- the latter being as good as it can get, since it plays everything bit perfect and even supports MQA. If it could handle Tidal offline, I wouldn't even need a solution to bypass the Android Mixer, as that is the only big thing missing for me. Again, with others it's Qobuz offline or Spotify or some other music service.
Click to expand...
Click to collapse
Trying it out, I like it but have a few issues that are getting on my nerves.
1) no cross fade into the new track.
2) It separates my albums for whatever reason. PowerAmp will not do this. My tags are the way I want them. I did my own edits.
Edit, the EM album that's solo is also in the EM album collection. Just chose to list it 2 times.
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
Trying it out, I like it but have a few issues that are getting on my nerves.
1) no cross fade into the new track.
2) It separates my albums for whatever reason. PowerAmp will not do this. My tags are the way I want them. I did my own edits.
Edit, the EM album that's solo is also in the EM album collection. Just chose to list it 2 times.
Click to expand...
Click to collapse
I apologize for the tardy response. Swamped these days.
1) Ahh. I don't use cross fading myself, but I see what you mean, it's a valid request.
2) My entire music collection is carefully curated as well (manually edited tags) and I've never seen any problems with UAPP handling albums correctly. You could try Clearing the database and Scan again. But you probably already did...
I suggest you write to the Dev about both issues. You can either email [email protected] or post in their support thread on Head-Fi. I've found them very response to user requests and issues.
BTW, also check this recent Head-Fi post by @csglinux: It appears LG really screwed up the Quad DAC in Pie, so it now re-samples even some HiRes files (which all play perfectly on Oreo from most apps). It also sabotages UAPP in the process.
I don't know why LG is so hellbent on messing up music playback, when they spend good money putting a high-end audiophile grade DAC in their phones
TheDannemand said:
I apologize for the tardy response. Swamped these days.
1) Ahh. I don't use cross fading myself, but I see what you mean, it's a valid request.
2) My entire music collection is carefully curated as well (manually edited tags) and I've never seen any problems with UAPP handling albums correctly. You could try Clearing the database and Scan again. But you probably already did...
I suggest you write to the Dev about both issues. You can either email [email protected] or post in their support thread on Head-Fi. I've found them very response to user requests and issues.
BTW, also check this recent Head-Fi post by @csglinux: It appears LG really screwed up the Quad DAC in Pie, so it now re-samples even some HiRes files (which all play perfectly on Oreo from most apps). It also sabotages UAPP in the process.
I don't know why LG is so hellbent on messing up music playback, when they spend good money putting a high-end audiophile grade DAC in their phones
Click to expand...
Click to collapse
I did send an email to the Dev. We tested a few things and then I guess he quickly made a newer version of the app and gave me a download link. It's a beta but he seen what the issue was and fixed it. Total time with emails and download link took about 30 minutes. I never expected the guy to reply so fast that a few minutes would go by with me not seeing his new email.
Awesome support! Just wish the UI would be gesture-based. Having to back out of a current playing album is a pain in the butt. PowerAmp definitely did this correctly.
Sent from my LG-H932 using XDA Labs
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
DooMLoRD77 said:
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
Click to expand...
Click to collapse
Huge thanks to you, DoomLoRD77, for your efforts on this. Major props also to TheDanemmand, who has been relentlessly pursuing this little problem with LG's phones.
So, I took your config files, and voila, they work as promised, at least according to audio_flinger:
Output thread 0xeb1034c0, name AudioOut_15, tid 1804, type 0 (MIXER):
I/O handle: 21
Standby: no
Sample rate: 44100 Hz
HAL frame count: 1792
HAL format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)
HAL buffer size: 10752 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)
That's the good news. The bad news... for reasons I don't completely understand, all the exact same re-sampling artifacts are there, just as audible as before. (I think most of us are using the same test track here - Speak to Me, from The Dark Side Of The Moon.) Either audio_flinger is misreporting, or being fooled, or there's something else going on here that I don't understand.
I'd mentioned to some of the other headfi folks that Amazon's new lossless streaming service doesn't display these digital artifacts (it still doesn't sound quite as good as Tidal to my ears, but the SQ gap is much closer). Amazon re-samples everything on Android to 48 kHz using 32-bit float. I would have thought doing no resampling at all and shifting to 24-bit for the digital volume control would be enough, but apparently not. My best guess is those extra zeros we're packing into those remaining 8 bits aren't actually being used by the digital volume control.
DooMLoRD77 said:
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
Click to expand...
Click to collapse
Thanks a ton for your efforts here and for sharing these modified files!
Unfortunately I won't be able to test them myself, both because my V30 is still on Oreo (and I have no plans to update it yet) and because I am currently unrooted, waiting for LG to approve a warranty claim (at which they're dragging their feet).
I think with your work and @csglinux' feedback we have established that there is something going on beyond just the re-sampling of the Mixer. The fact your changes eliminated the noise you were hearing, but NOT the artifacts csglinux has reported, would indicate that maybe we have two different problems going on. And so far only playing DIRECT (bypassing the Mixer) solves both problems.
Re your point (3) I did actually spent quite a bit of time studying the source code for the ESS codec driver for the various LG models (es9218p.c and es9218p.h in the kernel source code). Interestingly, 44100 is NOT one of the sample rates listed in there as being supported. The rates and formats listed below are references in the snd_soc_dai_driver structure towards the end of the driver, with which the codec driver declares its capabilities. I've been puzzled how DIRECT play of 24/44 is even possible given this fact. But audio_flinger claims to do it -- and it sounds great when it does.
Code:
#define ES9218_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 | \
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_384000 ) //|SNDRV_PCM_RATE_352800 TODO for dop128
#define ES9218_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | \
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE | \
SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S32_BE)
I am completely swamped with work at the moment, so I have no time at all to play (neither play music NOR tinker with my phone). I promise I will contribute more actively again once I have more time AND once I have a phone I can root.
Once again thanks a lot for your contribution! :good::good::good:
csglinux said:
*
Click to expand...
Click to collapse
You're welcome. Yes, I played the Speak To Me song at the volume level of 10/75 from about 0:14 to 0:40. It can be possible that it's just misreporting, but it's weird that you hear the same artifacts and I hear just very very little noise instead of big. So we hear 2 different thing separately. From my experience it seems that the extra 8 bits are used for volume control. Or 24bit is more accurate for interpolating as you wrote something on head-fi. I will see more results later with GR09.
Also, thank you for the efforts and for this test!
I can mention an app for 16/44.1 lossless it's called D**zl#ad*r (replace "*" with "e" and "#" with "o"). I know it's not great to get files for free but I can play it offline through direct. It's for Android too and there are some funny facts how it can work.
TheDannemand said:
*
Click to expand...
Click to collapse
You're welcome, too. Something is really weird about the Mixer as there is 2 kind of issue, indeed. I will just probably give up this soon for now, but I'm thankful for the support as I could achieve a small improvement.
If it's really a declaration as you said and I looked a bit into it then it's also weird how it can support 44.1 without resampling.
To replace Tidal offline there is an app above but it requires re-downloading everything. I solved it by automation. Life is just short to be always a good boy:silly:
Looks like deep-buffer is used for high latency low power output and this is ok for music. As I'm new I can't post proper link here, but googling "android audio deep buffer" gives answer.
To enable deep-buffer for music we need:
adb shell setprop audio.deep_buffer.media 1
So it looks like without it android is still using 48kHz from primary output and still resamples internally or I'm missing something. I own V30 but I'm not rooted yet so can't test this.
In the meantime I've looked into policy and there's additional MQA policy available. Maybe UAPP is using it to play MQA on LG?
I've also tried to use 16bit direct output from UAPP and there's noise on all recordings when V30 volume is low and I set my amplifier to almost full. This is unrealistic scenario but easily shows 16bit limitation. @DooMLoRD77, @TheDannemand could you check this UAPP setting if it plays through mixer or directly: MQA enabled and 16 bit hi-res driver audio format. Could tou also check if setting mixer into 32bit float mode works? This setting works for UAPP.
Eneen said:
*
Click to expand...
Click to collapse
You are right that mixer is using 48khz upsampling either through deep buffer or primary output or call it whatever. Deep buffer for music is by default. Where did you found that MQA policy?
I can't help you now as my V30's motherboard is dying and it will take some time to replace it, but I can tell you that modifying the mixer to give 32bit output gives nothing just mute sound and lagging youtube playback maybe because of buffer size or idk.
You can have 32bit with direct, of course. Anyway, what recordings are giving noise? Vinyl? 16 bit does not have limitations like that. I guess you hear the noise generated by AVC in the Quad DAC. It has a high SNR but not enough if you amplify it with don't know what at max volume. I just assume that. I appreciate your interest.
DooMLoRD77 said:
You are right that mixer is using 48khz upsampling either through deep buffer or primary output or call it whatever. Deep buffer for music is by default. Where did you found that MQA policy?
I can't help you now as my V30's motherboard is dying and it will take some time to replace it, but I can tell you that modifying the mixer to give 32bit output gives nothing just mute sound and lagging youtube playback maybe because of buffer size or idk.
You can have 32bit with direct, of course. Anyway, what recordings are giving noise? Vinyl? 16 bit does not have limitations like that. I guess you hear the noise generated by AVC in the Quad DAC. It has a high SNR but not enough if you amplify it with don't know what at max volume. I just assume that. I appreciate your interest.
Click to expand...
Click to collapse
Recordings from Tidal app (except MQAa) and when UAPP is set into 16bit mode inside "HiRes driver audio format" give noise. When I change this option to "Auto" then noise is gone. To hear it I just set sound level to 1/70 (lowest possible) and amplify rest on my amp. I'm not sure it's due to digital volume control or something else, but noise is there and I'm still above my NAD C372 noise level (100dB). How to check output path? I can do it myself but haven't found how...
If music is using deep buffer then your solution is very elegant IHMO and should work. Is youtube also using deep_buffer? Is deep_buffer always used or only when phone is sleeping?
MQA policies are inside /vendor/audio_output_policy.conf: direct_pcm_16_mqa and direct_pcm_24_mqa. As I see /etc/audio_policy.conf is depreciated but looks like /vendor/etc/audio_output_policy.conf is used and there are two different audio_policy_configuration.xml files. Is there documentation for android audio available?
Eneen said:
*
Click to expand...
Click to collapse
I think direct does not support 16bit. It can be DVC or just the not really perfect mixer makes noise or what kind of interpolation error. You should have SDK platform tools to check it. Start inside an adb connection in cmd. Command: "adb shell" or "./adb shell" then "dumpsys media.audio_flinger" and it should read much thing about path and so on.
YouTube uses deep_buffer if it's available. It's used when music is played not only when sleeping. Primary is more like for notifications maybe some games. Sorry, what solution? LoL. 24bit modification?
I will check that policies again, thanks.

Categories

Resources