Thoughts - Force High Impedance Mode without external cables - LG V10 General

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

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/

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

Microphone issues

I need some help with diagnosing this. Something is wrong with the microphone(s) on my device and I can't figure out what to try. I have searched and I have tried the trick with applying pressure on the flex-cable. It does not work.
This is what I see:
Regular phone call = the person on the other side hears nothing. Just silence.
Speakerphone = Everything is OK!
Headphones = Everything is OK!
This points me to a defective microphone at the bottom.
BUT:
Voice recording app (Easy Voice Recorder) = Just garbled noise / hissing. If I speak or snap my fingers, nothing is picked up.
Video recording through default camera app = The same as above, just noise/hissing. Nothing is picked up.
So, what microphone is used for what? What can I try to isolate the error?
Anyone?
I have exactly the identical problem. When I dial out I can hear the other person but they hear nothing. Like you the voice recorder works. And if speaker is on they can hear me. Like you, I researched the problem and applied the pressure trick but it did nothing. This is really weird. I didn't drop the phone or anything.
Sounds like a software problem to me.
I hope one of the experts helps us.
maybeme2 said:
I have exactly the identical problem. When I dial out I can hear the other person but they hear nothing. Like you the voice recorder works. And if speaker is on they can hear me. Like you, I researched the problem and applied the pressure trick but it did nothing. This is really weird. I didn't drop the phone or anything.
Sounds like a software problem to me.
I hope one of the experts helps us.
Click to expand...
Click to collapse
I have ordered a new mic/charger-flex and am going to replace it. I don't think that is the reason for this though...
That sucks. I found a thread which describes the same issue and in this case, the issue was hardware - a connector on the motherboard. Here's the thread link, hope it helps: http://forum.xda-developers.com/google-nexus-5/help/nexus-5-microphone-speakerphone-t3043151
jadajada said:
I have ordered a new mic/charger-flex and am going to replace it. I don't think that is the reason for this though...
Click to expand...
Click to collapse
What is a mic/charger-flex and where did you order it from? Is it the mike cable?
Please report back when you replace it so I know whether I need to do the same.
Thanks.
android_8 said:
That sucks. I found a thread which describes the same issue and in this case, the issue was hardware - a connector on the motherboard. Here's the thread link, hope it helps: http://forum.xda-developers.com/google-nexus-5/help/nexus-5-microphone-speakerphone-t3043151
Click to expand...
Click to collapse
I know about that problem, and I have tried that. It does not help on my phone.
maybeme2 said:
What is a mic/charger-flex and where did you order it from? Is it the mike cable?
Please report back when you replace it so I know whether I need to do the same.
Thanks.
Click to expand...
Click to collapse
It's this part.
It contains a new microphone, but since the phone behaves as it does, I don't really think it's a faulty microphone. But I'll update this post when the part arrives.
Thank you.
I don't think it is a hardware issue. Otherwise why would the *same* Mike work when we turn the speaker on or plug in earphones?
I think it is either software or some installed app conflicting in some way. But, what do I know?
Same issue
I do the same. it is not possible that so many instruments have the same problem and no solution to it. I tried everything possible. pressure on the flex cable connector does not help in this case. Various changes to the file buildprop not respond. I do not understand what the problem may be. u call this error manifests itself sporadically, but still persists. until this thing is super device ...
jadajada said:
I need some help with diagnosing this. Something is wrong with the microphone(s) on my device and I can't figure out what to try. I have searched and I have tried the trick with applying pressure on the flex-cable. It does not work.
This is what I see:
Regular phone call = the person on the other side hears nothing. Just silence.
Speakerphone = Everything is OK!
Headphones = Everything is OK!
This points me to a defective microphone at the bottom.
BUT:
Voice recording app (Easy Voice Recorder) = Just garbled noise / hissing. If I speak or snap my fingers, nothing is picked up.
Video recording through default camera app = The same as above, just noise/hissing. Nothing is picked up.
So, what microphone is used for what? What can I try to isolate the error?
Click to expand...
Click to collapse
Unless you or some root app you have installed messed with the audio mixer (file: /system/etc/mixer_paths.xml) or audio HAL (/system/lib/hw/audio.primary.msm8974.so) this is most likely a hardware problem. Which microphone is used depends on the application that requests it. There are two microphones on the Nexus 5, the main microphone is the one on the bottom and there is a second one near the headphone jack on the top.
In the handset telephony use-case, actually both microphones are being used. However, the main microphone picks up your voice while the other microphone is being used to cancel background noise only. When you switch to speakerphone, the "pickup" microphone switches to the one on top (for a good reason). The same happens when you plug in a pair of headphones without an inline microphone.
Most if not all other use-cases (apps) use the bottom microphone for audio recording.
A software problem can be ruled out by re-installing one of Google's stock builds.
Software test.
I did a partial software test. My phone is rooted so I made a nandroid backup of the present and then restored an earlier nandroid from 2 months ago before all these troubles started. After the restore, the problem was unchanged. Nobody can hear me when I call but they can hear me fine when I put the speaker mode on.
So, sadly, you are correct. Now we have to find out what needs to be replaced because the "phone" is useless this way. Other users have said replacing the microphone and cable did not help (hopefully jadajada's experience will be different).
Looking for mechanical causes, my bottom mike grill is quite dirty and may be blocked. Is there a safe way to clean it? Compressed air? Thin staple?
maybeme2 said:
Software test.
I did a partial software test. My phone is rooted so I made a nandroid backup of the present and then restored an earlier nandroid from 2 months ago before all these troubles started. After the restore, the problem was unchanged. Nobody can hear me when I call but they can hear me fine when I put the speaker mode on.
So, sadly, you are correct. Now we have to find out what needs to be replaced because the "phone" is useless this way. Other users have said replacing the microphone and cable did not help (hopefully jadajada's experience will be different).
Looking for mechanical causes, my bottom mike grill is quite dirty and may be blocked. Is there a safe way to clean it? Compressed air? Thin staple?
Click to expand...
Click to collapse
I also think that the problem is in the hardware, but I fear that somewhere on the main board, and it does not pay to fix it. Unfortunately. Almost I wonder if Google wants this old devices, so we had to buy a new series of Nexus. Joke . Otherwise, the phone I had disassembled and microphone has good coverage, therefore, was beautifully clean and free of dust and dirt.
In that case, what to replace the phone with? Another nexus 5 or a different phone? What are you going to do?
situsacek said:
I also think that the problem is in the hardware, but I fear that somewhere on the main board, and it does not pay to fix it.
Click to expand...
Click to collapse
Situsacek, you seem to know about these things. May I ask why you think the problem is on the main board? Is there a tool to test and find out other than replacing the microphone and flex cable to see if that fixes it or not?
How difficult is it to replace the microphone and flex cable? I am resigned to having to buy a new phone but am checking out my options.
maybeme2 said:
Situsacek, you seem to know about these things. May I ask why you think the problem is on the main board? Is there a tool to test and find out other than replacing the microphone and flex cable to see if that fixes it or not?
How difficult is it to replace the microphone and flex cable? I am resigned to having to buy a new phone but am checking out my options.
Click to expand...
Click to collapse
I have read a lot of discussion on this topic and this problem affects many devices. However, nobody knows the answer to this problem. No one knows the complete solution. For me, it manifests at 5/1 call, for a camera recording the whole time not sound correctly. Replace flex cable is not hard. Does not cost a lot of money on Ebay. But I do not think it will solve this thing, somebody already tried and always the same. I do not want to invest money, though it is not part of the solution. I am very disappointed by this, and I do not want the product from LG never more!
---------- Post added at 06:21 PM ---------- Previous post was at 05:32 PM ----------
situsacek said:
I have read a lot of discussion on this topic and this problem affects many devices. However, nobody knows the answer to this problem. No one knows the complete solution. For me, it manifests at 5/1 call, for a camera recording the whole time not sound correctly. Replace flex cable is not hard. Does not cost a lot of money on Ebay. But I do not think it will solve this thing, somebody already tried and always the same. I do not want to invest money, though it is not part of the solution. I am very disappointed by this, and I do not want the product from LG never more!
Click to expand...
Click to collapse
Here is a link to many topics. For me, nothing works out there.
https://m.reddit.com/r/Nexus5/comments/2ztw83/how_to_fix_microphone_issues/?sort=top
Sent from my ALE-L21 using XDA-Developers mobile app
---------- Post added at 07:18 PM ---------- Previous post was at 06:21 PM ----------
It was a kind signed the petition. Solves it for over two years. I recommend buying another mobile phone. There is no chance of redress. Thanks
https://www.change.org/p/google-fix-microphone-issues-on-nexus-5-phones#share
Sent from my ALE-L21 using XDA-Developers mobile app
For folks with (at least) a custom recovery (better: rooted), there is a way to make the camcorder and other audio recording devices use the auxiliary microphone (the one on top) instead of the main microphone (the one on the bottom). I'm not sure what can be done in the telephony (handset) use-case, though, without introducing a lot of noise, echo, and low speech levels for the far-end.
The "fix" involves modifying one file (/system/etc/mixer_paths.xml); PM me if you are interested in giving this approach a shot.
chdloc said:
For folks with (at least) a custom recovery (better: rooted), there is a way to make the camcorder and other audio recording devices use the auxiliary microphone (the one on top) instead of the main microphone (the one on the bottom). I'm not sure what can be done in the telephony (handset) use-case, though, without introducing a lot of noise, echo, and low speech levels for the far-end.
The "fix" involves modifying one file (/system/etc/mixer_paths.xml); PM me if you are interested in giving this approach a shot.
Click to expand...
Click to collapse
Hi, I also tried, but without any significant response. Could you give your instructions, so I can compare? Thank you
Sent from my ALE-L21 using XDA-Developers mobile app
situsacek said:
Hi, I also tried, but without any significant response. Could you give your instructions, so I can compare? Thank you
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
OK, I'm assuming that the main microphone (bottom) is dead and that the auxiliary microphone (top, near headphone jack) is still operational.
To use the auxiliary microphone for both camcorder and (I'm guessing) most other audio recording apps, edit your /system/etc/mixer_paths.xml file (e.g. via a file explorer), search for the following entry:
Code:
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
and replace with
Code:
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
After saving the modified file (make backup of original file first!), make sure that the permissions are set to 644 (rw-r--r--), and reboot.
The next step is handset telephony. A very quick and likely very poorly performing solution would be to again simply use the top microphone. You will need the same modification as above. In addition, you need to disable dual-microphone support by editing your build.prop file:
After making a proper backup, replace
Code:
persist.audio.dualmic.config=endfire
with
Code:
persist.audio.dualmic.config=none
check the permissions (644), and reboot. Be advised that the microphone is now further away from your mouth so the TX level will be low. You could crank up the gain by increasing "ADC3 Volume" (permissible values are between 0 and 20) and/or "DEC4 Volume" (permissible values are between 0 and 124), followed by a reboot. Also keep in mind that echo cancellation and noise control will be turned off, so be prepared for a lot of complaints.
chdloc said:
OK, I'm assuming that the main microphone (bottom) is dead and that the auxiliary microphone (top, near headphone jack) is still operational.
To use the auxiliary microphone for both camcorder and (I'm guessing) most other audio recording apps, edit your /system/etc/mixer_paths.xml file (e.g. via a file explorer), search for the following entry:
Code:
<path name="handset-mic">
<path name="adc1" />
<ctl name="ADC1 Volume" value="16" />
<ctl name="DEC6 Volume" value="86" />
</path>
and replace with
Code:
<path name="handset-mic">
<path name="adc3" />
<ctl name="ADC3 Volume" value="16" />
<ctl name="DEC4 Volume" value="86" />
</path>
After saving the modified file (make backup of original file first!), make sure that the permissions are set to 644 (rw-r--r--), and reboot.
The next step is handset telephony. A very quick and likely very poorly performing solution would be to again simply use the top microphone. You will need the same modification as above. In addition, you need to disable dual-microphone support by editing your build.prop file:
After making a proper backup, replace
Code:
persist.audio.dualmic.config=endfire
with
Code:
persist.audio.dualmic.config=none
check the permissions (644), and reboot. Be advised that the microphone is now further away from your mouth so the TX level will be low. You could crank up the gain by increasing "ADC3 Volume" (permissible values are between 0 and 20) and/or "DEC4 Volume" (permissible values are between 0 and 124), followed by a reboot. Also keep in mind that echo cancellation and noise control will be turned off, so be prepared for a lot of complaints.
Click to expand...
Click to collapse
Hi, thanks for the nice described instructions. Yes it's the same procedure as I found and tried. Unfortunately, the other side is exposed to a strong echo. Pity that no fixed correction, not a precise explanation of why the problem arose at our facilities. Answer seemed to die along with the nexus 5
situsacek said:
Hi, thanks for the nice described instructions. Yes it's the same procedure as I found and tried. Unfortunately, the other side is exposed to a strong echo. Pity that no fixed correction, not a precise explanation of why the problem arose at our facilities. Answer seemed to die along with the nexus 5
Click to expand...
Click to collapse
Actually, I have dual-microphone processing disabled on my phone as well (but it is for a different reason) and I'm exclusively using the main microphone for the handset telephony use-case. I did succeed in enabling echo and noise control, but
I'm not sure whether it would work with the auxiliary microphone as well
the solution I came up with is, unfortunately, way too complicated and convoluted to share with the community (custom kernel, Tasker integration, and most importantly, individually adapted application of audio calibration data)
With the above modifications of mixer_paths.xml, using the auxiliary microphone for virtually any other purpose should work OK, though.

[ROOT][MOD] Xperia X Performance Volume Boost for stock config

What's bugging me about my brand new Xperia X? The overall low volume.
These simple tweaks, this mod if you may, simply modifies a few lines from the stock audio config files which, after a reboot make your speakers louder and headphones, a bit too loud (but I didn't hear anyone complaining about Xperias for being too loud lol)!
It's for rooted users only and for me it sounds a lot better than using (possibly) unstable sound mods instead of simply adjusting the volume on some pretty decent stock drivers.
***Tested on X Performance running Nougat. I've also got my hands on Xperia X Performance files which are pretty straight FWD see attach. Thanks @bkk99213 for testing and for the file!***​​​
Make a backup first or if you didn't simply put the original values back (82 for speaker lines and 76 for headphones). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal.
Features:
Louder Stereo Speaker sound system wide;
Louder Headphone sound;
Stereo Voice-Speaker call - NOT TESTED! Keep a backup and please let me know if it's working;
Customizable as you see fit! Just stick to the already explored options.
Conflict-free tweaks - no additional files added, no nothing, just some modified lines - you can trust it .
Installation:
By flashing the .zip on recovery or with FLASHFIRE [press the red "+" button > Flash ZIP or OTA > leave the options as they are and Click on the "done arrow thingy".
Manually copying the file to /etc - DO NOT forget to set the right permissions (RW R R). Please take a look over the Permissions.png screenshot in case you don't know how to set them - you long click on the file, then go to properties and you'll see the permissions button.
Do it yourself - there's a guide down bellow.
In the download section you'll find:
>>Flashable! already modified "Xperia X P Getting Loud.zip" with: SPEAKER values - 84 for both RX7/RX8 and HEADPHONE values - 84 for RX1/RX2.
>>Flashable! Stock Values - it's the stock file unmodified.
>>NON-Flashable! zips - there you have 1 zip for the modified file and the stock one so you can place it manually via ES file explorer or the explorer of your choosing.
**And some screenshots that are pretty self explanatory showing you what modifications need to be made if you want to do it yourself.
DIY Guide (using ES File Explorer):
You're probably acquainted with ES File Explorer so it should be pretty simple. The modifications I made were done with ES (it has an built-in editor).
1. Make sure the Root Explorer toggle is On - it's located in the Tools tab as you swipe the left side of the screen;
2. Go to the root of the files where you'll see folders such as "data; dev; firmware; storage; system; etc" go to "etc" folder and scroll down till you see the mixer_paths files;
3. Open "mixer_paths_tasha" and at the prompt, select ES Note Editor - it's a huge file so tap right above the navigation bar! A bar with percentage should show up - it will help you navigate through the file;
4.1 Speakers - Get to 45% of the file where you should see the path for "speaker", ctrl name RX7 and RX8 with their stock values - modify the values as you please but please don't go over 85 - sound will be too distorted;
4.2 Headphones - Go to 57% of the file - you'll see "headphones" path - ctrl name RX1 and RX2 - modify the values but anything more than 84 might be too much.
5. Save and reboot. If you choose to modify the files on a PC make sure to set the permissions when you put the file back. Otherwise bootloops might occur.
*Stereo Voice-Speaker call is untested but in theory it should work, as it does on my Xperia X. I added the second channel to the routing - screenshot bellow.
**Stereo Ringtone-Speaker - WIP. I'm currently stuck so feel free to jump in and notify me via PM.
***Internal players such as Music, Video, ringing and notification will try to compensate the sound so it might not be as loud as expected. But try a youtube video and you'll notice the difference.
***Do not attempt to modify something else unless you know what you're doing - on that note, make a backup first. In my first attempts I lost sound device wide with FC for sound effects apk.
***Do not go over the values I imputed (84 for speaker and 85 for headphone) - apart from the distortions that will occur because of the louder volume the internal DAC might not be able to reproduce the sound at such intensity - in my tests one of the speakers was shutting down. Again, no harm can come to your device but don't push it.
***I saw a lot of sections for hi-res headphones, Noise cancelling, etc - I did not explore those options because I don't have the means to test it. Any input and contributions from you guys are most welcome.
These files control the volume output for digital / analog which means it's a non-intrusive way to change volumes with no harm for the device. If volume limit exceeds the capacity of the speakers it will sound bad but there is no chance for physical damage.
I'm coming from a highly modded Xperia Z (that phone saw some torture) which made use of the earpiece speaker for stereo, and even if the speakers aren't designed for that output they are louder than the X which packs pretty decent speakers. This is the mod that gave me the idea: http://forum.xda-developers.com/xperia-z/themes-apps/mod-stereomod-xz-v1-1-t2835995
Click to expand...
Click to collapse
Also check this out. It's an xposed module that will disable the annoying thermal warning for the camera. No more functions disabled just because phone got a bit over skin temperature lol. http://forum.xda-developers.com/cro...-camera-xperia-thermal-disabler-v1-0-t3455087
Cheers and happy new year!
Cannot find 9335
In Xperia X Performance @7.0nougat
I can't find the file in etc folder.
bkk99213 said:
In Xperia X Performance @7.0nougat
I can't find the file in etc folder.
Click to expand...
Click to collapse
Yes that's why it's a guide-ish. Files are different still... Traditionally with Sony, you should aim for the largest file. In your case the right file should be "...tasha" file. If you want you can send it to me or try it yourself. Keep a backup. I had no bootloops (so there's nothing to fear) by modifying what I shouldn't (and i had a dozen of tries). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal. PM me. I'm curious about the file and results.
Sebi673 said:
Yes that's why it's a guide-ish. Files are different still... Traditionally with Sony, you should aim for the largest file. In your case the right file should be "...tasha" file. If you want you can send it to me or try it yourself. Keep a backup. I had no bootloops (so there's nothing to fear) by modifying what I shouldn't (and i had a dozen of tries). All that can happen if you modify the wrong thing is: Your settings won't do anything or you'll have no sound, that's why a backup is ideal. PM me. I'm curious about the file and results.
Click to expand...
Click to collapse
Here you go and thanks a lot. I know mi 4i can use same method to make the sound loudly. So I also interest your GUIDE
But PM cannot attach file. So I use REPLY..:laugh:
bkk99213 said:
Here you go and thanks a lot. I know mi 4i can use same method to make the sound loudly. So I also interest your GUIDE
But PM cannot attach file. So I use REPLY..:laugh:
Click to expand...
Click to collapse
It's simpler than it was on my X. I'll be back with an update. But I need my coffee first ))
Tested. It work. Whatsapp's Ringtone is obviously but some notification sound get distorted.
So I don't know the setting(84) is correct or not.
bkk99213 said:
Tested. It work. Whatsapp's Ringtone is obviously but some notification sound get distorted.
So I don't know the setting(84) is correct or not.
Click to expand...
Click to collapse
That's device specific. On my X 84 is just the right amount. I'll make another zip with 83 values. That's only one step over stock.
At least headphones are loud and distortion free. I noticed some good amplification on those. On my old Xperia Z I could never have such a powerful sound without signal cutting off on one of the channels.
Correction. The file had 85 for speakers. I'll put new zips with 84 soon.
---Files Updated---
Sebi673 said:
That's device specific. On my X 84 is just the right amount. I'll make another zip with 83 values. That's only one step over stock.
At least headphones are loud and distortion free. I noticed some good amplification on those. On my old Xperia Z I could never have such a powerful sound without signal cutting off on one of the channels.
Correction. The file had 85 for speakers. I'll put new zips with 84 soon.
---Files Updated---
Click to expand...
Click to collapse
84.perfect.:good::good::good:
bkk99213 said:
84.perfect.:good::good::good:
Click to expand...
Click to collapse
So glad I was able to help. You're welcome!
After tested 5 days, I get some trouble that my phone call's volume is lower than before.
But the settings should be no change for phone call, right?
* I have not much phone call, so I can't find this problem @ 1st day.
Thanks for your help again.
Does anyone know which xml would need to be modified for this to work on the X Compact?
agentsmith988 said:
Does anyone know which xml would need to be modified for this to work on the X Compact?
Click to expand...
Click to collapse
It's usually the largest one. So you should look for that. And then adapt this method to the X. Speakers might be with a different name buy you'll get it
Sent from my Xperia X using XDA Labs
Sebi673 said:
It's usually the largest one. So you should look for that. And then adapt this method to the X. Speakers might be with a different name buy you'll get it
Sent from my Xperia X using XDA Labs
Click to expand...
Click to collapse
Looks like it's mixer_paths_wcd9335.xml at 148.6KB. Both RX7 and RX8 are at 82 stock (under path name="wsa-speaker"). How much past the original values are you pushing these things, 2-3? Do these values boost the in-call speakerphone volume as well?
Unrelated, does anyone know if this XML has anything that could be modified to get get both speakers working when using the in-call speakerphone?
agentsmith988 said:
Looks like it's mixer_paths_wcd9335.xml at 148.6KB. Both RX7 and RX8 are at 82 stock (under path name="wsa-speaker"). How much past the original values are you pushing these things, 2-3? Do these values boost the in-call speakerphone volume as well?
Unrelated, does anyone know if this XML has anything that could be modified to get get both speakers working when using the in-call speakerphone?
Click to expand...
Click to collapse
I am pretty sure both X and X compact use the same HW - it seems to be the same file and wsa thingy - check my thread for X - https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691
it is possible to modify the call speaker - and there are more things to add like stereo for that one. But going over default for one speaker can get voice distorted. And if stereo is applied there, than microphone quality will drop a lot. There's a reason why the call speaker is mono - so that the mic on the other side can catch most of the sounds. At some point maybe I'll look for a hook for stereo.
bkk99213 said:
After tested 5 days, I get some trouble that my phone call's volume is lower than before.
But the settings should be no change for phone call, right?
* I have not much phone call, so I can't find this problem @ 1st day.
Thanks for your help again.
Click to expand...
Click to collapse
These modifications can't affect the phone call volume since I never touched those. And I never had such issues. But I'll keep my ear close to it )
Sebi673 said:
I am pretty sure both X and X compact use the same HW - it seems to be the same file and wsa thingy - check my thread for X - https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691
it is possible to modify the call speaker - and there are more things to add like stereo for that one. But going over default for one speaker can get voice distorted. And if stereo is applied there, than microphone quality will drop a lot. There's a reason why the call speaker is mono - so that the mic on the other side can catch most of the sounds. At some point maybe I'll look for a hook for stereo.
Click to expand...
Click to collapse
Awesome! Bumped the speaker and headphone values up to 86 and 85 and all I can say is wow! Made a huge difference!
Do you know which lines specifically control the in-call speaker volume? Makes sense about the mono audio/mic pick-up, however it'd be great to at least increase the volume.
agentsmith988 said:
Awesome! Bumped the speaker and headphone values up to 86 and 85 and all I can say is wow! Made a huge difference!
Do you know which lines specifically control the in-call speaker volume? Makes sense about the mono audio/mic pick-up, however it'd be great to at least increase the volume.
Click to expand...
Click to collapse
Adding stereo speaker to phone call is a bit tricky as far as I remember, especially without a recovery. Hopefully I'll have some spare time to look over it or at least identify call routing.
Sent from my Xperia X using XDA Labs
Sebi673 said:
Adding stereo speaker to phone call is a bit tricky as far as I remember, especially without a recovery. Hopefully I'll have some spare time to look over it or at least identify call routing.
Sent from my Xperia X using XDA Labs
Click to expand...
Click to collapse
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
agentsmith988 said:
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
Click to expand...
Click to collapse
yup, that should be it. I'm advocating for the stereo because stock values already distort a lot on speaker call
[Update] - stereo call speaker now working. Testing and applying method for ringtone speaker aswell
agentsmith988 said:
Would it be easier to just increase the in-call volume and leave it mono? I'm guessing that there is a similar RX line that can be bumped up a few values to increase the volume.
Under <path name="voice-speaker"> there is a line <ctl name="RX8 Digital Volume" value="82" />. I'm guessing that may be it?
Click to expand...
Click to collapse
[UPDATE] Please check the updated thread for Xperia X. For you, modifications should be easier to learn from there. Stereo Voice-Speaker added - no need for volume boost. https://forum.xda-developers.com/xperia-x/themes/xperia-x-mixerpaths-volume-tweaks-tank-t3525691

[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