In line mic fix dump from Nexus 5 to Nexus 4 (file mixer_paths.xml) ? - Nexus 4 Q&A, Help & Troubleshooting

Hi all,
I would like to ask developers if it is possible to apply the mic gain fix released for n5 to the n4.
The fix changes the file linked below:
https://android.googlesource.com/device/lge/hammerhead/+/76d97e7.
Google is working on a similar fix but no eta released.
Thank you all and thanks to Jonas Karlsoon who discovered the file on Google products forum.
Sent from my Nexus 4 using Tapatalk

its possible but wrong section, 2 options, general section or q&a section!
Thread reported.
Regards,
OD

Hi!
If your phone is rooted, you can modify the headset microphone volume in the file /system/etc/mixer_paths.xml (see below).
I've done that on my Nexus 4 and it's working great.
If your phone is not rooted, I've published a patch on android source : https://android-review.googlesource.com/#/c/73711/
Hopefully someone at Google will see it and merge it for the next release => vote/comment it so that it gets attention!
/system/etc/mixer_paths.xml - before modification
=================================================
<path name="headset-mic">
<path name="adc2" />
<ctl name="ADC2 Volume" value="2" />
</path>
/system/etc/mixer_paths.xml - after modification
================================================
<path name="headset-mic">
<path name="adc2" />
<ctl name="ADC2 Volume" value="2" />
<ctl name="DEC8 Volume" value="99" />
</path>
Cheers,
--
Steph

Hi stephane! thank you for your patch! At the moment my phone is running completely stock android so I will vote for the patch. If in a couple of weeks google won't do anything I will root and use your mod!
stephane.rosi said:
Hi!
If your phone is rooted, you can modify the headset microphone volume in the file /system/etc/mixer_paths.xml (see below).
I've done that on my Nexus 4 and it's working great.
If your phone is not rooted, I've published a patch on android source : https://android-review.googlesource.com/#/c/73711/
Hopefully someone at Google will see it and merge it for the next release => vote/comment it so that it gets attention!
/system/etc/mixer_paths.xml - before modification
=================================================
<path name="headset-mic">
<path name="adc2" />
<ctl name="ADC2 Volume" value="2" />
</path>
/system/etc/mixer_paths.xml - after modification
================================================
<path name="headset-mic">
<path name="adc2" />
<ctl name="ADC2 Volume" value="2" />
<ctl name="DEC8 Volume" value="99" />
</path>
Cheers,
--
Steph
Click to expand...
Click to collapse

Related

[Q] [HOW TO] Boost Volume of a Rooted S5 G900H on 4.4.2

Hi all,
I have a S5 G900H rooted with Odin v3.0.7 and I would like to boost its volume.
I tried almost everything I found on forums but couldn't find any solution.
I've tried also to edit the "mixer_paths.xml" file but mine only has a few lines (see below).
Any other solutions?
Thanks
Complete source of "mixer_paths.xml":
<mixer>
<path name="SPK_enable">
<ctl name="SPK Switch" value="1" />
<ctl name="SPKOUTL Input 1" value="AIF1RX1" />
<ctl name="SPKOUTL Input 2" value="AIF1RX2" />
<ctl name="Speaker Digital Switch" value="1" />
</path>
<path name="MIC_enable">
<ctl name="Main Mic Switch" value="1" />
<ctl name="LHPF2 Input 1" value="IN1R" />
<ctl name="AIF2TX1 Input 1" value="ASRC1L" />
<ctl name="AIF2TX2 Input 1" value="ASRC1R" />
</path>
<!-- Playback paths -->
<path name="media-speaker">
<path name="SPK_enable" />
</path>
<path name="media-headphones">
<path name="SPK_enable" />
</path>
<path name="speaker-and-headphones">
<path name="SPK_enable" />
</path>
<path name="voice-rec-speaker">
<path name="SPK_enable" />
</path>
<path name="voice-rec-headphones">
<path name="SPK_enable" />
</path>
<path name="communication-speaker">
<path name="SPK_enable" />
</path>
<path name="communication-headphones">
<path name="SPK_enable" />
</path>
<path name="bt-sco-headset">
<path name="SPK_enable" />
</path>
<!-- Capture paths -->
<path name="main-mic">
<path name="MIC_enable" />
</path>
<path name="media-main-mic">
<path name="MIC_enable" />
</path>
<path name="media-second-mic">
<path name="MIC_enable" />
</path>
<path name="media-headset-mic">
<path name="MIC_enable" />
</path>
<path name="voice-rec-main-mic">
<path name="MIC_enable" />
</path>
<path name="voice-rec-headset-mic">
<path name="MIC_enable" />
</path>
<path name="communication-main-mic">
<path name="MIC_enable" />
</path>
<path name="communication-headset-mic">
<path name="MIC_enable" />
</path>
<path name="bt-sco-mic">
<path name="MIC_enable" />
</path>
</mixer>
Again…
Look for "Viper4Android"… You can found it on XDA.

[MOD][PORT][5.0+][v2.0] Xperia Z5 Premium Walkman™ | Modified From androidexpert35

hmm guys
nothing to explain more
this work of port is from @androidexpert35 (Thread)
i had noticed few changes
removed beta tag on sides
small updates with DSEE HX
small typo fix with updater scripts
Have fun guys
Click here to download
Flash it and reboot
And you need some manual work if you can
open system/etc/mixer_path.xml
in that look for this
Code:
<path name="compress-offload-playback transmission-fm">
<ctl name="INTERNAL_FM_RX Audio Mixer MultiMedia4" value="1" />
</path>
After that
add these lines and save
Code:
<path name="high-res-playback-dsee">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia10" value="1" />
</path>
<path name="high-res-playback-dsee speaker">
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia10" value="1" />
</path>
<path name="high-res-playback-dsee headphones-hi-res">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nc-headphone-hi-res">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nce-headphone-hi-res">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nc-off-headphone-hi-res">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nce-off-headphone-hi-res">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nc-headphone-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nc-headphone-hi-res-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nce-headphone-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nce-headphone-hi-res-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nc-off-headphone-hi-res-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee anc-nce-off-headphone-hi-res-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee headphones-hi-res-regulation">
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-and-headphones-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-anc-nc-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-anc-nce-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-anc-nc-off-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-anc-nce-off-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-ring-anc-nc-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-ring-anc-nce-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-ring-anc-nc-off-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
<path name="high-res-playback-dsee speaker-ring-anc-nce-off-headphone-hi-res">
<path name="high-res-playback-dsee speaker" />
<path name="high-res-playback-dsee" />
</path>
Done enjoy ( worked with xperia devices... not tested on other devices )
hi, i am already having Xtreme audio mod. can I install this mod too ??
jijishthomas said:
hi, i am already having Xtreme audio mod. can I install this mod too ??
Click to expand...
Click to collapse
Neither original port nor this work on LG G2 lollipop Rom.
I will check this out on LG G3 D855.
Does the mod support android 6.0?
I just flashed the mod on my Xperia Z1, and the result was...well, disasterous. Now my phone is completely silenced, unable to make any sound at all. Even the beep when changing volume was gone.
CAE_ said:
I just flashed the mod on my Xperia Z1, and the result was...well, disasterous. Now my phone is completely silenced, unable to make any sound at all. Even the beep when changing volume was gone.
Click to expand...
Click to collapse
U need to see audio.conf in etc folder (and in vendor folder)
Works on HTC M7 latest stock firmware. There was no system/etc/mixer_path.xml file so i created one, seems like it works too. The only question is. Do the bluetooth LDAC and aptX HD come with it?

Microphone issues

Hi, I have Galaxy S5 klte and Resurrection Remix 5.8.3 (latest version) installed but the microphone does not work correctly. I can record but when I listen to the recording the sound ist very quiet and unclear. How can I fix this problem? Thanks for help!
With my Phone on 6.0.0 at android 8.1.0 is exactly the same.
find mixer_paths.xml in /system/etc/ and modify the "Recording scenario" values to your needs
jizzy001 said:
find mixer_paths.xml in /system/etc/ and modify the "Recording scenario" values to your needs
Click to expand...
Click to collapse
Any examples?
fparri said:
Any examples?
Click to expand...
Click to collapse
The file can be located in /system/etc or /system/vendor/etc (in my case RR 6.0.0 - G900F)
open up the file and edit the values by your needs after editing save it,
set the permissions to -rw-r--r-- (644) and reboot your device
this is my modified version of the original file (just the microphone part)
the values are normaly aroud 85-93...and that is pretty low
Down below the bold values are the ones that should be modified
Code:
<!-- ================================================================ -->
<!-- Recording Scenario -->
<path name="rec-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="[B]115[/B]" />
</path>
<path name="rec-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<path name="rec-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="[B]92[/B]" />
</path>
<path name="rec-stereo-mic">
<ctl name="Main Mic Delay" value="4" />
<path name="sub-main-mic" />
<ctl name="DEC2 Volume" value="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<path name="rec-high-gain-main-mic">
<path name="main-mic" />
<ctl name="DEC2 Volume" value="[B]68[/B]" />
</path>
<path name="rec-high-gain-sub-mic">
<path name="sub-mic" />
<ctl name="DEC4 Volume" value="[B]68[/B]" />
</path>
<path name="rec-high-gain-headset-mic">
<path name="ear-mic" />
<ctl name="ADC2 Volume" value="14" />
<ctl name="DEC5 Volume" value="[B]84[/B]" />
</path>
<path name="rec-high-gain-stereo-mic">
<path name="sub-3rd-mic" />
<ctl name="DEC2 Volume" value="[B]72[/B]" />
<ctl name="DEC4 Volume" value="[B]72[/B]" />
</path>
<path name="rec-NS-mic-interview">
<ctl name="ES705 TX1 Enable" value="1" />
<path name="main-sub-mic" />
<ctl name="DEC2 Volume" value="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
<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="[B]112[/B]" />
<ctl name="DEC4 Volume" value="[B]112[/B]" />
<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="[B]110[/B]" />
<ctl name="DEC4 Volume" value="[B]110[/B]" />
</path>
<!-- end of Recording Scenario -->
<!-- ================================================================ -->
Thanks a lot! I've bookmarked your reply. I'm going to try that tonight at home
fparri said:
Thanks a lot! I've bookmarked your reply. I'm going to try that tonight at home
Click to expand...
Click to collapse
Report if it works
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
---------- Post added at 11:54 PM ---------- Previous post was at 11:30 PM ----------
swppy said:
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
Click to expand...
Click to collapse
@jizzy001
jizzy001 said:
The file can be located in /system/etc or /system/vendor/etc (in my case RR 6.0.0 - G900F)
open up the file and edit the values by your needs after editing save it,
set the permissions to -rw-r--r-- (644) and reboot your device
this is my modified version of the original file (just the microphone part)
the values are normaly aroud 85-93...and that is pretty low
Down below the bold values are the ones that should be modified
Click to expand...
Click to collapse
I've got the same problem on an Galaxy S5 (SM-G900W8 ) with crDroid. I think both ROMs come from Lineage OS and although I haven't tried it I'll bet Lineage 15.1 has the same problem.
I'd like to give it a try, but I can't seem to modify the file. I mixer_paths.xml in /system/vendor/etc, but when I try to edit it I get a message that it's a read only file system.
Permissions on the directories look OK:
/system 755
/system/vendor/ 755
/system/vendor/etc 755
I also tried to create a file with "touch" in /system/vendor/etc and that failed-confirming the whole directory can not be written. Can someone please tell me what I'm doing wrong.
rootkitty said:
I've got the same problem on an Galaxy S5 (SM-G900W8 ) with crDroid. I think both ROMs come from Lineage OS and although I haven't tried it I'll bet Lineage 15.1 has the same problem.
I'd like to give it a try, but I can't seem to modify the file. I mixer_paths.xml in /system/vendor/etc, but when I try to edit it I get a message that it's a read only file system.
Permissions on the directories look OK:
/system 755
/system/vendor/ 755
/system/vendor/etc 755
I also tried to create a file with "touch" in /system/vendor/etc and that failed-confirming the whole directory can not be written. Can someone please tell me what I'm doing wrong.
Click to expand...
Click to collapse
Just mount the system partition R/W find some tutorial or app how to mount it
swppy said:
I have the same problem in s5 G900H but i cant find recording scenario in it. Would u plz help me
---------- Post added at 11:54 PM ---------- Previous post was at 11:30 PM ----------
@jizzy001
Click to expand...
Click to collapse
Can you send me the whole file or paste iz somewhere?
jizzy001 said:
Just mount the system partition R/W find some tutorial or app how to mount it
Can you send me the whole file or paste iz somewhere?
Click to expand...
Click to collapse
Im not able to snd it through this way would you give ur email address ???
swppy said:
Im not able to snd it through this way would you give ur email address ???
Click to expand...
Click to collapse
[email protected]
Sent from my SM-G900F using Tapatalk
jizzy001 said:
[email protected]
Click to expand...
Click to collapse
Plz check ur email bruh

x722's mixer_paths_tesha.xml edit to boost headphones volume

I want to give some more power to usb and bluetooth headphones. I've read that I can do it by editing mixer.paths file, but I couldn't find tutorial matching to my file. Can someone help me, by editing my file or give me own files (edited and original). I have le pro 3 x722 with paranoid 7.3.1 (nougat)
ctl name="RX1 Digital Volume" value="99" />. org. 84
<ctl name="RX2 Digital Volume" value="99" />
<ctl name="ANC HPHL Enable Switch" value="1" />
<ctl name="ANC HPHR Enable Switch" value="1" />
<ctl name="HPHL Volume" value="35" /> org. 20
<ctl name="HPHR Volume" value="35" />
This is my config, and its work. I changed All 3 paths with "headphones" in name

How to increase (boost) only in-call (handset) volume on samsung stock rom

Hello friends
My question is how can I boost the in-call (handset) volume by editing mixer.paths.xmls file.
I can successfully boosted speaker and headset volume as I show below, but question is related with increasing the volume while calling someone.
I am j700f MM user with root and custom stock samsung MM rom.
I am waiting for your suggestions.
Thanks in advance
For speaker boost I changed 3 with 5 or 6
<path name="gain-media-speaker">
<ctl name="S2801 MIX1_LVL" value="0" />
<ctl name="DAC Gain" value="121" />
<ctl name="Speaker Volume" value="3" />
</path>
For headset boost I changed 36 with 39 or 39
<path name="gain-media-headset">
<ctl name="S2801 MIX1_LVL" value="0" />
<ctl name="DAC Gain" value="121" />
<ctl name="Headphone Volume" value="36" />vido36-38
</path>

Categories

Resources