Increase earpiece volume? mixer xml files? EMUI 8 Android 8 - Huawei P9 Questions & Answers

Hi
Was given a P9 recently, been following the guides to unlock bootloader, update via model change etc - it's all updated and running nicely, the only problem I'm having is very low earpiece volume in phone calls.
Been googling etc, can't find any exact matches for this phone, but general android advice included play store apps (that didn't work) and changing values in mixer xml files. Has anyone had any success with that? Closest I could find for the P9 was this thread for headset volume, which at least helped me locate the path to the xml files.
Code:
/odm/etc/audio/hi6402/mixer_paths_EVA.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_ce.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_cmcciot.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_gcf.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_normal.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_telecomiot.xml
/odm/etc/audio/hi6402/mixer_volumes_EVA_unicomiot.xml
I searched the files for "earpiece" and got sections like
Code:
<path name="call-m0-earpiece" >
<ctl name="AUX PGA GAIN" value="13" />
<ctl name="MAIN PGA GAIN" value="13" />
<ctl name="LINEL PGA GAIN" value="23"/>
<ctl name="MAIN MIC BOOST" value="0" />
<ctl name="AUX MIC BOOST" value="0" />
<ctl name="LINEINL BOOST" value="0" />
<ctl name="S1 OL PGA GAIN" value="0" />
<ctl name="S1 OR PGA GAIN" value="0" />
<ctl name="S3 OL PGA GAIN" value="0" />
<ctl name="S3 OR PGA GAIN" value="0" />
</path>
Tried increasing the MAIN PGA GAIN and AUX PGA GAIN from 13 to 30 (in every similar section with call and earpiece in the heading), started with ...normal.xml and have now tried ce, cmcciot and gcf as well, as suggested in the linked thread. No difference I can notice.
Any other settings I should be trying, any other solutions?
Many thanks for any help!

Related

Sound level is too low in lollipop

Even when I get to the last volume, high volume is not kitkat as follows. What should I do?
Vatron11 said:
Even when I get to the last volume, high volume is not kitkat as follows. What should I do?
Click to expand...
Click to collapse
Method
-Use any root explorer and go to
system/ etc/ mixer_paths.xml and edit.
-search for <path name="speaker"> then edit <ctl name=RX7 Digital Volume" value = "83" />
change 83 to 89 or any digit below 93 (just to be on the safer side)
-tha same way for headseat
-search:
<path name="headphones">
<ctl name="RX1 Digital Volume" value="82" /> (max 93)
<!--66 % of 124 (rounded) register: 0x2BF-->
<ctl name="RX2 Digital Volume" value="82" /> (max 93)
and this:
<path name="speaker-and-headphones">
<ctl name="RX1 Digital Volume" value="64" /> (max 93)
<ctl name="RX2 Digital Volume" value="64" /> (max 93)
In my case works well with the value of 100, any value above maximum recommended is at your own risk.
Will this affect the Bluetooth volume also?
foc-us2k said:
Will this affect the Bluetooth volume also?
Click to expand...
Click to collapse
In my case yes, should apply remember to make a backup file in case you have to restore

Galaxy S5 low audio notes FIX (Cyanogenmod 13/14) Step by step.

Hi, I'm here with a solution for the low audio notes on Samsung Galaxy S5 running cyanogenmod 13 or 14, also works on 14.1.
I have the SM-G900M version, I don't know if this works on the other versions.
Well, to increase volume on audio notes (like when you record in Whatsapp) first you have to:
1- Download a file browser. I download ES File Explorer File Manager.
2- Then activate root on: Settings > Developer options* > Root Acces > Apps and ADB''
*You can activate developer clicking many times on : ''Settings > About Phone > Build number''
3- Go to ES File Explorer and activate ''Root Explorer'' and ''Show Hidden Files''. Then go to Settings (in the app) and in Home Directory select '' / '' click ''Ok''
4- ''App menu > Home'' and select the folder ''etc'' the scroll down and select the file ''mixer_paths.xml'' and open it with Es Note Editor.
5- Scroll down until you see <!-- Recording Scenario -->
6- Then change the values as I have them here :
<!-- Recording Scenario -->
<path name="rec-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="130" />
</path>
<path name="rec-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="130" />
</path>
<path name="rec-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="12" />
<ctl name="DEC5 Volume" value="103" />
</path>
<path name="rec-stereo-mic">
<ctl name="Main Mic Delay" value="4" />
<path name="sub-main-mic" />
<ctl name="DEC2 Volume" value="97" />
<ctl name="DEC4 Volume" value="97" />
</path>
<path name="rec-high-gain-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="130" />
</path>
<path name="rec-high-gain-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="97" />
</path>
<path name="rec-high-gain-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="12" />
<ctl name="DEC5 Volume" value="84" />
</path>
<path name="rec-high-gain-stereo-mic">
<path name="sub-3rd-mic" />
<ctl name="DEC2 Volume" value="97" />
<ctl name="DEC4 Volume" value="97" />
</path>
<path name="rec-NS-mic-interview">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="97" />
<ctl name="DEC4 Volume" value="97" />
<ctl name="ES705-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="7" />
</path>
<path name="rec-NS-mic-conversation">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="97" />
<ctl name="DEC4 Volume" value="97" />
<ctl name="ES705-AP Tx Channels" value="One" />
<ctl name="Internal Route Config" value="8" />
</path>
<path name="rec-NS-mic-conference">
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="97" />
<ctl name="DEC4 Volume" value="97" />
</path>
<!-- end of Recording Scenario -->
<!--
Click to expand...
Click to collapse
7- Save the changes, go back and reboot.
8- If is to loud, or low, you can change the values that I put in ''130'', if you put instead of ''130'', ''90'' the recording audios will be hear more low.
-Sorry for my english (I speak spanish)
-I'm not a developer, just a curious guy.
-This is my first post and I post this because I was a lot of time searching for the fix of this problem, and maybe this could help you.
Thank you so much dude! I had the same problem on my G900F. Thanks to your tutorial I'm able to use voice messages again.
Greetings from Germany
Perfect,
Thx soooooo much. wonderfull settings, also on the G900F, thx from the Netherlands.
You saved the day !
cheers,
Rene
- Conax - said:
Thank you so much dude! I had the same problem on my G900F. Thanks to your tutorial I'm able to use voice messages again.
Greetings from Germany
Click to expand...
Click to collapse
rfnreynders said:
Perfect,
Thx soooooo much. wonderfull settings, also on the G900F, thx from the Netherlands.
You saved the day !
cheers,
Rene
Click to expand...
Click to collapse
You're welcome!! :good:
Woah, nice, but why does miine show zero everywhere?
I have A.R.I.S.E sound mod and my problem is:
- Low mic (other people can hardly here when I make calls)
- Loud speaker (notifications, alarms etc are super loud)
Thanks a lot
raylogic said:
Woah, nice, but why does miine show zero everywhere?
I have A.R.I.S.E sound mod and my problem is:
- Low mic (other people can hardly here when I make calls)
- Loud speaker (notifications, alarms etc are super loud)
Thanks a lot
Click to expand...
Click to collapse
Hi, i don't really know because i'm not a developer. But try increasing the values you've there, first make a backup of that code, and then try.
thanks dude, It worked perfectly, i ****ing love u
I'm wondering if anyone knows how to specifically increase the earbuds in call volume? Thank you
Can anyone show me how to boost microphone in video recording? All other things are working, but when I record a video my microphone sound is very, very low. What I have to edit?
Thanks.
Man, you are insane, I've been looking for this for a long time! Thank you so much!
I find 117 instead of 130 more to my taste.
I wonder if there's a way to control also the whatsapp video calls mic gain...
It works! My G900M S5 was in a lower voice and after change the values now fixed it. Thanks
Is this fix S5 exclusive? I have the same low mic volume issue on my S4 since the last update of LOS. It used to work fine in previous versions.
Great fix
I have ressurection Remix ROM on an SM-GT900T Galaxy S5 and Voice recordings and WhatsApp Voice recording were low, I applied your fix to only the three values you suggested at 130 and edited them to 120 and the results were excellent.
Thanks
amsjnkml said:
I have ressurection Remix ROM on an SM-GT900T Galaxy S5 and Voice recordings and WhatsApp Voice recording were low, I applied your fix to only the three values you suggested at 130 and edited them to 120 and the results were excellent.
Thanks
Click to expand...
Click to collapse
I have the same device and the same rom, but I can not find the file. (Im root)
alfredomadrid said:
I have the same device and the same rom, but I can not find the file. (Im root)
Click to expand...
Click to collapse
Hi, you need to install ES File Explorer.
Then follow instructions in this thread https://forum.xda-developers.com/galaxy-s5/general/galaxy-s5-low-audio-notes-fix-t3542279
alfredomadrid said:
I have the same device and the same rom, but I can not find the file. (Im root)
Click to expand...
Click to collapse
I'm in the same problem, I only found this mixer in "etc/vendor" path, did the change but nothing changed... My partner can't hear me in whatsapp videos call, even using headphones...
Math_Apolo said:
I'm in the same problem, I only found this mixer in "etc/vendor" path, did the change but nothing changed... My partner can't hear me in whatsapp videos call, even using headphones...
Click to expand...
Click to collapse
Try applying the fix in this thread,
https://forum.xda-developers.com/galaxy-s5/general/mic-volume-gain-mod-s5-t3491483
I used the MICGAIN26normal and it corrected the problem.
amsjnkml said:
Try applying the fix in this thread,
https://forum.xda-developers.com/galaxy-s5/general/mic-volume-gain-mod-s5-t3491483
I used the MICGAIN26normal and it corrected the problem.
Click to expand...
Click to collapse
Thx for help, it didn't work too, Like nothing change at all, unless I can't transfer files now and everytime get media error, not blaming you, just saying what happening now.
"android.process.media stopped" all the time
I think I have to live with this **** mic, my partner can't hear me even if I use mic on headphones....
shkedov said:
Man, you are insane, I've been looking for this for a long time! Thank you so much!
I find 117 instead of 130 more to my taste.
I wonder if there's a way to control also the whatsapp video calls mic gain...
Click to expand...
Click to collapse
I'm using Galaxy S5 g900m (klte) and I'm having the same issue, but it's not on Cyanogenmod, it's on LineageOS 15.1 Oreo.
When you record audio and send it via Whatsapp, Telegram, the sound is too low compared to the Stock ROM.
It happens when you listen to the audio as well. Everything seems to be very low, even if you put eveything 100%
mixer_paths.xml doesn't exist on lineageOS

need mixer_paths.xml file please

would someone please dump the file for me from the latest STOCK rom, so i may provide the community with my native volume mod for the g6 family
thank you
Here ya go. I am on Stock but I am on OPW27.113-89 which is one behind the latest I believe. The latest is just a security patch though so I doubt this file changed any.
should be good enough, thank you!
hp420 said:
would someone please dump the file for me from the latest STOCK rom, so i may provide the community with my native volume mod for the g6 family
thank you
Click to expand...
Click to collapse
Were you able to accomplish this? I have a Moto E4 that I was able to edit mixer_paths.xml to increase volume. I have found the same file in my Moto G6, however, all the values I used to edit the E4 are not present in the G6. WTF!
Anyone got a clue?
Thanks!
I'm curious on the outcome to. Device volume is just a bit quieted then I like when using Bluetooth ear buds.
Sent from my Moto G6 Plus using Tapatalk
In addition to editing the mixer_paths.xml, it would be nice to add more volume steps. In xposed I have tried both Volume Steps+ and the volume mod in Gravity Box without any luck. I have also edited the build prop with:
ro.config.vc_call_vol_steps=50
ro.config.media_vol_steps=50
Volume steps are added for media, but nothing for calls or alarms.
Any advice?
Below is a copy & paste from Notepad++. It is a search of "Digital Volume" within mixer_paths.xml. These are, I believe, the values that need to be edited/tweaked. Per this thread, the default value is 128, and the max is 199. I don't know where the poster got that info but 199 seems very high. If it is accurate information, then it's going to take a lot of trial and error to increase the volume to a safe/respectable level.
Based on these results/values, does anyone know what value(s) to use? It appears cut and dry which section is for Headphones and Speaker, but there are multiple speaker sections so I am a bit confused. I will likely experiment when I have time but until then hopefully someone can share more info.
Thanks!
Line 23: <ctl name="IN1L Digital Volume" value="128" />
Line 24: <ctl name="IN1R Digital Volume" value="128" />
Line 25: <ctl name="IN2L Digital Volume" value="128" />
Line 26: <ctl name="IN2R Digital Volume" value="128" />
For headphones
Line 720: <ctl name="OUT1 Digital Volume" id="0" value="114" />
Line 721: <ctl name="OUT1 Digital Volume" id="1" value="114" />
For line / headphones
Line 728: <ctl name="OUT1 Digital Volume" id="0" value="128" />
Line 729: <ctl name="OUT1 Digital Volume" id="1" value="128" />
For headset Mic
Line 735: <ctl name="IN1R Digital Volume" value="128" />
For voice-headphones
Line 779: <ctl name="OUT1 Digital Volume" id="0" value="128" />
Line 780: <ctl name="OUT1 Digital Volume" id="1" value="128" />
For speaker-and-headphones
Line 801: <ctl name="OUT1 Digital Volume" id="0" value="109" />
Line 802: <ctl name="OUT1 Digital Volume" id="1" value="109" />
For speaker-and-line
Line 810: <ctl name="OUT1 Digital Volume" id="0" value="128" />
Line 811: <ctl name="OUT1 Digital Volume" id="1" value="128" />
For voice-tty-full-headset-mic
Line 946: <ctl name="IN1R Digital Volume" value="128" />
I have tweaked the above values of 109, 114, & 128. I made them all 134, and again 142. Unfortunately, I have not noticed any difference in the volume. Either I have chosen to modify the wrong values, or there is another file hidden somewhere that needs to be modded.
I am really hoping someone else can help with this mod.

Increase volume without Equalizer (root)

Lately ive been messing around with viper4android, bit the sound loses some quality, is there a way to increase the volume output to a headset?
No root
Volume booster app in Play Store.
Rooted
This increases Volume of SPEAKER, HEADPHONE. IN-CALL This is battery friendly no additional apps is reqd.
For this you need a rooted MOTO and any file manger with root-access and Text Editor. I have root explorer.
Go to Root -> System -> etc -> scroll down to mixer_paths.xml ->Scroll down and tweak the values of "RX1 Digital Volume" value, RX2 Digital Volume" value, RX3 Digital Volume" value to any number below 95 ( default is 84 ).But any value more than 92 resulting in distortion of sound, I have set it to 89,
<ctl name="RX1 Digital Volume" value="89" />
<ctl name="RX2 Digital Volume" value="89" />
<ctl name="RX3 Digital Volume" value="89" />
Similarly by tweaking DEC1 Volume" value, DEC2 Volume" value you can improve in-call volume. I have set this to 89. Default 84.
<ctl name="DEC1 Volume" value="89" />
<ctl name="DEC2 Volume" value="89" />
After tweaking the file set permissions to rw-r-r and reboot.
I can't find the file
ZhekaJ said:
No root
Volume booster app in Play Store.
Rooted
This increases Volume of SPEAKER, HEADPHONE. IN-CALL This is battery friendly no additional apps is reqd.
For this you need a rooted MOTO and any file manger with root-access and Text Editor. I have root explorer.
Go to Root -> System -> etc -> scroll down to mixer_paths.xml ->Scroll down and tweak the values of "RX1 Digital Volume" value, RX2 Digital Volume" value, RX3 Digital Volume" value to any number below 95 ( default is 84 ).But any value more than 92 resulting in distortion of sound, I have set it to 89,
<ctl name="RX1 Digital Volume" value="89" />
<ctl name="RX2 Digital Volume" value="89" />
<ctl name="RX3 Digital Volume" value="89" />
Similarly by tweaking DEC1 Volume" value, DEC2 Volume" value you can improve in-call volume. I have set this to 89. Default 84.
<ctl name="DEC1 Volume" value="89" />
<ctl name="DEC2 Volume" value="89" />
After tweaking the file set permissions to rw-r-r and reboot.
Click to expand...
Click to collapse
I just can't find the file un that specific folder
ZhekaJ said:
No root
Volume booster app in Play Store.
Rooted
This increases Volume of SPEAKER, HEADPHONE. IN-CALL This is battery friendly no additional apps is reqd.
For this you need a rooted MOTO and any file manger with root-access and Text Editor. I have root explorer.
Go to Root -> System -> etc -> scroll down to mixer_paths.xml ->Scroll down and tweak the values of "RX1 Digital Volume" value, RX2 Digital Volume" value, RX3 Digital Volume" value to any number below 95 ( default is 84 ).But any value more than 92 resulting in distortion of sound, I have set it to 89,
<ctl name="RX1 Digital Volume" value="89" />
<ctl name="RX2 Digital Volume" value="89" />
<ctl name="RX3 Digital Volume" value="89" />
Similarly by tweaking DEC1 Volume" value, DEC2 Volume" value you can improve in-call volume. I have set this to 89. Default 84.
<ctl name="DEC1 Volume" value="89" />
<ctl name="DEC2 Volume" value="89" />
After tweaking the file set permissions to rw-r-r and reboot.
Click to expand...
Click to collapse
Thanks for the method, but after save and exit after edit, it back to original value, even with rw-r-r

Increase Bluetooth Audio?

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

Categories

Resources