Fix for low microphone volume in kitkat - Sony Xperia M2

So guys after a lot of research and playing around I have discovered a fix for the low microphone volume that we have since the kitkat update. Apparently it has to do with the way the audio config was changed between JB and KK.
The offending file is mixer_paths_VY55.xml in the /system/etc/ directory.
I changed the lines
Code:
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
to
Code:
<ctl name="DEC1 Volume" value="99" />
<ctl name="DEC2 Volume" value="99" />
I think this variable might have something to do with audio decoding (pretty sure I'm wrong and subject to correction).
Anyway, I have edited all the mixer_paths files to include this change and put them in a zip.
INSTALLATION:
You will need to be rooted (http://forum.xda-developers.com/xperia-m2/general/guide-root-kitkat-d2303-d2302-unlocked-t2898954)
Install a root explorer app
Delete the four mixer_paths files in /system/etc/
And you will need to copy the files in the zip to this location
Set their permissions to rw-r--r--
Reboot your device and enjoy your boosted mic!
To other people out there with other phones trying to fix their low kitkat mic volumes, try looking for a value in mixer_paths.xml related to the microphone that has a value of 84, and change it to 99
PS: PLEASE AVOID using the built in sony notes app to record or playback audio, it is buggy, does not work properly, and to get your audio to work normally you need to close the app.

What about Lollipop?
Do you know if this fix works in Lollipop?
I've just bougth this cellphone and it came with lollipop already. What can I do to fix it? Thanks

Guys just tried on M2 Aqua Lollipop 5.1.1 18.6.A0.182
There are only 3 archives: mixer_paths, mixer_paths_VY55 e mixer_paths_VY58. Changed the numbers and now the volum is so much better
Very happy, thank you

works fine 10x

Any solution for Ice Cream Sandwich, i have same problem but these files are absent in my device

Excellent work ismithx - just cured my "mic-dead" Xperia M2 !! - Now working better than ever !!

that works well for Lollipop
Thanks a lot! :good:

Really need help - just tried to use this on my Sony M2 but quickly found that I can't make calls - as soon as the receiver picks up my phone restarts?! I tried to change the value back to 84 since low volume is better than no volume but it keeps saying "Failed saving mixer_paths_VY55.xml"!! I also tried to reset my phone but it's still there, no idea what to do please help!

Tested on msm8909 lollipop [WORKING]
tquin said:
Do you know if this fix works in Lollipop?
I've just bougth this cellphone and it came with lollipop already. What can I do to fix it? Thanks
Click to expand...
Click to collapse
I required this solution because the device I tested always has a low mic volume on Viber. It works fine with WhatsApp and normal calls though. And this device is having a qualcomm msm8909 chipset. it is not an Xperia M2.
In my case I had these 7 files inside /system/etc
mixer_paths.xml
mixer_paths_msm8909_pm8916.xml
mixer_paths_qrd_skuh.xml
mixer_paths_qrd_skui.xml
mixer_paths_skua.xml
mixer_paths_skuc.xml
mixer_paths_skue.xml
I tested one by one because there was not mixer_paths_VY55.xml in my device as ismithx said.
Finally I succeeded with mixer_paths_skue.xml

Related

Microphone sounds very strange - wrong mic being used?

Hi there,
Whenever I record a message on WhatsApp (e.g. audio message to record a song) or when I simply record a video (doesn't matter where), the sound is very... strange. It's just not clear and the volume changes every time etc. I was thinking that the phone is using the wrong microphone to record the audio (the phone has two mics). Looks to me as if it's using the noise cancellation mic instead of the normal one.
Does anyone face this problem as well and does anyone have any idea on how to change this (possibly how to disable the noise cancellation mic)?
Thanks for reading
Hi, Are you using the stock rom ?
AzizKhb said:
Hi, Are you using the stock rom ?
Click to expand...
Click to collapse
Sorry forgot to mention, yes I am using the stock rom. Didn't do any modifications or whatsoever.
Hi and sorry for the late reply, i'm having the same problem with viber, it can access only one mic whatever the position of the phone, i think it's a system bugs, and alcatel must correct them with more OTA updates.
If you think the problem is not a system bug and it's happening only to you you can use the mobile upgrade software from alcatel and flash you phone with the last firmware, because sometimes OTA updates can do weird things to you phone.
It is a software problem. I did a little playing around with the "mixer_paths.xml" and it got better. Unfortunately, I have not yet found the right values.
jegi0605 said:
It is a software problem. I did a little playing around with the "mixer_paths.xml" and it got better. Unfortunately, I have not yet found the right values.
Click to expand...
Click to collapse
I suppose root is required for that? If yes, I'll root and try what you did. Every improvement is better than the current state..
Could you tell what did you change exactly?
Hi ,
Yes you need root for edit "mixer_paths.xml"
Line 686 - 690
OLD
Code (Text):
<path name="speaker-mic">
<path name="adc3" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="speaker-mic">
<path name="adc3" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
Line 702 - 706
OLD
Code (Text):
<path name="handset-mic">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="handset-mic">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
Line 708 - 712
OLD
Code (Text):
<path name="handset-mic-second">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="handset-mic-second">[/B]
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
I'm interested in buying the Idol 3 4.7" but have been put off by the poor audio recording quality; I tried it for myself in a shop and video clips had weird-sounding audio. To me it sounded as if noise cancellation has been enabled, meaning that it attempts to eliminate all background sounds in preference to loud speech (normally a person's voice would be very close to one of the microphones when making or receiving a phone call), but in other circumstances it would get confused because any voices (if present) would often not be much louder than other sounds.
Some phones have an option to disable noise cancelling (perhaps under "Call settings"?), though of course you would have to re-enable this feature if you wish to make/receive calls in noisy environments. I had a quick look in the Idol 3's settings (stock ROM obviously) and couldn't find anything that obviously related to noise cancellation. Reducing microphone levels might help as previously suggested since it's then less likely to detect 'background' sounds (and compensate accordingly) but that still won't eliminate the effect altogether.
If not in the settings, perhaps there's some other method of disabling noise cancellation? Would a custom ROM have this feature?
I'm also having sound quality issues, with awesome player there is audio microcuts and recording quality is a mess. However, with nu player microcuts are solved but not poor audio quality when recording. Even though i updated from 010 06 to 010 07 it persists, performing a clean upgrade (not through OTA).
People are reporting the same in reddit https://m.reddit.com/r/idol3/comments/3im55s/is_alcatel_going_to_fix_the_idol_3s_horrible/
Any new info on this? Was thinking of buying this phone. Did anyone test with CM?
microphone got only problems with recording when the subject is too far away. no problems during the call. i think this is hardware problem because we got much updates and no result
and is only one defect from this phone.
I find all of these statements kinda odd because I haven't had any issues with stock rom at all with recording, but on custom roms I had issues with apps other then actual camera apps, facebook messenger being an example, it sounded like it was under water. I assumed it was using the mics wrong, but going back to stock I haven't had any problems at all again.
Did anyone try turning off the JBL audio effects out of curiosity? Im not sure if that could actually effect the mics but you never know.
Sent from my 6045I using XDA-Developers mobile app
tbkrazeey said:
I find all of these statements kinda odd because I haven't had any issues with stock rom at all with recording, but on custom roms I had issues with apps other then actual camera apps, facebook messenger being an example, it sounded like it was under water. I assumed it was using the mics wrong, but going back to stock I haven't had any problems at all again.
Did anyone try turning off the JBL audio effects out of curiosity? Im not sure if that could actually effect the mics but you never know.
Sent from my 6045I using XDA-Developers mobile app
Click to expand...
Click to collapse
In 010 08 firmware version, still facing this problem while recording audio. Tried to disable JBL audio without success.
Any new info about fixing this issue ?
If I use built in microphones it sounds dreadful. However, using jbl earphones the sound recorded is very good (clear and with no cuts).
So, my point is that is a hardware problem or maybe noise cancelling or a mix of both. At least i figured how to "solve" the problem but is unpleasant wearing all the time the earphones.

[MOD][ROOT][G930F]Speaker volume boost

Hello
I give you speaker volume boost for the Galaxy S7, Exynos variants. check under system/etc and mixer_paths.xml with a root explorer.
these are the stock values, I think 30-31 is good, but you can try higher values and see what you think.
<ctl name="DSP5L Input 1 Volume" value="26" />
<ctl name="DSP5L Input 2 Volume" value="26" />
I think I found the values, if anyone else could try and verify it would be good, but I noticed louder sound
<ctl name="DSP5L Input 1 Volume" value="26" />
<ctl name="DSP5L Input 2 Volume" value="26" />
thats the stock values, you could try 30-31.
Tapatalked from GALAXY S7
For a headphone volume hack (not speaker) see here: http://forum.xda-developers.com/galaxy-s7/themes/galaxy-s7-s7-edge-easy-headphone-volume-t3337937
33 its good
thanks
hey thank you for the for that. only im not up to the levels of you guys. I'm just a low level scrub. but i do appreciate it. thanks for the time. dont get that a lot or see it that much now days. well on here " XDA" i do. love this place. thanks to you and everyoneelsehere!
Rooting my Galaxy s7
Hello,
I do not know the first thing about rooting my phone. Can you please explain step by step?
dcova15 said:
Hello,
I do not know the first thing about rooting my phone. Can you please explain step by step?
Click to expand...
Click to collapse
Here's the STEP BY STEP instructions, this is, if you have an Exynos version of the S7 (930F for example)...
http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770
Regards,
Chale
wow
Great mod thanks
This thread seems a bit old, but after I thought that flashing the zubi mod with flashfire didn't really yield a lot of difference (at least not noticeable for me), I tried this one. To verify, I actually set the values to 15 and the sound of the speaker was clearly less loud. As 30 didn't yet cut it, I'll try the 33.
What I found though, just as a side note: if you scroll down after changing numbers according to this thread, if you mute incall for the same values (guess this would be speaker phone), and unmute later, the values go back to 26. So I will change this to the same numbers as I'll use for the regular speaker.
Mikegrmn said:
This thread seems a bit old, but after I thought that flashing the zubi mod with flashfire didn't really yield a lot of difference (at least not noticeable for me), I tried this one. To verify, I actually set the values to 15 and the sound of the speaker was clearly less loud. As 30 didn't yet cut it, I'll try the 33.
What I found though, just as a side note: if you scroll down after changing numbers according to this thread, if you mute incall for the same values (guess this would be speaker phone), and unmute later, the values go back to 26. So I will change this to the same numbers as I'll use for the regular speaker.
Click to expand...
Click to collapse
If you don't see difference is because you don't flash the mod correctly, the version that you flash is not for your model or Flashfire is not compatible with this mod
The difference is brutal
zubi182 said:
If you don't see difference is because you don't flash the mod correctly, the version that you flash is not for your model or Flashfire is not compatible with this mod
The difference is brutal
Click to expand...
Click to collapse
Well, I downloaded the proper version and after some initial screen outputs telling me that not all permissions could be set properly, I found the flashfire setting where it said that everything got through properly. Maybe it didn't, but it still said it did. And after having successfully flashed xposed with flashfire, it should also work with the sound mod. Whatever.
Can i use do this with just root without custom recovery?
Wow! Nice trick.
I'm using Lineage OS 17.1 and my s7 is much louder now.
//Push
Found this thread, everyone have to see this too. If not posted already somewhere else on here..
PrevosHD said:
Wow! Nice trick.
I'm using Lineage OS 17.1 and my s7 is much louder now.
//Push
Found this thread, everyone have to see this too. If not posted already somewhere else on here..
Click to expand...
Click to collapse
Alternatively, you could do it systemlessly by using JamesDSP Magisk module's output gain feature.
Mic problem during video calls (G930F)
Hi, great tutorial/info.
I have a PixelExperience Plus custom ROM on my S7 G930F.
I am looking for the mic information as i believe that the mixer_paths file has either lowered the volume or changed which mic it is using as when i am on a video call i have to almost speak into the bottom of the phone, near the charge port. I know it is specific so i may just need to install the stock mixer_paths_0.xml file but i can't find it anywhere online. I dont suppose anyone on here has one saved that i could copy? Should have backed it up but i am a fool ;P
It is only a small problem but as i am not aways at home when my missus puts my son to bed i'd still like to be able to video call properly.
Thanks for your time.
[email protected] said:
Hello
I give you speaker volume boost for the Galaxy S7, Exynos variants. check under system/etc and mixer_paths.xml with a root explorer.
these are the stock values, I think 30-31 is good, but you can try higher values and see what you think.
<ctl name="DSP5L Input 1 Volume" value="26" />
<ctl name="DSP5L Input 2 Volume" value="26" />
Click to expand...
Click to collapse
This work also for me on my Galaxy S7, running Pixel Experience made by Expressluke with Android 13 running also Twrp 3.7 and Magisk 25.2.

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.

[GUIDE] How-to modify the ear speaker volume on Mi A1

This mini guide is for users who want to modify the ear/handset speaker volume for their Xiaomi Mi A1.
* You need to open one of the following files with root permissions:
(For STOCK) "root"\system_root\system\vendor\etc\mixer_paths_mtp_global.xml
(For CUSTOM) "root"\system\vendor\etc\mixer_paths_mtp.xml
* Find <path name="handset"> (Hint: It's near the bottom). Modify <ctl name="RX1 Digital Volume" value="88" /> for a value closer to 100 to increase the volume (92 works fine for me) or lower that number if the ear speaker is too loud for you.
* You can also modify the "Digital Gain" value within <path name="speaker"> if you want a louder bottom speaker. In my case the default is 56 and I increased it to 64.
* Save without changing the format (UTF-8 if the editor ask), and reboot.
Tested on two Xiaomi Mi A1 under STOCK 8.1 and Lineage OS 15.1, using Magisk Manager 16 (for root access), and Hootan Parsa's MIXplorer.
Best regards. [Sorry for my bad English]
Thank you
It works
Mine was set to 83 and I felt it too low and increased to 108. It's Really loud. Will scale it down
In bluetooth works?
seinas said:
In bluetooth works?
Click to expand...
Click to collapse
I don't see any numerical value to boost under <path name="headphones"> (nor Bluetooth headphones) for our device, but you can try to increase one at a time the following values under <mixer> near the beginning of the same file: BEWARE that this is a global change
Code:
<ctl name="RX1 Digital Volume" value="83" />
<ctl name="RX2 Digital Volume" value="83" />
<ctl name="RX2 Digital Volume" value="83" />
Hi
Moycano, how do I change root permissions?
I need to root my phone? I never did something like this. Does it erase my phone data?
How can I root my phone? Do you recommend on a good guide?
I really want to change my phone volume, it's very low.
Thanks,
Saar.
xgr3d said:
Moycano, how do I change root permissions?
I need to root my phone? I never did something like this. Does it erase my phone data?
How can I root my phone? Do you recommend on a good guide?
I really want to change my phone volume, it's very low.
Thanks,
Saar.
Click to expand...
Click to collapse
Please, don't be lazy and try to search if you have some question
https://forum.xda-developers.com/mi-a1/how-to/root-mi-a1-oreo-8-0-disabling-ota-magisk-t3728654
jack_21 said:
Please, don't be lazy and try to search if you have some question
https://forum.xda-developers.com/mi-a1/how-to/root-mi-a1-oreo-8-0-disabling-ota-magisk-t3728654
Click to expand...
Click to collapse
Thanks for the answer,
Does it put my phone in danger? Does it earse my phone data?
I just want my volume to be louder, there's no other way to fix this problem with no rooting?
xgr3d said:
Thanks for the answer. Does it put my phone in danger? Does it earse my phone data? I just want my volume to be louder, there's no other way to fix this problem with no rooting?
Click to expand...
Click to collapse
I don't think you can apply this fix without rooting, and rooting is probably the best thing you can do anyway; I can't stand a smartphone without ad-blocking, for starters.
i changed the value to 92 and rebooted and still no change in the call volume so i changed it to 99 and rebooted but still nothing and now it is 130 and nothing changed the volume is still very low
what should i do please help
it works !
it works perfect!
my value is 84, i change to 74 and the volume of the call is finally OK!!
THANK YOU VERY MUCH !!! YOU SAVE MY EAR..
:good::good::good::good::good:
I updated the post with proper instructions for Stock after I went back to it about a week ago. It was a little confusing since both files exist even after a full-format clean install but the system doesn't read the same file than LOS.
cool! can this also be done for the MIN volume? so basically how silent the first step after mute is?
Thanks ALot!
It worked as expected. it was frustrating attending calls with low earpiece volume had to keep earphones around.!!
Also
can we unroot and relock the boot-loader without affecting these changes? just like the case we do while installing google-cam and unrooting/re-locking doesn't affect camera2api or eis.
Hello, i would like to know if I apply this mod the phone will be able to receive OTA updates.
Thanks
Antonis
I can confirm OTA updates work just fine for LineageOS + MindTheGapps + SuAddon.
On the other hand, Stock + Magisk require to uninstall Magisk before OTA or it fails.
Followed the instructions, but now I have no audio at all.
Any chance to do this without root access?
Used this after my in ear volume was so soft after the July update. Turned the value up from 84 to 99 and it worked perfectly. Thank you so much this saved me a lot of money instead of getting a new phone!
Not able to save file after changing value.
Derestriction said:
Used this after my in ear volume was so soft after the July update. Turned the value up from 84 to 99 and it worked perfectly. Thank you so much this saved me a lot of money instead of getting a new phone!
Click to expand...
Click to collapse
Not able to save file after changing value. I am using miX to access file. Please let me know how to change value and fix the issue.
Really great!!! I was on 84 volume level now 100 is wow???

Categories

Resources