[Xiaomi Redmi 5 Guides, News, & Discussion] MrDavidVeiga:
Hello guys! This is my first tutorial here and I hope to bring more to help y'all in what I can do.Well, I tried many tutorials before, but nothing happened. So I tried changing and adding

fluence

values into

build.prop

. So I did it and then I followed the steps by Robse. I got a good result, but the Instagram camera wasn't affected and I had some issues with WhatsApp voice clip using my earphones. So I found the solution by

chdloc

and I replace the first step by

Robse

. I didn't add any values on build.prop anymore after that.

First of all you need:

*Redmi 5 (Rosy) rooted

*Es File Explorer (or any app to explore and edit internal files)

P.s.: Do a backup of these files before you edit, okay?

------- Disabled the noise cancellation -------

1 - Go to /system/etc and:

[IMG="1"]http://attach.en.miui.com/forum/201810/20/065557qrtz4foq6r2zgfrg.png.thumb.jpg[/IMG] [IMG="2"]http://attach.en.miui.com/forum/201810/20/065758u6bjjmb4czlck14m.png.thumb.jpg[/IMG]

open audio_plataform_info.xml, find the line <device name="SND_DEVICE_IN_CAMCORDER_MIC" acdb_id="4"/> and change the value to 89. Save and exit.

------- Increase the bit rate -------

(This step is for a good audio quality in your videos.)

2 - Back to /system/etc folder again and:

[IMG="3"]http://attach.en.miui.com/forum/201810/20/065640h7ov9s9q0s9nz9zv.png.thumb.jpg[/IMG] [IMG="4"]http://attach.en.miui.com/forum/201810/20/070033sd8uk7ukdgzgg2f7.png.thumb.jpg[/IMG]

open media_profiles.xml and find the line <AudioEncoderCap name = "aac" enabled = "true" then change the value

96000

to

128000

or

156000

.

------- Increase the volume for recorded videos -------

(Your videos will get a low volume after the step 2. So the third step is to increase the volume when recording your videos.)

3 - Still in /system/etc folder:

open mixer_paths_mtp.xml and find these lines

<Path name="handset-mic">

<Path name="adc1" />

[IMG="5"]http://attach.en.miui.com/forum/201810/20/065646i7u97iu3j3zge3ci.png.thumb.jpg[/IMG] [IMG="6"]http://attach.en.miui.com/forum/201810/20/070627ewp44kw39h4ka4qp.png.thumb.jpg[/IMG] [IMG="7"]http://attach.en.miui.com/forum/201810/20/072936di66umul1myl1mij.png.thumb.jpg[/IMG]

and

below

<ctl name="MI2S_TX Channels" value="Two" /> add these lines :

<ctl name="DEC1 Volume" value="96" />

<ctl name="DEC2 Volume" value="96" />

3.1 - Still into mixer_paths_mtp.xml find the line

<Path name = "handset-stereo-dmic-ef">

<Path name = "speaker-dmic-endfire" />

</ Path>

[IMG="8"]http://attach.en.miui.com/forum/201810/20/070710jkr8zxr06ne1j7fx.png.thumb.jpg[/IMG] [IMG="9"]http://attach.en.miui.com/forum/201810/20/072513m999p1qa9da9h8t2.png.thumb.jpg[/IMG]

and

above

</ Path> add these lines:

<ctl name="DEC1 Volume" value="96" />

<ctl name="DEC2 Volume" value="96" />

-----------------------------------------------------------------------------

I hope to help y'all. If you have some issues, let me know.

Credits to:

chdloc (https://xdaforums.com/showpost.php?p=68378869&postcount=1139) for showing which line could change the value and disabled noise cancellation.

Robse (http://4pda.ru/forum/index.php?showtopic=793497&st=360#entry57205432) for teaching how we could increase the volume and bit rate.

If you publish in another place, please credit

me

with

chdloc

and

Robse

, okay? I fixed the problem mixing their solution.