yashsingh1/xdaforums huggingface dataset:
[General Topics] motorazrv3:
Sorry. I don't want to experiment with the master volume.

The only thing I want to change is the external speaker volume. That's quite low.

Many thanks for your help and comments.
[General Topics] Elements1984:
No problem, no reason to mess with the master volume if you're already pleased with the current volume ;)

For the speaker, just find the -speaker- path and set HPH to 20 and adjust the RX to your liking ;) Don't push it too far though, you may get an incredibly high volume but after 10 minutes/an hour or few days your speaker will overheat and burn. So try to boost it till you start to hear a small distortion, don't go beyond that point to be safe.

Voila, I am happy for you, feel free to ask more questions if you need help with more things ;)

And don't forget to hit the thank you button if my answers helped you :)
[General Topics] motorazrv3:
At the moment this is the only speaker path I could find.
[General Topics] Elements1984:
Just adjust the RX7 from 83 to 90 and see if it gets louder. Make it even higher if you need more power and feel the speaker isn't saturated ;)

It seems the HPH settings for the speaker might already be set at 20 or may be controlled from the "lineout" settings that are found at the very beginning of the xml file, but I am just assuming and I could be wrong.

Let me know how it goes ;)
[General Topics] motorazrv3:
Hi Eelements1984.

I changed the value to 90 and rebooted. The result is louder but at nearly highest and highest level it sounds ugly.

At the moment I am using value 88 but still it sounds ugly it highest Volume.
[General Topics] Elements1984:
First of all, you must have the HPH at 20 no matter what, this will increase your sound levels without making you lose the quality. This will also allow you to put the RX at 85 or 86 instead of 90 or 88 in order to achieve the same loudness without quality loss.

If having the HPH at 20 and the RX 86 is not loud enough, going higher with the RX is your only choice. Of course, the higher you set the RX means the sound loses quality proportionally and it gets ugly as you described. Unfortunately there is no workaround this, because this is a hardware limitation which is different from manufacturer to manufacturer, I got higher sound outputs from Samsung flagship devices than from Sony flagship devices set at the maximum without distortion.

As I said, having HPH at 18 is not doing you any good, start by putting this at 20, then set RX at 86 and see if it gets you better results. Also, try the equalizer settings that I wrote on a previous post, it should help get you a loud and clear sound with more bass.

Let me know how it goes :)
[General Topics] Rafaru:
Hi Elements1984 , have you ever tried to modify <path name="anc-headphones"> please ??? there are also HPH entries in this path

Thanks
[General Topics] Elements1984:
Hello Rafaru and nice to see you around again :)

In all honesty, I don't remember if I had <path name="anc-headphones"> on my old galaxy S3 or on my Xperia Z1, I believe every device can havd a different sound architecture, hence different names in the mixer path.

Right now I am on an unrooted galaxy s5, so I am unable to make tests until I find time to backup all my data and reinstall kitkat to use towel root and upgrade to a rooted lollipop version. Sorry about that.

But it wouldn't hurt to try modifying the HPH settings that you found in <path name="anc-headphones">, theré is no risk if you changed it to 20 and see if there is an improvement in loudness. If anything goes wrong (such as no sound after reboot), just set back the old values and reboot again.

I would love to have your input on what changes when you change the HPH in <path name="anc-headphones"> to 20.

Looking forward to your feedback and wish you a great day ;)
[General Topics] keithross39:
Hi [MENTION=6864116]Elements1984[/MENTION] sending a guy this way from this thread....

http://xdaforums.com/galaxy-s5/help/volume-sound-t3300589/post64967249#post64967249

Looks like he needs the sort of help you can provide......

BTW.....Did you root the S5 yet?

All the best....Keith

http://i.imgur.com/rVnFwJM.jpg
[General Topics] rk2612:
Hi! I have a strange problem with my LG G3 and one of the Plantronics headsets (M165). On stock ROM, this Bluetooth headset delivers very low volume from the mic and persons I call have a problem hearing me. On other custom ROMs based on CM, this issue is not there. I have tried fiddling around with various values in mixer_paths.xml (including replacing it with the file in CM based ROMs) but none of the changes seem to help. Any guidance? Thanks,
[General Topics] NaiveLife:
Hi, thank you bro i successful increase the volume of the headphones on my xperia z1, but i feel i need a little more volume, i just increase to 20 the HPHR & HPHL... i increase a little bit more or i increase little bit the Rx..., and one more thing, i want a increase the volume of the speaker what we do whit that?, i appreciated any help. Thanks.
[General Topics] Elements1984:
Hi Keithross39 :)

long time since we last spoke and my apology for not getting back to you earlier, life has been very busy lately and it's just today that I had the chance to go through all my threads where I noticed your message =)

I have checked the thread of that guy who wanted to customize his sound outputs, but you already made it clear to him that he can't do anything if he doesn't root first, so there is not much we can help him with if he doesn't root ;)

As for me, I have been waiting for the OTA update of Marshmallow, the main reason why I didn't want to root my S5 yet.

Actually, I may need your input regarding how to get a rooted Marshmallow with Knox 0x0 and whether my idea could work. I will post the link to my new thread as soon as I have created it ;)
[General Topics] Elements1984:
Hello and sorry for my late reply,

You can copy the mixer_paths.xml of the stock rom to a computer, do the same with the mixer_paths.xml of the CM rom that gives you good results with your microphone.

Now, open them with a text editor (try to open them with notepad++ ), side by side, and compare the values along the way.

Expect that few lines will be different or may not even exist on one of the two files, so that's fine. Just make sure to copy the values (numbers) that are related to the "microphone" and "bluetooth", any parameter related to these is worth copying from the CM file to the Stock file. Make sure you just copy/replace the numbers, not the text.

Now save on the computer the stock file that you have finished editing, copy it back to your phone by overwriting the existing one and make sure it doesn't create a copy of it instead.

Now reboot your phone and make the necessary tests, then report here if there have been some changes, I see no reason why it wouldn't work.

PS : Maybe it's worth testing your bluetooth headset on another device and see if the microphone volume is also too low.

looking forward to your feedback ;) And don't forget to hit the thank you button if my reply was helpful to you.
[General Topics] Elements1984:
Hello and sorry for my late reply,

As I already explained somewhere on this threat, do NOT put the HPHL and HPHR values over 20, because for some reason it will decrease the sound, meaning that HPH 20 is louder than HPH 21, HPH 20 is louder than HPH 19, HPH 20 is louder than HPH 30. To make it simple, HPH 20 is the loudest possible setting for HPHL and HPHR.

If you have your HPH on 20 and need more volume, go to your RX and increase the values a little bit more everytime until you reach a good balance between loud volume and good sound quality. I would say RX 86 is fine, and values till RX 89 should still be okay depending on things like the type of music you listen to, the headset you are using, and how much of an audiophile you are.

Don't hestitate to write if you need further support. And don't forget to hit the thank you button if my reply was helpful to you.
[General Topics] rk2612:
I have tried the following:

1. Using the bluetooth headset with other mobiles and it works well.

2. Replacing the mixer_paths.xml of the stock ROM with the one found in CM ROM but that doesn't change the poor quality of audio transmission over bluetooth on a voice call.

Surprisingly, on the same stock ROM where the bluetooth headset does not work well on a voice call, it does work very well on a hangouts call! That is really puzzling for me.

I am attaching a comparison of the stock mixer_paths.xml with the CM (stock entries that are different are crossed out and insertions are from CM). Please could you look at this and let me know if I am missing something.

Thanks,
[General Topics] Elements1984:
I had a view at the PDF file you submitted and I couldn't see anything that could explain why you have bad microphone levels only when making classic phone calls, the microphone levels seem to be set equally for various functions, though they may not be at their maximum.

An explanation to your phenomena could be that Hangouts and similar softwares include some kind of self-contained software "sound level compensation" (compression) that would increase (boost) and normalise the low signal received from the microphone before sending it to the person you're calling and that could be the reason why people hear you properly when you call them through Hangout and not when doing it through a classic call.

Could you please post the stock xml file (unaltered) as well as the CM xml file? I will try to tweak it and build something for you, you can then edit it further for all the settings other than the microphone, of course I can not assure you that it will work but in your situation you don't have much to lose, right? ;)

I will try to boost your microphone settings to much higher levels, this way it should catch sounds more easily and even Hangouts will not need to rely on it's software sound compensation to give the same result. Please specify what phone model you own and the bluetooth headset you use, I may need to make some research before proceeding to the adjustments.

PS : Another suggestion for you that comes to my mind if you have the chance: try using another bluetooth headset, preferably of another brand (maybe one of a friend or a relative) to compare the results and reach a conclusion: if the sound is as low with the 2nd bluetooth headset, then it's definitely due to bad settings in the mixer xml. If the sound is louder with the 2nd headset, then it could be that the bluetooth headset you own has weak microphone sensitivity or it is being obstructed, check if there is not some dust covering the microphone hole and clean it (blow some air on it). If it's late and you can not call people to experiment, just download a microphone recorder app and record yourself speaking, then check the signal levels and voice quality for both bluetooth headsets + your internal device microphone and maybe a wired headset just to have a global idea, then I can give you more accurate diagnostics ;)

Looking forward to both your xml files, I will then get back to you asap :)

Edit: There is something called ADC (ADC3 and ADC5, maybe other numbers too) which are set on 12, I believe these can take a value of 19, perhaps even 20, they seem to be related to the microphone loudness, but I can not say for sure since I don't have a device to try with. If this is the case, it will hugely boost your microphone sensitivity, resulting in a much louder sound. Unfortunately, these settings are the same (value 12) on the CM xml too, so this makes me think the problem will not change because the CM rom had a better microphone volume without the need to change these settings I just mentioned. We have to continue digging until we find a solution :)

Don't forget to hit the thank you button if my reply was somehow useful, lol
[General Topics] rk2612:
Thanks. Attached are the stock and CM xml files.

Additional information that might help you:

* I have tried other bluetooth headsets (but of the same Plantronics make) with my LG G3 mobile but there is no improvement in performance.

* Today I downloaded a bluetooth voice recording app and used that to record with the same bluetooth headset (M 165, Plantronics). This recording is loud and clear!

This leads me to conclude that the issue is with some software setting in the stock ROM and not with the hardware.

I noticed while using the bluetooth voice recording app that the recording was being made at "8000 Hz 32kbps mono". I tried digging around a bit further and came across a mention that some relevant settings might be there in a file named audio_policy.conf. I tried to make sense of this but don't have the skill level to understand it properly. I am attaching this file as well.

EDIT: while searching for audio_policy.conf of CM (also attached now and this has some differences as well), I came across audio_policy.default.so in /system/lib/hw. This file is different in size from the stock ROM and, therefore, I guess that the issue is perhaps not with .conf or .xml files but with the lib files themselves. I'm afraid of replacing lib files as one may not be enough, e.g. in the same /system/lib/hw/ folder in CM, there is a file named bluetooth.default.so which does not exist in the stock ROM. I added this file bluetooth.default.so in /system/lib/hw of the stock ROM but that also does not make a difference. This is about as far as I reached. I guess the next step might be to replace multiple lib files from CM into the stock ROM but that attempt will need to wait until I do a full TWRP backup and have some more time on my hands and the courage to mess with it some more!

Hope you are able to figure this out. Thanks again for your detailed reply and guidance. Cheers,
[General Topics] rk2612:
Thanks again for devoting so much time to this niggling little problem of mine.

I'd read about the Google Now issue and had tried that earlier and tried it again now but without any difference. The issue I have is only on Bluetooth and not with handset or wired headset.

I also tried out the new mixer_paths.xml and I'm sorry to report that I don't have good news to share. It didn't make any difference at all.

I had another hunch that this issue might be to do with noise cancelling feature of the stock ROM. I disabled noise cancelling options in build.prop but that doesn't seem to help either. Perhaps there is some noise cancelling setting in mixer_paths.XML that we may need to look at. What do you think?
[General Topics] rk2612:
Here is something strange that I just noticed. If I start a call with Bluetooth headset already connected, the mic volume is low for the other party but shortly into the call if I switch to the handset mic and then reconnect back to the Bluetooth headset, the mic volume for the other party increases and becomes much better! The Bluetooth mic volume is similarly good if Bluetooth is off when the call starts and then Bluetooth is switched on and the same headset is connected after the call has actually started. Beats me as to why but at least this is some progress. :)
[General Topics] rk2612:
Thanks again for your detailed response and trying to help in solving this issue. Looks like we are in different time zones and I was, therefore, not able to respond yesterday.

The possibility that you mentioned ... that the Bluetooth headset mic was not being used at all and instead the handset mic was being used. And I did test of with cals between two of my phones and walking into another room with the Bluetooth headset. That didn't help and the voice remained at a consistently low level suggesting that the Bluetooth headset mic was indeed being used.

For the moment, the only thing that is working well is that I start the call with Bluetooth headset connected and then switch briefly to handset audio and back to Bluetooth audio.

Actually, even after doing the above the volume of the bluetooth mic has increased for the call recording at my end but the volume being transmitted to the person on the other side remains unchanged.
[General Topics] rk2612:
I have not tried flashing another country's ROM for this mobile but did try after changing country settings in build.prop file.

I also tried switching off noise suppression in the call settings and also in build.prop but these didn't help either.

Doubt if this can be fixed without replacing some of the binaries / lib files but that would be experimenting too much with the stock ROM.
[General Topics] TheKingDragon:
[MENTION=6864116]Elements1984[/MENTION] Hi, I have read your post but I don't have much experience to edit the file "mixer_paths.xml". So can you do this for me and I will send my file for you? Thanks for your comment.
[General Topics] Elements1984:
Hello and welcome to my thread.

Post your mixer_paths.XML file here and let me know what you want to boost. Phone speaker or headset? Or both?

Also, please specify your phone model and your android version.

Don't forget to press the thank you button ;)
[General Topics] TheKingDragon:
Here is my file :D My phone model is Samsung Galaxy S5 (SM-G900H), Android 5.0 and I want both phone speaker and headset boost.

Thanks for replying my comment and helping me :D ( I have already press thanks button for you ) :D

View attachment mixer_paths.xml
[General Topics] Elements1984:
So here is the file that you have requested, I believe this will be much louder while being in the margins of noticeable distortion.

If it is too loud, let me know and I will try to make it lower, or you could just use your phone with the volume set at 14 instead of 15 when listening to music or watching videos, then you will have the possibility to use that +1 for videos with weak sound or when you're sitting in a noisy environment.

Copy the file to your phone, then use a file explorer to copy it to the right folder, that's the folder where you extracted the original file from.

I recommend that you OVER-WRITE the original mixer_paths.xml rather than deleting the old one and put the new one, this is to avoid problems with setting permissions, since you don't seem to be an advanced tweaker.

Give me a feedback on whether is worked for you, and don't forget to press the thank you button if I made your trip to work more enjoyable with louder music :D
[General Topics] TheKingDragon:
Your file is working :D thanks so much but can you make it louder for me? :) and can you boost ringtones and alarm too?
[General Topics] Elements1984:
I am glad to know that it made your sound louder, but I am a bit surprised that this isn't loud enough and going any higher will definitely affect the sound quality.

I will edit it again to make it even louder, but before that could you confirm that it really worked? It could be that you are still using the original file thinking that you have managed to use the one I made for you, this is called the placebo syndrome.

Put the original file again and see if it does get lower, then we could conclude that you did it right the first time and I will gladly make an even louder XML for you.

If putting the original doesn't make the sound lower, then you didn't properly copy the file I made for you, in that case let me know and I will provide you help in order to get it working.

ps: I will build a new file for you when you give me confirmation that you copied the file properly. Be aware that the next file will be louder but that the quality will suffer and be noticeably distorted.

Don't forget to press the thank you button if you appreciate my help :)
[General Topics] TheKingDragon:
You're right! I tried many times and my feeling is two files is the same volume. I tried both headphone and phone speakers. I don't sure my feeling is right but i listen overtime :( what can i do now? Please help me.:

P/s: i do exactly as you said. I copied your file into SD card and copy it overwrite the file on my phone. Thanks for helping me much :laugh:
[General Topics] Elements1984:
Have you tried restarting the phone? Lol

And what app are you using for copying?

Also to what folder are you copying? Please write the path to make sure you are doing it right.

Don't forget the thank you button if you value my time and energy ;)
[General Topics] TheKingDragon:
Yes i have restarting the phone everytime copied XML file.

My app is root explorer.

Folder same as the 1st post /system/etc.
[General Topics] Elements1984:
That is very strange, it should have worked. I will try to make a flashable zip for you and let's see if it works.

Are you running a stock Rom or do you have a custom rom?

Also, which recovery are you using? TWRP or CWM?
[General Topics] TheKingDragon:
I'm using stock rom and rooted my phone.

I use TWRP recovery :) sorry for disturbing you
[General Topics] Elements1984:
Try flashing this in TWRP and let me know if it is louder ;)
[General Topics] TheKingDragon:
I don't think that it's louder than it was before. Can u turn up the volume a little more so that it can be easier to regconize
[General Topics] Elements1984:
ok, I will boost it a lot more to make it easier to spot the change, but it's gonna sound ugly.

maybe your headset is also of low quality and doesn't get louder .

give me a few minutes and I will post another file.

By the way are you sure that you gave me the stock file to edit? because if you flashed the g900f version before making a copy to send me, then this could be the reason why it doesn't work .
[General Topics] TheKingDragon:
Oh yes... i flashed g900f version before send you... my fault :( very sorry...

Will that file return if i install rom stock on sammobile with odin?
[General Topics] Elements1984:
Yes, that file will be back if you flash stock again with Odin, but make a backup of your files (pictures, videos...) and root the phone again.

Basically, if you didn't backup (make a copy) of your xml and you flashed the g900f xml file, then the file you gave me to edit is the one from the g900f which could be different than the file of the g900h.

If you don't have a backup, your options now are to either flash the same Rom again and send me the original xml file or,

ask someone with the g900h in the XDA forums to share their xml with you, then I can edit that file for you.

I will see if I can find that file by google'ing, but it seems very unlikely to me.

Also, have you tried with another headset?

PS: I am currently editing the file for you, it takes time, but I should be able to send it to you shortly. Where are you from?
[General Topics] TheKingDragon:
No don't edit that file anymore, i will reflash my G900H rom and resend you XML file :(
[General Topics] Elements1984:
Wait, here is something new, it seems your phone is the octacore s5 and might have a small difference.

I read that : "sm-g900h uses default_gain file while sm-g900f uses mixer_paths"

I am not familiar with this file but I will give it a try. Please post it for me and I will see if I can edit it for you.

http://xdaforums.com/galaxy-s5/themes-apps/mod-g900h-sound-boost-t2845515
[General Topics] TheKingDragon:
Here is your file :D thanks for helping me so much :) https://mega.nz/#!MYkQGQAS

P/s: i can't upload this file through XDA
[General Topics] Elements1984:
I can not download it because it's asking me for the encrption key.

Give me the key or upload it to another website.

Edit : I found this thread which could be what you're looking for, but please follow my instructions and not the ones which are there :

http://xdaforums.com/galaxy-s5/themes-apps/galaxy-s5-g900h-sound-boost-deafultgain-t3376733

Download the file I posted, flash it through TWRP and reboot. Make some tests and let me know if it is louder.

Don't forget to press the thank you button if you appreciate my help :)
[General Topics] TheKingDragon:
My bad... https://mega.nz/#!MYkQGQAS!xfa491IzDmw7clGr-ktJ7MiKGTZEkTUb1A9Vyu20FLk

---------- Post added at 01:34 AM ---------- Previous post was at 01:10 AM ----------

Yes, I flashed your file and the sound is louder like i want. But it has a little bit noise ( it's okay if you can't fix ) . Thanks so much :D