[ROOT][MOD] Amazing Sound Improvement (DAC Cirrus Logic CS43130) - Samsung Galaxy S8 Themes, Apps, and Mods

Hello All,
prerequisites:-
SuperRoot / Magisk Root
Root explorer like solid, es explorer
This mod actually removes the limitation in built-in amplifier in DAC.
Go to Root->System->Etc->mixer_gains.xml
Go and make changes as shown below
<patch name = "gain-media-headset">
<ctrl name = "HPOUT2L Impedance Volume" value = "123" />
<ctrl name = "HPOUT2L Input 1 Volume" value = "36" />
<ctrl name = "HPOUT2R Input 1 Volume" value = "36" />
Save & Reboot
This Mod actually disable powersaving mode
Go to Root->System->Etc->sapa_feature.xml
Go and make changes as shown below
<support name = "support_powersaving_mode" value = "false" />
Save & Reboot
Finally, Download & Install latest Poweramp Beta (with HD HI-Res output support)
Credit to JaguarSergio

Tried it and from what I can tell it only increases the max volume, not amplifies it. It's even called "gain-media-headset".
HPOUT2L is increased while the right channel is not which means if you want to do this you need to set HPOUT2R to the same volume. The powersaving did nothing at all during my testing and i tried with 1000kbps tracks through poweramp.

Related

[NEW] Increase 700/701 Headphone Volume

Ok folks, as you know, the headphone volume could use a little higher output than we have right now. Especially for those of us "rockers"!
So, this little edit will increase the volume to a more desired level. Thanks to ZeroInfinity for the conversation.
Warning! I'm not responsible if you blast your eardrums out, or damage your headphones/earbuds. You do this at your own risk.
That said, your tab should have the following.
A. Rooted
B. /system write privileges
C. A good file explorer (ES File Explorer for example)
Open your file explorer and go to the following folder: /System/etc
Find the file "nvaudio_conf.xml
Open in the built in editor
Scroll down the file about 70 or so lines and you will see the following section;
Code:
<path>
<!-- playback paths-->
<ctl name="DRC Switch" val="1"/>
<ctl name="HPF Mode" val="Hi-fi"/>
<ctl name="Speaker Volume" val="0x39"/>
<ctl name="Headphone Volume" val="0x30"/>
<!-- capture paths-->
<ctl name="Left Input PGA Volume" val="0x1C"/>
<ctl name="Right Input PGA Volume" val="0x1C"/>
</path>
Gee, what's that???
<ctl name="Headphone Volume" val="0x30"/>
Here's the hard part.
Change that 0x30 to a 0x36
This relates to a value from 48 to a new 54.
Save your file, close your file explorer, and reboot.
Blast your eardrums out! :laugh::laugh::laugh:
You can also do this with the external speakers, but I'd be careful with them. Acer isn't known for using quality speakers
EDIT: Use this chart for a Hexdecimal conversion
Cheers!
(don't forget the Thanks button).
Way cool!!!!!
Awesome, MD!
I think we could the volume of the external speakers as well, like you said, but only for a small percentage.
TomONeill said:
Awesome, MD!
I think we could the volume of the external speakers as well, like you said, but only for a small percentage.
Click to expand...
Click to collapse
You should be able to. Note you will probably have to tweak each ext speaker setting in the file. Seems there are multiple entries depending on app.
I would advise only increasing by 1 step though and see how it behaves. I've seen speakers go bad on the 50x tabs on a normal basis!
Also, if you're running my de-odexed rom, or have de-odexed your STOCK rom, I have a 30 step volume mode that really helps. Stock setting is 15 steps.
Thanks for tuto. I changed speakers to 0x42 and after reboot the audio stopped (only for speakers) so i changed to 0x39 again.
I try with playerpro, basic media, streaming audio.... and nothing audio One fue speakers
chivopsycho said:
Thanks for tuto. I changed speakers to 0x42 and after reboot the audio stopped (only for speakers) so i changed to 0x39 again.
I try with playerpro, basic media, streaming audio.... and nothing audio One fue speakers
Click to expand...
Click to collapse
Probably Acer has a limiter in one of the config files. Will have to take a look.
yeah, up to eleven! \m/

[App] Volume +

https://play.google.com/store/apps/details?id=com.TEST.android.lvh
I found this old app still works great on my D802 QB2 with this (HEADSET) setting:
1. Audio Modifications = Enabled
2. Simple Volume Boost = Disable
3. Bass Boost = 8 (max)
4. Echo/Delay = 0
5. EQ Preset = Bass Boost (or others) just make sure to set "Volume Level" to 0
SPEAKER setting only work with this:
1 - 4 same as headset
5. EQ Preset = Flat & "Volume Level" set to 10
need to enable/disable eq preset till this work
BLUETOOTH setting: untested
Nice, but the phone already kills my ears on full volume! (Headphones)
That app was awesome back in the day. Before Viper4android

Galaxy S7 (and S7 Edge) easy headphone volume hack *root* Tested on SM-G935F Exonys

For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below (note, I have changed these values from the original post as these work better)
<ctl name="HPOUT1L Impedance Volume" value="110" />
<ctl name="HPOUT1R Impedance Volume" value="110" />
<ctl name="HPOUT1L Input 1 Volume" value="95" />
<ctl name="HPOUT1R Input 1 Volume" value="95" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
works great with poweramp, thanks for the this!!
Sent from my SM-G930F using Tapatalk
hey keith
kradcliffe said:
For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
Click to expand...
Click to collapse
Hey keith thanks brother. I will giv that a shot in the am.. i do really appreciate it homeboy. I'lllet you know how it sounds. specially if I screwed up. lol thanks
Thats look great
Do u have same method for bluetooth headset sound increase volume ?
abunhyan said:
Thats look great
Do u have same method for bluetooth headset sound increase volume ?
Click to expand...
Click to collapse
I haven't any BT devices so I haven't had a look. You could try increasing these values and see what happens.
<path name="gain-media-bt-sco-headset">
<ctl name="AIF3TX1 Input 1 Volume" value="32" />
<ctl name="AIF3TX2 Input 1 Volume" value="32" />
</path>
<path name="gain-media-speaker-bt-sco-headset">
<ctl name="AIF4TX1 Input 1 Volume" value="32" />
<ctl name="AIF4TX2 Input 1 Volume" value="32" />
<ctl name="AIF3TX1 Input 1 Volume" value="32" />
<ctl name="AIF3TX2 Input 1 Volume" value="32" />
</path>
kradcliffe said:
For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
Click to expand...
Click to collapse
Hi. Thanks for this I been looking everywhere
Good job :good::good::good:. I'm really happy, thank you.
Nice
Works perfectly thank you so much!
Is there a difference between this and Sound MOD by ZuBi182?
Deadeye* said:
Is there a difference between this and Sound MOD by ZuBi182?
Click to expand...
Click to collapse
This is purely for the headphone volume. The other one changes many other settings as well and you have to push it with TWRP. This can be done with root only.
The XML files from ZuBi's thread can be extacted and copied in the same way. No need for TWRP.
Be careful with that. I tried exactly the same thing. Device wouldn't boot and was stuck on Samsung logo.
Had to flash the unmodified files with TWRP to get the device back.
kradcliffe said:
Be careful with that. I tried exactly the same thing. Device wouldn't boot and was stuck on Samsung logo.
Had to flash the unmodified files with TWRP to get the device back.
Click to expand...
Click to collapse
When you extract the files and copy is necessary to change the permissions or you have this problem.
Do you edit the files in the phone or on the computer? Which program are you using to edit the XML files directly in the phone?
As stated above, I used Solid Explorer text editor on the phone, although any text editor will work. You can also copy the file to your PC, modify there then put back to the phone.
Just make sure the permissions are the same for the returned file or the device won't boot. They should be -rw-r-r
Keith
thanks
Work greet thanks!
kradcliffe said:
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
Click to expand...
Click to collapse
Great info. However I'd like to add a bit of further information:
1) For easy reference, the default values on my phone are 105,105,32,32.
2) The second pair of numbers ("Input 1 Volume") appear to be the digital volume control, i.e. sets the output level of the DAC. It accepts values up to 95. Any value above 95 is ignored and treated as 1. The settings appear to be linear (i.e. 64 is twice as loud as 32).
3) The first pair of numbers ("Impedance Volume") appear to be the analogue gain control, i.e. sets the analogue amplification applied after the DAC output. The values are highly non-linear (115 is more than twice as loud as 105).
4) Adjusting the digital control (Input 1 volume) does not cause any appreciable change in distortion or noise and I would recommend increasing this to maximum (95)
5) Adjusting the analogue control (Impedance volume) drastically increases noise, background hiss, and distortion. Even increasing this a tiny bit (e.g. from 105 to 108) causes there to be a constantly audible background hiss. I would recommend against changing this at all if it can be avoided, unless you have particularly insensitive cans.
Personally, mine's set to 105,105,95,95. That's just below the level needed to max out the DAC and the analogue amp, without the huge increase in noise you get from the 120 setting in the OP.
Wish I knew how to do it
it works well on my phone no problem I edit everything correctly
---------- Post added at 01:47 PM ---------- Previous post was at 01:16 PM ----------
ime95mos said:
Do you edit the files in the phone or on the computer? Which program are you using to edit the XML files directly in the phone?
Click to expand...
Click to collapse
on the phone use Soild Explorer and set 95,95,80,80 that works for me great great
So what are the values to enable dual speakers?

Thoughts - Force High Impedance Mode without external cables

It seems not everyone is aware of the "High Impedance" mode for the DAC.
It's the best mode and the audio quality seems to be the best.
You can only trigger it with connecting high impedance headphones,
Or, like many here do, hassle your way with cables to trick it into this mode
(For example - i use extension cable+audio technica anc33is = triggers "High Impedance" mode).
Personally i think it is absurd to go through all those tricks just to get good audio quality.
I guess it exist to prevent headphone damage / battery),
But really, i'd like to get the full power from the audio chip, because that's what i bought, without traveling with tons of cables.
Now for the actual stuff:
Any ideas how to remove the software limit and force it into "high impedance" always?
Perhaps some *.prop file, or..? How would you approach this.
In fact @HocqpepaTy has provided a method to triggers "High Impedance" mode without external cables in the DAC-Fix thread.
1. You need root on your phone
2. Using a root explorer, mount R/W and navigate to system/etc
3. Go to /system/etc/mixer-paths.xml (remember to backup it first)
4. Find this part of code, change the value of "headphones-hifi-dac" from "31" to "13" to make normal mode same as AUX mode, also, "0" for High Impedance Mode
Code:
<path name="headphones-hifi-dac">
<ctl name="Es9018 Master Volume" value="31" />
</path>
<path name="headphones-hifi-dac-advanced">
<ctl name="Es9018 Master Volume" value="0" />
</path>
<path name="headphones-hifi-dac-aux">
<ctl name="Es9018 Master Volume" value="13" />
</path>
5. Change permissions of mixer-paths.xml to 0644. (rw-r-r)
6. Reboot.
PS: After reboot, it will not change the text, still showing "normal audio device", but the changes in sound is noticeable.
ivangundampc said:
In fact @HocqpepaTy has provided a method to triggers "High Impedance" mode without external cables in the DAC-Fix thread.
1. You need root on your phone
2. Using a root explorer, mount R/W and navigate to system/etc
3. Go to /system/etc/mixer-paths.xml (remember to backup it first)
4. Find this part of code, change the value of "headphones-hifi-dac" from "31" to "13" to make normal mode same as AUX mode, also, "0" for High Impedance Mode
Code:
<path name="headphones-hifi-dac">
<ctl name="Es9018 Master Volume" value="31" />
</path>
<path name="headphones-hifi-dac-advanced">
<ctl name="Es9018 Master Volume" value="0" />
</path>
<path name="headphones-hifi-dac-aux">
<ctl name="Es9018 Master Volume" value="13" />
</path>
5. Change permissions of mixer-paths.xml to 0644. (rw-r-r)
6. Reboot.
PS: After reboot, it will not change the text, still showing "normal audio device", but the changes in sound is noticeable.
Click to expand...
Click to collapse
Thanks, I did this and sound got louder and clearer, I tested with Chopin piano sonata :good:
melorib said:
Thanks, I did this and sound got louder and clearer, I tested with Chopin piano sonata :good:
Click to expand...
Click to collapse
Found a way to change analog gain value without having to mess around with editing Mixer_paths.xml and what not.
Assuming you're rooted download ALSAMixer from Google Play install ALSA from in the app and make sure you select alsa_amixer controls as your Mode in settings in the ALSAMixer App.
After that search for Es9018 Master Volume and change the value to anything from 0 to 80. 0 being max volume like High Impedance mode is set to.
This isn't permanent and will reset on restart but it's nice to be able to change analog volume on the fly.
Thanks to ivangundampc for this trick.
Thanks also to KosanRio for the alsamixer tweak. I'm curious if the end result is the same (with a '0' value in alsamixer or in /system/etc/mixer-paths.xml)...
oleg77 said:
Thanks to ivangundampc for this trick.
Thanks also to KosanRio for the alsamixer tweak. I'm curious if the end result is the same (with a '0' value in alsamixer or in /system/etc/mixer-paths.xml)...
Click to expand...
Click to collapse
It is I believe, plugging in Aux/High-impedance headphones/normal headphones will all give you the exact same value in AlsaMixer as it does in Mixer_paths.xml
finally a superb sound out of the box
:good:
I'm relieved not to have to use an adapter cable with the V10 anymore !
Edit, nevermind.
melorib said:
Thanks, I did this and sound got louder and clearer, I tested with Chopin piano sonata :good:
Click to expand...
Click to collapse
I ran into this blog struggling with trying to get more gain out of my V10. I'm on MM and rooted. I currently do not hear the quick silence switching between HiFi ESS DAC and back to the SoC DAC. I previously had a V10 that was on LP and I could hear the serious difference. The only output I can get out of my phone is the SoC.
In regards to this mixer paths edit, does the lower number (in this case 13) change the audio gain to output more voltage? Also, you state "0" for high impedence mode. Am I supposed to change the 0 to 13 as well?
I really wish I could understand this more. I have V4A installed and running without issues - which I did in the past on LP. Now I'm just baffled I can't figure out what's going on.
Thanks in advance!
joesee said:
I ran into this blog struggling with trying to get more gain out of my V10. I'm on MM and rooted. I currently do not hear the quick silence switching between HiFi ESS DAC and back to the SoC DAC. I previously had a V10 that was on LP and I could hear the serious difference. The only output I can get out of my phone is the SoC.
In regards to this mixer paths edit, does the lower number (in this case 13) change the audio gain to output more voltage? Also, you state "0" for high impedence mode. Am I supposed to change the 0 to 13 as well?
I really wish I could understand this more. I have V4A installed and running without issues - which I did in the past on LP. Now I'm just baffled I can't figure out what's going on.
Thanks in advance!
Click to expand...
Click to collapse
Someone correct me if I'm wrong but I think 0 is for high gain mode. 13 is for Aux mode.
If you don't want to mess with xml you can download the alsa app and play with that a bit.
Head over to head-fi.org there are more forum posts on getting best sound out of the V10.
Sent from my LG-H901 using Tapatalk
gustav30 said:
Someone correct me if I'm wrong but I think 0 is for high gain mode. 13 is for Aux mode.
If you don't want to mess with xml you can download the alsa app and play with that a bit.
Head over to head-fi.org there are more forum posts on getting best sound out of the V10.
Sent from my LG-H901 using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply! I tried out the Alsa app, but when I select the controls (not scontrols) nothing appears in the list. Not sure what I'm doing wrong? I granted it root access. The error I get is: "error: only position independent executables (PIE) are supported."
I think there's something wrong with the ROM in general. This is complete stock with only root. Previously I could tell when the DAC was enabled by a short period of silence, and the volume would then be reduced. Also, when the volume was at 0 it was at the far left and would go all the way to the right as "max", and when it's on it would start at 0 at the far left, then only go to 75 (which is the DAC's max volume setting).
The confusion here is I can't get any difference in sound no matter what I do. Even if I trick the DAC into aux mode, nothing changes. Trying to adjust the balance in the HiFi settings page does nothing.
When I had LP installed, it worked PERFECT. I used the DAC only on flac files when I was home sitting in my chair, and would leave the DAC off for mp3's and Spotify while traveling because the volume would go higher to overcome the aircraft noise.
joesee said:
Thanks for the reply! I tried out the Alsa app, but when I select the controls (not scontrols) nothing appears in the list. Not sure what I'm doing wrong? I granted it root access. The error I get is: "error: only position independent executables (PIE) are supported."
I think there's something wrong with the ROM in general. This is complete stock with only root. Previously I could tell when the DAC was enabled by a short period of silence, and the volume would then be reduced. Also, when the volume was at 0 it was at the far left and would go all the way to the right as "max", and when it's on it would start at 0 at the far left, then only go to 75 (which is the DAC's max volume setting).
The confusion here is I can't get any difference in sound no matter what I do. Even if I trick the DAC into aux mode, nothing changes. Trying to adjust the balance in the HiFi settings page does nothing.
When I had LP installed, it worked PERFECT. I used the DAC only on flac files when I was home sitting in my chair, and would leave the DAC off for mp3's and Spotify while traveling because the volume would go higher to overcome the aircraft noise.
Click to expand...
Click to collapse
Yeah does seem rom related with the error from alsa and nothing happening. Like its not getting enabled. Since your rooted, can you make a twrp backup, then do a factory reset and see if that does anything.
You could also try flashing the two roms available for the device. I'm like you, stock rooted. But I'd probably make a backup and try Andy's rom just to see if it's software related.
Sent from my LG-H901 using Tapatalk
Thanks for all this. Worked like a charm. No more bs with extension wires. I swear it sounds even louder and cleaner with just the headphones plugged in without the extension cable.
Just curious. Has anyone tried any other value, like 12 or 14. Why 13?
Hi,
My V10 not recognized the high impedence ear Phone.
The only way is modify The values on System file?
Best regards

[MOD][FIX][July/09/2016] OnePlus 3 Audio Mods

** Added Mono + Disable Camera NS
What is this?
This post is a collection of all the audio related mods I have created from the OnePlus 3. The mods so far are: Mono surround sound, Camcorder Mic Gain, Cam Mic Gain plus Mono Surround sound, and various Camera recording tests. The cam disable NS is the latest for fixing the noise suppression on video recordings. If you have a request, then make it here and I'll try to make it if I can.
Various Mod Explanations
What is it?***Mono Surround***
This mod will activate you front earpiece speaker in conjunction with the bottom main speaker any time Speaker mode is used for example playing music, watching movies, shows, you tube and so on, creating an almost surround sound type of effect. This will not effect notifications because that is a different setting that I don't really care about.
Mono Surround Sound
This version plays all audio through one channel. This basically means that you now have 2 mono speakers. Fair Warning, I find the sound very underwhelming. WARNING: MESSING WITH YOUR EQ WILL ALSO EFFECT THE EARPIECE. IT COULD POTENTIALLY BLOW IT OUT IF YOU INCREASE THE VOLUME OR BASS TOO MUCH
Camcorder Mic Gain
This version increases the microphone gain for the audio recorded through the camcorder only. I did this as a workaround for the way too aggressive noise cancellation that happens. This won't fix the problem but hopefully make it more bearable. If I find a better way to fix this, I will update this mod.
Camcorder Mic Fix Test 1
This version uses a different stereo microphone path to record audio for the camcorder. This is a test and I don't know if it's better than stock or not. Please test and use the poll so I can see if its working or not
Camcorder Disable NS v4
V1: This version attempts to disable the noise suppression for the camcorder in the audio_platform_info.xml.
V2: It also increases the mic gain by 12db for the camcorder only on CM
V3: switches to stereo recording for CM
V4: Increases gain for OOS by 12 db
Prerequisites and installation instructions
MUST be rooted
MUST be on CM (OOS is untested)
MUST have TWRP installed
Flash one of the zips below
reboot
This mod modifies the mixer_path_tasha.xml in the /system/etc folder. I have only tested this on CM13. I don't guarantee it will work for your rom, because this is based off Blisspop rom. Although the worst that'll happen is you'll lose sound and mic. If you do lose sound, flash the revert zip to restore your original file. In a worst case scenario where you messed up the permissions and are in a bootloop, dirty flash your rom.
DIY
Background:
OnePlus is using deep buffering for their audio processing to conserve battery life. If you want to disable deep buffering, go to your build.prop and edit this line to false
Note: Changing this will change the sound mapping in the mixer_paths_tasha
Code:
audio.deep_buffer.media=true
audio_platform_info.xml
Speaker is referenced as "quat_i2s" with the interface "SLIMBUS_0_RX"
mixer_paths_tasha.xml
Audio playback for music
Code:
<path name="deep-buffer-playback quat_i2s">
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
</path>
Audio playback for notifications
Code:
<path name="low-latency-playback quat_i2s">
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia5" value="1" />
</path>
Note: If deep buffering is enabled, all sound will go through the low latency playback path.
Mono Surround Sound
Code:
<path name="deep-buffer-playback quat_i2s">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia1" value="1" />
<ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="EAR PA Gain" value="G_8_DB" />
<ctl name="RX0 Digital Volume" value="95" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
</path>
To change the volume of the earpiece for audio playback, change RX0 Digital Volume to a value from 1 to 128. Anything above 95 might be dangerous
To disable the speaker and only use the earpiece for audio playback, delete the line <ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
Earpiece Volume
Code:
<path name="handset">
<ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="EAR PA Gain" value="G_6_DB" />
</path>
To modify the earpiece volume for anything that uses the earpiece for output add the line inside the path and modify the volume to your liking from 1 to 128
Code:
<ctl name="RX0 Digital Volume" value="95" />
to this path
Earpiece Mic
Code:
<path name="handset-mic">
<path name="adc4" />
</path>
Add the following line inside the path and change the value to your liking from 1 to 124 where 84 is the default. Each increase by 1 corresponds to 1db of gain.
Code:
<ctl name="DEC4 Volume" value="84" />
Headphones Volume
This might be the headphones path that is being used but I haven't tested it.
Code:
<path name="headphones">
<ctl name="SLIM RX5 MUX" value="AIF4_PB" />
<ctl name="SLIM RX6 MUX" value="AIF4_PB" />
<ctl name="SLIM_6_RX Channels" value="Two" />
<!-- #ifdef VENDOR_EDIT-->
<!-- [email protected],2016/4/7,use 24bits to get rid of 16bits innate noise -->
<ctl name="SLIM_0_RX Format" value="S24_LE" />
<!-- #endif VENDOR_EDIT-->
<ctl name="RX INT1_2 MUX" value="RX5" />
<ctl name="RX INT2_2 MUX" value="RX6" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
<!-- #ifdef VENDOR_EDIT -->
<!-- /*[email protected] , 2016/02/19, add for hw require*/ -->
<ctl name="HPHL Volume" value="19" />
<ctl name="HPHR Volume" value="19" />
<!-- #endif -->
</path>
Feel free to play around with the volume values
Adjusting Camera Mic Volume
This is only if you have flashed the disable NS Camera Fix
Code:
<path name="speaker-stereo-dmic-ef">
<path name="speaker-dmic-endfire" />
<!-- #ifdef VENDOR_EDIT -->
<!-- /*[email protected] , 2016/04/19, mic power high level mode and add adc volume*/ -->
<ctl name="ADC4 Volume" value="11" />
<ctl name="ADC5 Volume" value="11" />
<ctl name="AMIC_3_4 PWR MODE" value="HIGH_PERF" />
<ctl name="AMIC_5_6 PWR MODE" value="HIGH_PERF" />
<ctl name="DEC4 Volume" value="96" />
<ctl name="DEC5 Volume" value="96" />
<!-- #endif -->
</path>
DEC4 and DEC5 correspond to different channels. If you want to increase the gain equally, adjust DEC4 and DEC5 volume to whatever you like. 84 is the default value which means 0db gain. Each increment by 1 indicates a 1db gain for the corresponding channel. DEC volume ranges from 1 to 124.
Credits
All credits go to @chdloc for disabling the noise suppression and @mhoppi for testing
Flashable Zips are below
@abhi08638 I request your help to find out the handset mic values and handset speaker values (not earpiece), as I couldn't find them similar to many others mixer_paths.XML files which I have been modifying for several of my Android devices like OPO, OPT, Mi3 etc. Basically I want to increase the speaker and mic volumes of the phone. Can you just point me in the right direction? Already checked the mixer_path_tasha.xml but couldn't find anything! TIA.
@abhi08638 well nice to see you on op3 development
I will test ur mods on OOS and report u asap.
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Can u make Dolby atmos mod for op3
HatRiGt said:
Can u make Dolby atmos mod for op3
Click to expand...
Click to collapse
did you try the latest test zip from dolby atmos thread in android software development forum?
I can confirm that mono mod is working perfectly on my OP3 with Viper and extremebeats...!!
Thanks a lot for this mod..!!
Joyo-rocker said:
I can confirm that mono mod is working perfectly on my OP3 with Viper and extremebeats...!!
Thanks a lot for this mod..!!
Click to expand...
Click to collapse
which viper package did you use? i tried to install but i causes my OP3 won't boot up
The zips work fine on oxygen os. Thanks abhi!
Works great wit op3lite rom 3.1.3...awsome effort bro..thnks..?
lowest speaker volume too loud
kristofpetho said:
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Click to expand...
Click to collapse
I would appreciate more choices in lower speaker volumes as well. The lowest speaker volume is too loud for 90% of the environments/situations I operate in. thanks for considering it,
mweis said:
which viper package did you use? i tried to install but i causes my OP3 won't boot up
Click to expand...
Click to collapse
Just flash the zip from xtrememusic audio mod.
Google it or search on XDA.
The viper package comes along it...!
http://forum.xda-developers.com/android/software/mod-beatsaudio-e-xloud-installer-t3029951
There's the link..!
srvoleti said:
@abhi08638 I request your help to find out the handset mic values and handset speaker values (not earpiece), as I couldn't find them similar to many others mixer_paths.XML files which I have been modifying for several of my Android devices like OPO, OPT, Mi3 etc. Basically I want to increase the speaker and mic volumes of the phone. Can you just point me in the right direction? Already checked the mixer_path_tasha.xml but couldn't find anything! TIA.
Click to expand...
Click to collapse
This mixer paths is very odd, I don't know how to change the speaker volume since there is only an enable/disable option for speaker sounds. Ex: there's a different value for speaker notifications than audio playback because onePlus is using deep buffering to increase battery life. I'll look more into it and update the OP detailing the values and what they correspond to later today.
As for the handset, the handset is defined as the earpiece and there is conflict with the handset and speaker paths since they both use slimbus 0 for the path. The mic values are always tx values since they stand for transmit. The handset uses adc4 and if you want to control the mic gain you would have to do something like adc4 volume=20 inside the path of the handset mic or the mix part itself. I usually only make new paths and replace the old ones with the new paths just so I have a reference point.
kristofpetho said:
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Click to expand...
Click to collapse
HorstDCC said:
I would appreciate more choices in lower speaker volumes as well. The lowest speaker volume is too loud for 90% of the environments/situations I operate in. thanks for considering it,
Click to expand...
Click to collapse
Sorry guys but I don't know how yet, I'll keep trying though. The only thing I would be able to do at this point is to route all audio to the earpiece since its Max volume is lower and configurable.
On a side note I tried getting stereo sound to work but this is extremely difficult since it is not a normal mixer file. I'll keep trying it have no guarantees
Many thanks for your explanation @abhi08638.
abhi08638 said:
Sorry guys but I don't know how yet, I'll keep trying though. The only thing I would be able to do at this point is to route all audio to the earpiece since its Max volume is lower and configurable.
Click to expand...
Click to collapse
So turning down the earpiece volume is possible? How can i do that? Its to loud for me on the lowest level in stock.
bencozzy said:
Looks like the are using multiple mixed paths to control audio outputs have you tried changed volume in mixer path i2s?
Click to expand...
Click to collapse
I don't know if that would work since I don't even have that file on CM. I only have mixer_paths_tasha.xml, if you post it ill try seeing if I can get CM to load it and see if that works
Kreet said:
So turning down the earpiece volume is possible? How can i do that? Its to loud for me on the lowest level in stock.
Click to expand...
Click to collapse
I'll be posting a diy guide this week, Max 3 to 4 days because I'm very busy atm
abhi08638 said:
Camcorder Mic Gain
This version increases the microphone gain for the audio recorded through the camcorder only. I did this as a workaround for the way too aggressive noise cancellation that happens. This won't fix the problem but hopefully make it more bearable. If I find a better way to fix this, I will update this mod.
Click to expand...
Click to collapse
I have not been able to locate a sample of the camcorder audio produced by the Oneplus 3, but it sounds like it suffers from the same problem as the Nexus 5, for which I've come up with an effective workaround. I'm guessing the same can be done for the Oneplus 3.
As a first step, I suggest you try this.
Edit: Depending on what software you are running you may need to play around with another device, i.e. SND_DEVICE_IN_SPEAKER_STEREO_DMIC (produces a stereo recording), instead of SND_DEVICE_IN_CAMCORDER_MIC (produces a mono recording) and assign different numbers to acdb_id. Note that I found the acdb_id for the Nexus 5 by looking at the audio HAL sources (hardware/qcom/audio/hal/msm8974/platform.c, see here for the Oneplus 3) and trial-and-error.
chdloc said:
I have not been able to locate a sample of the camcorder audio produced by the Oneplus 3, but it sounds like it suffers from the same problem as the Nexus 5, for which I've come up with an effective workaround. I'm guessing the same can be done for the Oneplus 3.
As a first step, I suggest you try this.
Click to expand...
Click to collapse
Thanks ill be sure to look into this
abhi08638 said:
I don't know if that would work since I don't even have that file on CM. I only have mixer_paths_tasha.xml, if you post it ill try seeing if I can get CM to load it and see if that works
I'll be posting a diy guide this week, Max 3 to 4 days because I'm very busy atm
Click to expand...
Click to collapse
That would be great, thank you.
DeeZZ_NuuZZ said:
did you try the latest test zip from dolby atmos thread in android software development forum?
Click to expand...
Click to collapse
I just flashed the latest Dolby Atmos I released, but it isnt working. Also i found the deep buffer zip puts us in a boot loop.

Categories

Resources