(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
@j1gga84 my friend, thank you for your concern over my well-being and the email and PM did not go unnoticed I was just not in a position to reply at the time. I hope you are well and ready to flash a new update :)

Lets celebrate :) here are the updates i promised before i was ill.

all the changes from the xx.8 test builds merged, tweaked and optimized
xml files compressed for minimal file size
MOD will now survive ROM upgrades unless you "WIPE SYSTEM"
Lowered a few values to reduce reported distortion.
 

Reechings

Senior Member
Jan 22, 2012
5,089
1,261
253
@j1gga84 my friend, thank you for your concern over my well-being and the email and PM did not go unnoticed I was just not in a position to reply at the time. I hope you are well and ready to flash a new update :)

Lets celebrate :) here are the updates i promised before i was ill.

all the changes from the xx.8 test builds merged, tweaked and optimized
xml files compressed for minimal file size
MOD will now survive ROM upgrades unless you "WIPE SYSTEM"
Lowered a few values to reduce reported distortion.
Link for 10.9 points to 11.9 ?
 

PeanutBR

Senior Member
Mar 5, 2014
276
77
0
São Paulo
try this:
http://forum.xda-developers.com/galaxy-s5/general/mic-volume-gain-mod-s5-t3491483

---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------



try http://forum.xda-developers.com/galaxy-s5/general/mic-volume-gain-mod-s5-t3491483
but then explain there what is "bad quality" (in portuguese, if you want.. lol)
Amigo desde já muito obrigado! O problema é que em lugares que tem muito barulho ou um som um pouco alto a qualidade do som fica meio "estourada". E antes dos mods não tinha esse problema.

Assim que eu efetuar o teste te passo atualizações sobre!
 

j1gga84

Senior Member
Jun 21, 2012
4,585
2,721
253
Bremen
www.android-hilfe.de
@thejester123

New Update is very good, thanks for that :)
What I observed is that the audio of video recording is overdriven and too loud. When you record a video without saying something you also hear a background noise..
I am on ResurrectionRemix 5.7.4 which is based on CM13.0, what could be the reason for that?

Regards

Gesendet von meinem SM-G900F mit Tapatalk
 
  • Like
Reactions: thejester123

bilbonotry

Senior Member
Aug 21, 2008
484
160
0
Guys I am back and feeling much better, now firstly I apologize for my illness keeping me away for a while but I will be on my laptop tomorrow updating all the files and uploading new builds :)
Great news ! Was fearing a bad outcome like with spirit FM dev. Good to read from you.
No need to apologise for being ill :)
 
  • Like
Reactions: thejester123

andreoide

Senior Member
Mar 5, 2013
1,781
264
113
Enschede
@j1gga84 my friend, thank you for your concern over my well-being and the email and PM did not go unnoticed I was just not in a position to reply at the time. I hope you are well and ready to flash a new update :)

Lets celebrate :) here are the updates i promised before i was ill.

all the changes from the xx.8 test builds merged, tweaked and optimized
xml files compressed for minimal file size
MOD will now survive ROM upgrades unless you "WIPE SYSTEM"
Lowered a few values to reduce reported distortion.
Hi
I think there is a little problem:
I have the sm-g901f phone and was on the 11.6 (g901f)-mod.
I flashed back to stock (g901f) and speachrecorder was working like stock.
Than flashed the mic gain 10.9 and after reboot I could not make recording any more. (Even when back in twrp and flashed back to stock (g901f) it did not work. So I had to restore the whole system backup from last night.
But now I only want the mic gain mod like it was before 11.6 wich worked before.
Is the 10.9 for g901f also? I don't think so because of the problem above I encountered?
Please look in to this...
Thank you in advance [emoji106]
this is the app wich did not work any more (app started but pressing record did not do anything)

Sent from my SM-G901F using XDA-Developers mobile app
 

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
Hi
I think there is a little problem:
I have the sm-g901f phone and was on the 11.6 (g901f)-mod.
I flashed back to stock (g901f) and speachrecorder was working like stock.
Than flashed the mic gain 10.9 and after reboot I could not make recording any more. (Even when back in twrp and flashed back to stock (g901f) it did not work. So I had to restore the whole system backup from last night.
But now I only want the mic gain mod like it was before 11.6 wich worked before.
Is the 10.9 for g901f also? I don't think so because of the problem above I encountered?
Please look in to this...
Thank you in advance [emoji106]
this is the app wich did not work any more (app started but pressing record did not do anything)
The file for g901f is labeled in the OP my friend, it has not been updated as there have been no reported issues
 

andreoide

Senior Member
Mar 5, 2013
1,781
264
113
Enschede
The file for g901f is labeled in the OP my friend, it has not been updated as there have been no reported issues
Hi thejester123
Thnx for replay so quick.
But see #392 here. At that time I used the 10.x
In OP there is no special g901f file for 10.x therefor I asked...
Anyway it works again used 11.x g901f
And if I only want mic gain mod I can use your back-to-stock g901f and do the trick manually like discribed in OP.
I think your mod is one of the most best because factory setting for mic is too low. With this mod the g901f is like it should have been from factory Samsung [emoji6]
Thnx for this mod!!! [emoji106] [emoji111]


Sent from my SM-G901F using XDA-Developers mobile app
 

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
Hi thejester123
Thnx for replay so quick.
But see #392 here. At that time I used the 10.x
In OP there is no special g901f file for 10.x therefor I asked...
Anyway it works again used 11.x g901f
And if I only want mic gain mod I can use your back-to-stock g901f and do the trick manually like discribed in OP.
I think your mod is one of the most best because factory setting for mic is too low. With this mod the g901f is like it should have been from factory Samsung [emoji6]
Thnx for this mod!!! [emoji106] [emoji111]
No your model has a different file structure so the guide will not work for you. I will take a look and do just a MIC Gain for your device variant :good:
 
Last edited:
  • Like
Reactions: andreoide

j1gga84

Senior Member
Jun 21, 2012
4,585
2,721
253
Bremen
www.android-hilfe.de
@thejester123

New Update is very good, thanks for that :)
What I observed is that the audio of video recording is overdriven and too loud. When you record a video without saying something you also hear a background noise..
I am on ResurrectionRemix 5.7.4 which is based on CM13.0, what could be the reason for that?

Regards

Gesendet von meinem SM-G900F mit Tapatalk
@thejester123

Any idea for the overdriven audio in video recording? Could it be related to your mod or is this a ResurrectionRemix or CM issue?

Regards

Gesendet von meinem SM-G900F mit Tapatalk
 

andreoide

Senior Member
Mar 5, 2013
1,781
264
113
Enschede
@thejester123

Any idea for the overdriven audio in video recording? Could it be related to your mod or is this a ResurrectionRemix or CM issue?

Regards

Gesendet von meinem SM-G900F mit Tapatalk
It is the hardware (yes your microphone)
I suggest you read the OP and adjust manually where you read in red value 106 to change all to 95 or 98 and check if the noise in background has gone or is lower?

Thejesters' mod alters not the hardware but turns wide open the recording volume.
If you make no sound while recording than you get this noise because recording volume is set to "high"...
But.... Im not the one you asked the question to, maybe Thejester has more information for you...
And Do not forget the golden rule to backup your system before altering anything. It saved my @SS yesterday too!
[emoji111]

Sent from my SM-G901F using XDA-Developers mobile app
 
Last edited:

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
It is the hardware (yes your microphone)
I suggest you read the OP and adjust manually where you read in red value 106 to change all to 95 or 98 and check if the noise in background has gone or is lower?

Thejesters' mod alters not the hardware but turns wide open the recording volume.
If you make no sound while recording than you get this noise because recording volume is set to "high"...
But.... Im not the one you asked the question to, maybe Thejester has more information for you...
And Do not forget the golden rule to backup your system before altering anything. It saved my @SS yesterday too!
[emoji111]
I do agree but the values you suggest are almost stock, therefore the volume on the recording will be too low but there are a few things i have learnt whilst adjusting this mod so i will take a look at modifying the software codecs
 

dura652

New member
Dec 25, 2014
3
0
0
Wonderful mod. I stumbled to this thread looking for solution for my 910t. The mixer_paths.xml looks almost the same as for S5 Variant.
My question is which values control microphone volume only in call phone calls?
People don't hear me very well when i hold my phone close to ear. But they hear me very well when the phone is on speakerphone.

By looking at post #391 below I pasted my code from mixer_paths.xml. If I read this correctly during in phone calls the "call-main-sub-3rd-mic" is in use not "main-sub-mic" ?
Code:
	<!-- TX part -->
	<path name="voice-call-main-mic">
		<ctl name="ES705 TX1 Enable" value="1" />
		<path name="call-main-sub-3rd-mic" />
		<ctl name="DEC2 Volume" value="93" />
		<ctl name="DEC4 Volume" value="93" />
		<ctl name="DEC6 Volume" value="93" />
		<ctl name="ES705-AP Tx Channels" value="Three" />
		<ctl name="Internal Route Config" value="4" />
	</path>

	<path name="voice-call-sub-mic">
		<ctl name="ES705 TX1 Enable" value="1" />
		<path name="call-sub-main-3rd-mic" />
		<ctl name="DEC4 Volume" value="93" />
		<ctl name="DEC2 Volume" value="93" />
		<ctl name="DEC6 Volume" value="93" />
		<ctl name="ES705-AP Tx Channels" value="Three" />
		<ctl name="Internal Route Config" value="3" />
	</path>
 
Last edited:

thejester123

Senior Member
Apr 18, 2011
686
609
0
Sheffield
Wonderful mod. I stumbled to this thread looking for solution for my 910t. The mixer_paths.xml looks almost the same as for S5 Variant.
My question is which values control microphone volume only in call phone calls?
People don't hear me very well when i hold my phone close to ear. But they hear me very well when the phone is on speakerphone.

By looking at post #391 below I pasted my code from mixer_paths.xml. If I read this correctly during in phone calls the "call-main-sub-3rd-mic" is in use not "main-sub-mic" ?
Code:
	<!-- TX part -->
	<path name="voice-call-main-mic">
		<ctl name="ES705 TX1 Enable" value="1" />
		<path name="call-main-sub-3rd-mic" />
		<ctl name="DEC2 Volume" value="93" />
		<ctl name="DEC4 Volume" value="93" />
		<ctl name="DEC6 Volume" value="93" />
		<ctl name="ES705-AP Tx Channels" value="Three" />
		<ctl name="Internal Route Config" value="4" />
	</path>

	<path name="voice-call-sub-mic">
		<ctl name="ES705 TX1 Enable" value="1" />
		<path name="call-sub-main-3rd-mic" />
		<ctl name="DEC4 Volume" value="93" />
		<ctl name="DEC2 Volume" value="93" />
		<ctl name="DEC6 Volume" value="93" />
		<ctl name="ES705-AP Tx Channels" value="Three" />
		<ctl name="Internal Route Config" value="3" />
	</path>
all you need to do is increase all the values at 93 in both paths gradually and test after each increase :good:
 

praveensk.rcb

Senior Member
Apr 13, 2014
90
29
0
Berlin
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

Is there any way make the secondary mic as primary mic? My primary mic is damaged and my secondary mic works fine when used in loudspeaker made during calls.