I'm writing this because I searched many times with google, but I haven't found literally anywhere how to do it, not even a hint.
Everything as ROOT.
First I used the command tinymix, I found the parameter 233 is the right one:
233 INT 1 AIF1TX1 Input 1 Volume 0
"tinymix 233" gives the current value: 32
Then I played with the values, to increase from the default 32:
tinymix 233 36
Something between 36 and 38 looks good to me,
so to make the change permanent I edited /system/etc/mixer_paths_wcd9306.xml
from line 869:
<path name="voice-speaker">
<path name="speaker" />
</path>
became:
<path name="voice-speaker">
<path name="speaker" />
<ctl name="AIF1TX1 Input 1 Volume" value="36" />
</path>
As far as I understand, by default "voice-speaker" inherits "speaker" values; with the added line I override the default, but only for the speakerphone, leaving the other defaults unchanged.
And since I was already playing with mixer_paths, I fixed another problem I've had for years, LOL
Moto Z Play has 3 microphones, but when recording videos the camcorder app uses the front facing one, the same you use on a phone call.
The camcorder app should use the rear mic, catching sounds coming from the scene you are recording.
From my tests, mic1 is the default front mic, mic2 is the upper mic, mic3 is the rear mic.
So, look around line 930
<path name="camcorder-mic">
<path name="speaker-mic" />
</path>
speaker-mic is prevoiusly defined as mic1, but I want mic3:
<path name="camcorder-mic">
<path name="mic3" />
</path>
Hello members of the forum! Tell me please, help or rather with the problem: when you call and turn on the speakerphone, the interlocutor practically does not hear me or the sound just gurgles. Where to dig? Which file to open and make changes?
Thanks in advance.
Related
The max volume on op5t through headphones or bluetooth speakers is not quiet as loud as my previous phones was. I tried several sound apps from playstore but nothing worked. A few years back on my samsung s4 i was able to edit some kind of volume file in system to increase the volume.
Does anyone know apps/modules or a way to modify this "volume" file?
Use a root explorer to open system/etc/mixer_paths_tasha.xml and look towards the bottom for the following.
Code:
<path name="headphones">
<ctl name="SLIM RX2 MUX" value="AIF4_PB" />
<ctl name="SLIM RX3 MUX" value="AIF4_PB" />
<ctl name="SLIM_6_RX Channels" value="Two" />
<!-- #ifdef VENDOR_EDIT-->
<!-- [email protected],2017/3/14,use 24bits to get rid of 16bits innate noise -->
<ctl name="SLIM_6_RX Format" value="S24_LE" />
<!-- #endif VENDOR_EDIT-->
<ctl name= "RX INT1_2 MUX" value="RX2" />
<ctl name= "RX INT2_2 MUX" value="RX3" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX1 Mix Digital Volume" value="78" />
<ctl name="RX2 Mix Digital Volume" value="78" />
</path>
Change the RX1 and RX2 Mix Digital values to your liking. I have mine set at 84 and have not tested higher because there is no need. I love volume and it is more than ample for me.
....or you could just flash a custom kernel that supports sound control and make the necessary adjustments that way. These work for wired headphones, not bluetooth.
One thing to remember, anytime you flash an update you will have to go back and edit the mixer_paths_tasha.xml
Dazed No More said:
Use a root explorer to open system/etc/mixer_paths_tasha.xml and look towards the bottom for the following.
Change the RX1 and RX2 Mix Digital values to your liking. I have mine set at 84 and have not tested higher because there is no need. I love volume and it is more than ample for me.
....or you could just flash a custom kernel that supports sound control and make the necessary adjustments that way. These work for wired headphones, not bluetooth.
One thing to remember, anytime you flash an update you will have to go back and edit the mixer_paths_tasha.xml
Click to expand...
Click to collapse
In oos ob2 there isnt such file.. does it have an other Method?
janis_dschi said:
In oos ob2 there isnt such file.. does it have an other Method?
Click to expand...
Click to collapse
Im not familiar with OB2 but the 8.1 custom roms all have that file in /vendor/etc, try there. If not you can flash a kernel that has sound control and use a kernel manager to increase the headphone gain.
Dazed No More said:
Im not familiar with OB2 but the 8.1 custom roms all have that file in /vendor/etc, try there. If not you can flash a kernel that has sound control and use a kernel manager to increase the headphone gain.
Click to expand...
Click to collapse
When i edit mixer_paths_tasha.xml on codename phoenix 8.1 rom it doesnt work. But on aicp 8.1 it works?? Do you have any clue why?
janis_dschi said:
When i edit mixer_paths_tasha.xml on codename phoenix 8.1 rom it doesnt work. But on aicp 8.1 it works?? Do you have any clue why?
Click to expand...
Click to collapse
It should work. You might have to mount vendor or root directory "/" to RW, I had to do this on the unofficial RR in order to save the file. On Codename Phoenix have you checked the values to see fi they did indeed save as what you changed them to?
It works but the volume steps that are added arent increasing the volume. 1/4 of the last steps are the same volume. I also have a custom kernel with volume support but this doesnt help on Bluetooth devices.. do you know any bluetooth increaser or a file to edit bluetooth volume?
I checked several times. It saved
any help with this? I checked this and did it but haven't helped... in my case the audio is fine some times, but other times, especially after i get a call or instagram plays audio, the audio of my phone decides to be incredibly low and I have no idea how to fix it... restarting the phone does nothing
My Mic sensitivity is too low.
I spent too much efforts googling around for the solution without success, so I did it myself:
I'm trying out LineageOS now, but this could be applicable to other roms as well.
BEWARE, I don't know if this breaks something else !
Default values are 18, the maximum is 31, I set 25 and as far as I tested it, the person on the other end can hear me much better, recording app volume is higher, etc)
For a temporary solution, in Terminal Emulator I used tinymix:
su -l
tinymix (prints out all the parameters, I have IN1L at 25)
tinymix 25 (prints out the current value of the parameter 25, as well as its range (0-31))
then I set all 3 of them:
tinymix 25 25
tinymix 26 25
tinymix 27 25
For the permanent solution I modified /system/etc/mixer_paths_wcd9306.xml (as root, and after remounting /system in rw mode)
old values:
<ctl name="IN1L Volume" value="18" />
<ctl name="IN1R Volume" value="18" />
<ctl name="IN2L Volume" value="18" />
new values:
<ctl name="IN1L Volume" value="25" />
<ctl name="IN1R Volume" value="25" />
<ctl name="IN2L Volume" value="25" />
be careful to keep permission 644 and root:root as owner:group
Safe?
SupahCookie said:
Safe?
Click to expand...
Click to collapse
I can't tell, and I didn't dig through any of the source code, but as far as I know when audio is concerned, usually there are potential problems when dealing with the outputs and excessive currents to the speakers. But here we are dealing with a microphone, so the worse that can happen in my opinion is introducing a little distortion when I'm screaming near the mic.
I also played with IN1L Digital Volumes which also work (parameters from 35 to 38, default values 128, max values ~199)
But now I'm wondering: doesn't this phone have 3 microphones ?
I have only 1 mic working in Lineageos... when taking Videos, the audio is taken from the front mic. What the heck ?
Rob2800 said:
My Mic sensitivity is too low.
I spent too much efforts googling around for the solution without success, so I did it myself:
I'm trying out LineageOS now, but this could be applicable to other roms as well.
BEWARE, I don't know if this breaks something else !
Default values are 18, the maximum is 31, I set 25 and as far as I tested it, the person on the other end can hear me much better, recording app volume is higher, etc)
For a temporary solution, in Terminal Emulator I used tinymix:
su -l
tinymix (prints out all the parameters, I have IN1L at 25)
tinymix 25 (prints out the current value of the parameter 25, as well as its range (0-31))
then I set all 3 of them:
tinymix 25 25
tinymix 26 25
tinymix 27 25
For the permanent solution I modified /system/etc/mixer_paths_wcd9306.xml (as root, and after remounting /system in rw mode)
old values:
<ctl name="IN1L Volume" value="18" />
<ctl name="IN1R Volume" value="18" />
<ctl name="IN2L Volume" value="18" />
new values:
<ctl name="IN1L Volume" value="25" />
<ctl name="IN1R Volume" value="25" />
<ctl name="IN2L Volume" value="25" />
be careful to keep permission 644 and root:root as owner:group
Click to expand...
Click to collapse
Can't I find the route something is wrong?
Firstly, thanks to the person/persons who discovered this little mod and shared it with others. Am sharing this here and on the MODS page as not sure which is the right one.
For me one of the most important things about a phone is the in call quality and volume.. I've always had this particular problem with most phones I used, except the classic and honorable BB Z30 which probably still has the best in call quality (my own opinion) . Even custom ROM's (I've tried many) have never addressed this issue so in case anyone still uses the Redmi 5 Plus and are not aware, I'd like to share a fix I found elsewhere and edited to my liking. My daily driver is the Xenon HD ROM (to me the best ROM I've ever used on any phone that it was developed for) with Android Pie but it might also work on Oreo.
The normal mono speaker on this phone is the best I've experienced, aside from Samsung S6 Edge Plus and although the in call speaker is fine it does not quite reach the volume I desire so below is the edited part of the 'mixer_paths_mtp.xml' found on /SYSTEM/VENDOR/ETC'. You'll find it towards the bottom of the file.
<path name="handset">
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RDAC2 MUX" value="RX1" />
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="EAR PA Gain" value="POS_8_DB" />
<ctl name="EAR_S" value="Switch" />
</path>
The lines that are important are:
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="EAR PA Gain" value="POS_8_DB" />
So after various attempts I found the optimum levels for me (RX1 Digital Volume Value=92 & EAR PA Gain value=8) Not all ears are the same so you may need to edit to your liking.
Hope this helps anyone out there
This is the thread where I found the suggested fix:
https://forum.xda-developers.com/mi...earpiece-speaker-volume-xiaomi-t3797082/page2
Firstly, thanks to the person/persons who discovered this little mod and shared it with others. Am sharing this here and on the DISCUSSION page as not sure which is the right one.
For me one of the most important things about a phone is the in call quality and volume.. I've always had this particular problem with most phones I used, except the classic and honorable BB Z30 which probably still has the best in call quality (my own opinion) . Even custom ROM's (I've tried many) have never addressed this issue so in case anyone still uses the Redmi 5 Plus and are not aware, I'd like to share a fix I found elsewhere and edited to my liking. My daily driver is the Xenon HD ROM (to me the best ROM I've ever used on any phone that it was developed for) with Android Pie but it might also work on Oreo.
The normal mono speaker on this phone is the best I've experienced, aside from Samsung S6 Edge Plus and although the in call speaker is fine it does not quite reach the volume I desire so below is the edited part of the 'mixer_paths_mtp.xml' found on /SYSTEM/VENDOR/ETC'. You'll find it towards the bottom of the file.
<path name="handset">
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RDAC2 MUX" value="RX1" />
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="EAR PA Gain" value="POS_8_DB" />
<ctl name="EAR_S" value="Switch" />
</path>
The lines that are important are:
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="EAR PA Gain" value="POS_8_DB" />
So after various attempts I found the optimum levels for me (RX1 Digital Volume Value=92 & EAR PA Gain value=8) Not all ears are the same so you may need to edit to your liking.
Hope this helps anyone out there
This is the thread where I found the suggested fix:
https://forum.xda-developers.com/mi...earpiece-speaker-volume-xiaomi-t3797082/page2
After changes set permssion 755 and flash latest fw ...reboot
Can you tell me what and where exactly I have to set the 755 permissions and what is fw ...reboot and can you please give a link of the file. Thanks.
Hi,
The incall volume on the handset (earpiece volume) is very low after Pie update so I created a Magisk module to fix this.
I'm sharing it here.
What I did:
In all the mixer_paths....xml files from \system\vendor\etc I changed:
<mixer>
"RX1 Digital Volume" value="84" to 96
<path name="handset">
"RX1 Digital Volume" value="84" /> to 96
"EAR PA Gain" value="POS_8_DB" to POS_8_DB
Note: modding only mixer_paths.xml didn't work so I modified all the mixer_paths files...and it worked:
mixer_paths.xml
mixer_paths_mtp.xml
mixer_paths_mtp_global.xml
mixer_paths_qrd_sku3.xml
mixer_paths_qrd_skuh.xml
mixer_paths_qrd_skuhf.xml
mixer_paths_qrd_skui.xml
mixer_paths_qrd_skum.xml
mixer_paths_qrd_skun.xml
mixer_paths_skuk.xml
mixer_paths_wcd9306.xml
mixer_paths_wcd9326.xml
mixer_paths_wcd9330.xml
mixer_paths_wcd9335.xml
PS: Tested on latest Pie v10.0.16.0.
Thank You ❤
So does this only increase the volume of calls during headset or from the device itself? Sorry, I'm not sure about this.
Is increasing the phone earpiece volume during cals.
mbgheban said:
<mixer>
"RX1 Digital Volume" value="84" to 96
<path name="handset">
"RX1 Digital Volume" value="84" /> to 96
"EAR PA Gain" value="POS_8_DB" to POS_8_DB
Click to expand...
Click to collapse
Thank you mbgheban
I was looking for a way to boost the mic volume system-wide, so I piggy-backed off your tweaks and set all my "RX* Digital Volume" values to 96, and all my "DEC* Volume" values to 96 too under <mixer>. It'll probably distort loud sounds like I had with my Redmi 2, but I personally find it a worthwhile compromise.
EDIT: Sorry, actually misunderstood original intention of your mod. Sorry for semi-hijacking your thread. By the way, the correct XML is mixer_paths_mtp_global.xml (at least, it is in my case, running stock ROM v10.0.17)