(How To / MOD) Microphone Gain Increase on All S5 Variants + Mod *Update 02/11/16

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
@thejester123

Anything new about distorted audio in video recording my friend? :)
I guess it is only an issue of CM and not of stock Android!?

Regards

Gesendet von meinem SM-G900F mit Tapatalk
I am still looking into it, i am currently on android N and not having the issue myself, should hopefully have some news tomorrow. Going to reflash MM and give my new files a shot :good:
 

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
I am still looking into it, i am currently on android N and not having the issue myself, should hopefully have some news tomorrow. Going to reflash MM and give my new files a shot :good:
Right i have tested for a few days and the noise has been reduced so i will tweak it some more and should have a release by Saturday at the latest :good:
 

j1gga84

Senior Member
Jun 21, 2012
4,585
2,721
253
Bremen
www.android-hilfe.de
Right i have tested for a few days and the noise has been reduced so i will tweak it some more and should have a release by Saturday at the latest :good:
Awesome, looking forward :)
I agree it is much more improved compared to the beginning but audio in video recording is totally distorted in louder environments, I have no idea if it is adjustable via mixer_path and voice notes recorded via headset is also still distorted compared to the microphone records on the bottom of the S5 - for example in WhatsApp, just tested it today in my car, one time with headset and the other time without headset. The audio quality got better at headset recording but the voice is still distorted completely sometimes.
But we are definitely on the right way :)

Regards

Gesendet von meinem SM-G900F mit Tapatalk
 

Rendering

Senior Member
May 13, 2011
226
24
0
I used to use this patch on my phone at the time that the only content of the patch was a single xml file. Now we have two things:
  1. The xml file in the first post;
  2. the compressed file that contains bash scripts and many other files.
The question is: which of them should I use?
 

PushyPhoenix

Member
Nov 21, 2012
38
7
28
Edmonton
@thejester123, can't thank you enough for this!
First of all, a rant...
Samsung - You've included NO options to adjust voice input settings system-wide? With YOUR phone on a car dock, the microphones pick up every little vibration, and the only way to tweak is to use the pre-installed voice recorder app?
/RANT

Anyway! After a massive search on this topic a few months back I came up with the solution of "use a wired headset" for a specific voice messaging app. It's a huge relief and benefit to all of us that there IS a way to play around with this in a more global way!
 

O-Dawg

Member
Apr 18, 2016
8
0
0
I have the latest snapshot build of CM13 on my SM-G900V. I realized some time ago that no one could hear me on Skype. The audio level for videos and sound recordings was also low. Regular calls (regular calls and on speakerphone) have strangely been fine. I flashed the latest version of your mod (11.9) and the camera recording volume seems to be fixed, as well as in regular Skype calls (holding phone up to ear), but the speakerphone mic is still really quiet in Skype calls, and in recordings from the Sound Recorder app.

I made the following changes to try to fix it, all to no avail. They were the only options with "speaker" in them so I figured they would be the relevant levels to change.
Video call: video-call-NS-mic-speaker both levels to 106
VoLTE Voice call: VoLTE-voice-NS-mic-speaker both levels to 106
VoLTE Video call: VoLTE-video-NS-mic-speaker both levels to 106

Any suggestions are appreciated.
 

jdrch

Senior Member
Jun 18, 2014
400
177
73
Quad Cities, IA
Well everybody, as it has been asked many times now so i bring you the guide to increase the ""Microphone Gain"" on lollipop.
You will need to make some changes to the mixer_paths.xml content located in system/etc.
Open in Notepad++ or editor of choice and search for <path name="rec-main-mic">.
See below for what to edit,be careful not to adjust more than the value stated.
Save and set permissions to 644 or rw-r-r then reboot.

<!-- ================================================================>
<!-- Recording Scenario -->
<path name="rec-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="95" /> <------------- Increase Value to 106
</path>

<path name="rec-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="94" /> <------------- Increase Value to 106
</path>

<path name="rec-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="72" /> <------------- Increase Value to 106
</path>

<path name="rec-stereo-mic">
<ctl name="Main Mic Delay" value="4" />
<path name="sub-main-mic" />
<ctl name="DEC2 Volume" value="95" /> <------------- Increase Value to 106
<ctl name="DEC4 Volume" value="94" /> <------------- Increase Value to 106
</path>

<path name="rec-high-gain-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="87" /> <------------- Increase Value to 106
</path>

<path name="rec-high-gain-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="87" /> <------------- Increase Value to 106
</path>

<path name="rec-high-gain-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="84" /> <------------- Increase Value to 106
</path>

<path name="rec-high-gain-stereo-mic">
<path name="sub-3rd-mic" />
<ctl name="DEC2 Volume" value="87" /> <------------- Increase Value to 106
<ctl name="DEC4 Volume" value="87" /> <------------- Increase Value to 106
</path>

<path name="rec-NS-mic-interview">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="87" />
<ctl name="DEC4 Volume" value="87" />
<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="87" />
<ctl name="DEC4 Volume" value="87" />
<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="87" />
<ctl name="DEC4 Volume" value="87" />
</path>
<!-- end of Recording Scenario -->



You "WILL" have to reflash the mod after each ROM update

Hope this helps :good:

Downloads:

Attached At Bottom Of Post

Versions Explained:

10.x version is just a standard up-scaled mic and speaker gain..

11.x Same as 10.x but uses the internal speaker as well as loud speaker for sound playback :)


Credits to: @byte9 @stalli0nUK @langeveld024 @oetzi83
I think you might want to change the warning about needing to reflash after each ROM update as the .zip itself now says that's unnecessary?
 

username=0

Member
Feb 8, 2015
20
0
0
I have CM14.1 and my mixer_path has none of the lines in the OP. Can someone help me to increase mic sensitivity? I am really screaming while calling on whatsupp and viber
 

gunpuppy

New member
Aug 15, 2016
2
0
0
Yes but you will have to replace you main mic "ctl name" with that of your secondary mic :good:
For the noobs like me, will this change the mic it uses for phone calls to the mic for making videos? Because the mic for videos and everything else is clear and perfect while the other one is complete garbage. If so, how would I be able to change it?
 

Rendering

Senior Member
May 13, 2011
226
24
0
What is the entry to increase the volume of SIP VOIP calls? Please help me or I will be forced to buy a new phone
 
Last edited: