How to increase maximum headphone volume? - Sony Xperia XZ2 Compact Questions & Answers

Hey all of you,
I have the [official] Lineage 17.1 flashed to my xz2 compact.
I want to increase the maximum volume for my headphones. Therefore I made changes in the mixer_paths....xml files, but nothing changed. So my questions are:
1. As there are 4 mixer_paths files (mixer_paths_i2s.xml, mixer_paths_qvr.xml, mixer_paths_skuk.xml, mixer_paths_tavil.xml), in which of them should I apply my changes?
2. Which changes do I have to apply? And where exactly?
I tried to increase values RX.. Digital Volume as well as DE.. Volume to 92, brought no changes. Also changes in <path name="headphones"> (also RX.. Digital Volume to 92) didn't change anything (all of the last things were tried in mixer_paths_tavil.xml).
Thanks for helping out

Related

[Q] Handset Gain (Volume too loud) - is there a kernel patch?

There are many threads on here from people complaining the handset speaker is too loud, even at the lowest volume.
Currently, the best (only) method to correct this is to turn it up, and then back down again, but that doesn't work for me.
I recently saw this change to CM7: (sorry, can't linkify yet)
review.cyanogenmod.com/#change,3133
Specifically, the side-by-side:
review.cyanogenmod.com/#patch,sidebyside,3133,1,arch/arm/mach-msm/board-bravo-audio.c
and noticed the "handset gain" setting.
Three questions:
-Does this do what i think it does - i.e., control the Gain level on the handset speaker?
-Anyone know what its set to in the stock kernel?
-Is there another kernel (or patch) that sets it to a lower level? or at least a lower minimum level?
Might be way off, but wanted to see if there was a quick solution, at least.
Thanks.
As far as I know, you would have to compile the kernel with the gain settings tweaked to your liking. I used to remember this being almost a necessity on my old N1, call speaker was garbage (like the touch sensor )
wdfowty said:
As far as I know, you would have to compile the kernel with the gain settings tweaked to your liking.
Click to expand...
Click to collapse
Yea, curious if anyone had done that (for me)

[Q] How can I increase volume of my phone besides the normal settings?

How can I increase volume of my phone besides the normal settings? I want to increase the volume of both speaker & earpiece? Is any CWM-flashable zip available?
if your rooted use a different kernel like siyah etc.
Boost volume
saurabh_goyal93 said:
How can I increase volume of my phone besides the normal settings? I want to increase the volume of both speaker & earpiece? Is any CWM-flashable zip available?
Click to expand...
Click to collapse
This might help you:
http://droidviews.com/2013/how-to-boostincrease-speaker-volume-on-samsung-galaxy-s3-note-2/
Tested on my S3.
Search multiple sound posts .
default _Gain mod is one .
jje
Thanks but I've already done this.
Thanks a lot, but I've already applied this mod. I want to increase it even further.
What are the extreme values which speaker and earpiece can support? Because I know that 63 is the maximum value which phone allows. 64 will turn off the audio for the speaker's safety. But then again, A1F1 boost volume mod can be applied which will further increase the output. So is there anything to do after A1F1 boost settings?
saurabh_goyal93 said:
Thanks a lot, but I've already applied this mod. I want to increase it even further.
What are the extreme values which speaker and earpiece can support? Because I know that 63 is the maximum value which phone allows. 64 will turn off the audio for the speaker's safety. But then again, A1F1 boost volume mod can be applied which will further increase the output. So is there anything to do after A1F1 boost settings?
Click to expand...
Click to collapse
Look the post in my sig.. I have a link for the thread of the sound mod above under mods. The second post has the "extreme" version of the mod. One word of advice, it wont work if there are any other sound mods installed.
Already done this!
tp2215 said:
Look the post in my sig.. I have a link for the thread of the sound mod above under mods. The second post has the "extreme" version of the mod. One word of advice, it wont work if there are any other sound mods installed.
Click to expand...
Click to collapse
I know what you're talking about.
http://forum.xda-developers.com/showthread.php?t=1722136
I've already tried this! I said that in my previous post too. I've tried the extreme method too. The guy says that he has changed A1F1 boost volume to 55.55(max), but I've even tried 150. It works. I'm asking something else.
Thanks anyways.
look for sound volume hack
its the only one that I use

Volume Tweaks, Boost Speaker, Earpiece etc volume

Presenting a simple method to tweak phone volume for following devices
Speaker
Earpiece
Headphones
Some of you might be familiar with this method.
Procedure is simple and easy to follow.
TESTED ON
LG Optimus G Pro F240L running CM 11
DISCLAIMER
I am not responsible for any kind of damage. All precuations are mentioned.
REQUIREMENTS
Rooted Phone
File Manager with ROOT Access
Note: I will be using Root Explorer file manager for demonstrating the procedure.
COMMON STEPS
Video Tutorial : http://youtu.be/YtoouAUbvWQ
1. Open root directory '/' using File Manager with ROOT access.
\2. Navigate to /system/etc/
3. Scroll down to file mixer_paths.xml
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4. Change mixer_paths.xml permissions to R/W
5. Open mixer_paths.xml in text editor.
6. Make required changes in mixer_paths.xml for a particular device
Speaker Post # 2
Earpiece Post # 3
Headphones Post # 4
7. Save changes.
8. Change mixer_paths.xml permissions to R (read-only)
9. Reboot either soft or normal.
ENJOY
CHANGE SPEAKER VOLUME
Boost your speaker/loud-speaker volume and enjoy louder music.
1. In mixer_paths.xml find <path name="speaker">
2. Change value of <ctl name="RX3 Digital Volume" value="your_value" />
In general this value can vary from 0 - 100
Too high value can cause distortion and damage.
On G Pro avoid going above 70.
3. Move to step-7 in Post # 1.
CHANGE EARPIECE VOLUME
Increase earpiece volume if you have problem listening to phone calls.
1. In mixer_paths.xml find <path name="handset">
2. Change value of <ctl name="RX1 Digital Volume" value="your_value" />
In general this value can vary from 0 - 100
Too high value can cause distortion and damage.
On G Pro 60 is suitable.
3. Move to step-7 in Post # 1.
CHANGE HEADPHONES VOLUME
1. In mixer_paths.xml find <path name="headphones">
2. Change value of following
<ctl name="RX1 Digital Volume" value="your_value" />
<ctl name="RX2 Digital Volume" value="your_value" />
Note: Keep both values same.
In general this value can vary from 0 - 100
Too high value can cause distortion and damage.
On G Pro 65 is suitable.
3. Move to step-7 in Post # 1.
hey man i have problem with my G Pro , when i speak the partner can't hear anything what i say . in snd_soc_msm_2x_Fusion3 file,where i can increase my voice (when making phone calls, the recipients can hardly hear the my voice.) THANKS ^^
vip991988 said:
hey man i have problem with my G Pro , when i speak the partner can't hear anything what i say . in snd_soc_msm_2x_Fusion3 file,where i can increase my voice (when making phone calls, the recipients can hardly hear the my voice.) THANKS ^^
Click to expand...
Click to collapse
Sorry buddy I don;t have this file in system folder.
mohsin.android said:
Sorry buddy I don;t have this file in system folder.
Click to expand...
Click to collapse
ok man ^^ this file in path : system/etc/snd_sos_msm.
May you help me ? THANKS !!!
vip991988 said:
ok man ^^ this file in path : system/etc/snd_sos_msm.
May you help me ? THANKS !!!
Click to expand...
Click to collapse
Yes that is the point I don't have the folder you mentioned. All audio configurations are controlled by mixer_paths.xml
I'm running CM11 right now.
Does anyone have the config changes need for the STOCK 4.2.1 G Pro? (to increase speaker volume).
store2edu said:
mohsin.android, I wish you and other people would be UP FRONT and State what version Android Stock ( + Version ) or Cyanogenmod ( + Version ) or Other , this post applies to !
Many People are doing things which cause wasted time and frustration for others ( posting in wrong forums, needlessly quoting prior posts). I personally was brought here by someone incorrectly posting G2 config info in a G forum.
Click to expand...
Click to collapse
If you read the OP, then you will see for WHAT version this mod is.
Very cool thanks for finding this. I plan to use.
Any idea how to boost microphone volume, especially when phone is on speakerphone? For some reason it must be set low because nobody can hear me unless I hold the phone next to my mouth.
I tried few setting in mixer_paths.xml to change microphone volume but didn't succeeded.
I'll update if I find any method..
Thanks
any idea on where is the bluetooth media path (i.e play music with bluetooth) is located ??
Awesome , I did it ! Thanks man , you're great !
Elements1984 said:
Hello xda community
Today I am sharing my knowledge related to the sound modding in android as a way of saying thank you for all the support I received from the xda members in the forums
About myself: I have been working as professional DJ and sound engineer for serious gigs since 15 years.
Goals: This is a general guide to help you understand the fundamentals of sound output in android and how to edit it, then you have to do some research specific to your phone/tablet or experiment on your sound file to have the desired levels. Theorically, this applies to any android phone or tablet, although the values to input will differ from one device to another and from one manufacturer to another. Here I am describing how I boosted the sound in my Xperia Z1, so be aware that applying the same values on a different phone might get different results.
Why I wrote this: Most of the sound mods will not work if you have a different android version than the one of the modder because the architecture of the sound paths might differ from one android version to another, even if it's exactly the same device, so it's vital to be able to boost your sound on your own if all the mods didn't work for you or no mod exists for your device. Sometimes also, a modder wishes to create a sound boost mod but doesn't know how to get the maximum loudness without losing quality. This will no more happen if you read and understand this guide
Note: I am not responsible if you cause any damage to your device or your sound stops working, you are the only one responsible for what you do with what is described in this guide.
Requirements: rooted phone, file explorer and note editor (I use Es File Explorer as it has both)
I wrote this guide to clarify what needs to be edited to get a louder sound without losing quality, so here are the facts:
To get started, use a file explorer and navigate to /system/etc and locate a file named mixer_paths.XML
I recommend that you make a copy of this file in case you need to restore it later if you get undesirable results with your experiements.
Open it using a note editor and locate the sections of your interest, usually there is a title for each section with the values coming right under it, e.g "Headset volume" or "microphone volume"
Starting from here you will have to find out the values specific to your device either by finding them in the forums (if you are lucky) or experimenting by editing the values I am about to explain.
HPH (amplifier/electric output) vs RX (digital/signal):
HPH: Basically, the best way to get a volume boost without decreasing the sound quality is to increase the amount of electric power that your device outputs, this will have the effect of feeding your headphones with more power which will generate more acoustic pressure (DeciBels/db) without degrading the quality (provided you didn't reach the limits of your headset). To do this, just set your HPHR and HPHL to as high as your device allows.
Rx: This is somehow the input signal of your sound, increasing this value will boost the source signal which will create distortion and saturation, this will result in a sound that will feel louder because of the generated compression, but the cost is a loss in dynamics and quality, the loss is proportional to the increase in the signal. In other words, increasing the RX value will distort and saturate the sound, you will have a louder but poor sound quality with a huge loss of bass and a flat sound, with the possibility that this will fry/damage your phone sound card and/or headphones at high volumes because of the saturation generating constant electric current which could overheat the wires/transistors beyond what they were designed to take. Add to this a higher risk to internal ear damages.
My advice is to start increasing the HPH value to the highest possible value first, save the file, reboot and see if the sound boost is high enough for you. If that was not loud enough, then try increasing the RX value by +3, save, restart and try again.
Facts: The loudness doubles at every +3 db, which means RX 85 should be 2 times louder than RX 82
Conclusion: The first step to boosting your sound is to increase the HPHR and HPHL. If more loudness is needed, increase the RX value gradually by +2 or +3 until you reach the desired loudness (try to find a good balance, I wouldn't recommend going more than +3 beyond your current RX value). Keep in mind that too much increase in RX will make you lose bass and sound quality, at that point don't expect the equalizer (EQ) of your music player to give you more bass or improve your sound quality because you have saturated/damaged the sound at its origins.
I hope this will help you set your sound at the desired levels without damaging your sound quality or devices or headphones or ears.
Note: I am using these settings on my Xperia Z1 with my Sony MH1C headset, these values should work for the Xperia Z1 Compact because it has a similar hardware. Theorically, this guide is universal and can be adapted to work with any android device, the values in mixer_paths.xml might be different on other devices but the boosting principle is the same.
More infos:
HPHR = Right output
HPHL = Left output
People with impaired hearing can set up these 2 values differently. E.g: HPH? 20 should be for the weak ear, set the value for the strong ear at anything below 20 until you reach the balance between the 2 ears.
Edit for some CyanogenMod Based ROMs: On my S4 mini running a Resurrection Remix Marshmallow ROM, which is based on CM, I didn't find the mixer_paths.xml file, instead I found a file which contained similar settings for the sound.
The file is named snd_soc_msm_2x and is situated in : system/etc/snd_soc_msm
If you found this useful, please click on the "thanks" button below to thank me That will make my day
Click to expand...
Click to collapse
i tried to change all the RXs to "95" but barely notice any difference from my phone speaker. But thing's work for my Bluetooth and headphone though, almost blow my f ing ears.

in call volume

Which rx value to change in mixer path to increase in call volume?
I have tried to increase volume through mtweaks and Franco kernel however value don't stick and change back to default after some time.
Please help.
145 views and no help???
sanjay.2704 said:
145 views and no help
Click to expand...
Click to collapse
Hey Sanjay,
No idea whether you have solved the issue on your own since May but felt bad when I saw your post. The same thing had happened when I had problems with a Motorola Atrix 4G on this forum.....many views but no reply.
Anyways, this seems to be fairly common across, and this is from another post
To increase speaker volume "RX7 DIGITAL VOLUME" - change value from 84 to 87 or more.
To increase earpiece volume "RX0 DIGITAL VOLUME" - change it's value from 84 to 95 or more
To increase headphones volume - HPHL and HPHR - change values from 12 to 15.
Reboot and check.
Hope this helps. Cheers!
Charismagic said:
Hey Sanjay,
No idea whether you have solved the issue on your own since May but felt bad when I saw your post. The same thing had happened when I had problems with a Motorola Atrix 4G on this forum.....many views but no reply.
Anyways, this seems to be fairly common across, and this is from another post
To increase speaker volume "RX7 DIGITAL VOLUME" - change value from 84 to 87 or more.
To increase earpiece volume "RX0 DIGITAL VOLUME" - change it's value from 84 to 95 or more
To increase headphones volume - HPHL and HPHR - change values from 12 to 15.
Reboot and check.
Hope this helps. Cheers!
Click to expand...
Click to collapse
Thanks for response.. I solved my problem by changing the phone..
sanjay.2704 said:
Thanks for response.. I solved my problem by changing the phone..
Click to expand...
Click to collapse
:good: :laugh: Expected, after a point, I guess.

[Magisk / Lineage OS 18.1] Magisk module to change in-call volume.

I found the volume to be to loud on my device. So I made this module. It just replaces the lineage OS mixer paths tavil file with one that has RX0 decreased from 84 to 70.
Just copy the file to your device, and use the install modules from storage option.
If you want your in-call volume to louder or quieter you can edit the number to your preferences.
I think RX0 is on line 418 in the mixer file.
No guarantee this will not break your phone. I'm just sharing my solution with the community in case someone else has the same issue I did.
This might work on other ROMs and devices, but I have not tested it on any. Post your experiences if you decide to give it a try.
If you decided to edit the file, I suggest changing the value by small increments and testing. I wouldn't increase it by more than 5 at a time. There is a real chance you could damage your speakers if you increase it to much. So don't say you weren't warned.
Mods: If this thread violates something, just delete it.
Credit to the Lineage OS team and Tech Karan for his youtube video on creating modules.

Categories

Resources