Request : Mixer_paths stereo surround mod - LG G Flex 2

Hi there!
I've bought a Lg G flex 2 for a good price to replace my faulty nexus 5. On my old phone i've had used a mod that enabled stereo sound using the earpiece as a left speaker and my main speaker as the right one and loved that!
After searching on the internet i found out that that mod was enabled on various phone models but not on flex 2
So, i'm asking if anyone could try to make this mod on this phone, since i don't know how to do it ( just know that i have to replace the mixer_paths.xml file).
Thanks in advance
Nexus 5
http://forum.xda-developers.com/google-nexus-5/themes-apps/mod-surround-sound-t2964809
Samsung GS5
http://forum.xda-developers.com/tmobile-galaxy-s5/themes-apps/gs5-surround-sound-mod-t2984303
LG G2
http://forum.xda-developers.com/lg-g2/development/true-stereo-mod-lg-g2-t2989287

Bump

Well, I took the plunge and edited myself my mixer_paths.xml file and achieved stereo sound on my G flex 2.
If anyone want to try it and enchance the settings just download the file and use the instructions here :
http://forum.xda-developers.com/lg-g3/themes-apps/g3-t2936465
Please share your experiences and i'm not responsible for any damage to your speakers.

Can you explain a bit more detalled what is the improvement in our Flex 2 using this mod?
Thanks!

francescrm said:
Can you explain a bit more detalled what is the improvement in our Flex 2 using this mod?
Thanks!
Click to expand...
Click to collapse
This mod enables the earpiece as a left speaker and the loudspeaker as a right speaker so that you can listen to stereo sound instead of mono sound with your flex.

It didn't work in my device {Rooted H955 v 15c}, even LG's music player stopped working, just for your info, i had to go back to stock xml file.
Edit, tried again and it seems to be working now, I had to change permissions, now it looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Can you record video how is playing?

Is there any way to adjust the balance? The speaker on the back is much louder than the front so it sounds off
Nevermind, i figured it out, if anyone else has this problem open your edited mixer path, find this:
<!-- Start LGE Mono Speaker -->
<path name="speaker">
slightly under that is
<ctl name="RX7 Digital Volume" value="79" />
lowering this number makes the left side louder - raising this number makes the right side louder
i found 72-73 gives the best balance depending on your preference

tehargonaut said:
Is there any way to adjust the balance? The speaker on the back is much louder than the front so it sounds off
Click to expand...
Click to collapse
Yes, you have to edit the mixer_paths.xml file. Go to the " <path name="speaker">" and search for the lines :
<ctl name="RX7 Digital Volume" value="79" />
<ctl name="RX1 Digital Volume" value="88" />
The "rx7" is the volume of the louspeaker and the "rx1" is the volume of the earspeaker, so you just have to change thoses values at will
Edit: Also, as francescrm said, you have to change permissions to the file like that.

sslmm said:
Yes, you have to edit the mixer_paths.xml file. Go to the " <path name="speaker">" and search for the lines :
<ctl name="RX7 Digital Volume" value="79" />
<ctl name="RX1 Digital Volume" value="88" />
The "rx7" is the volume of the louspeaker and the "rx1" is the volume of the earspeaker, so you just have to change thoses values at will
Edit: Also, as francescrm said, you have to change permissions to the file like that.
Click to expand...
Click to collapse
Lol, just spent the last hour figuring this out for myself with trial and error and edited my post literally like a minute before you posted this
btw, the earspeaker gets a bit distorted at max normal volume, guessing that theres not an option to tweak that a bit eh?

tehargonaut said:
Lol, just spent the last hour figuring this out for myself with trial and error and edited my post literally like a minute before you posted this
btw, the earspeaker gets a bit distorted at max normal volume, guessing that theres not an option to tweak that a bit eh?
Click to expand...
Click to collapse
Great timming lol.
Btw, the original volume for louspeaker is "84"
After searching about this mod on the G3 i found other lines on that mod to enable High Pass filters e Low pass filters to reduce the distortion on the earpiece but tried it and didn't saw any diference.
I will attach that file from g3 mod if you guys want to try those lines for yourselfs and post your experiences

sslmm said:
Great timming lol.
Btw, the original volume for louspeaker is "84"
After searching about this mod on the G3 i found other lines on that mod to enable High Pass filters e Low pass filters to reduce the distortion on the earpiece but tried it and didn't saw any diference.
I will attach that file from g3 mod if you guys want to try those lines for yourselfs and post your experiences
Click to expand...
Click to collapse
do you know exactly which lines were edited to enable the filters? i don't want to put the g3 xml on my flex

tehargonaut said:
do you know exactly which lines were edited to enable the filters? i don't want to put the g3 xml on my flex
Click to expand...
Click to collapse
And you should not put a xml file from a diferent phone model on your phone. I just posted that file for reference
I think one of the lines is this :
<ctl name="RX3 HPF cut off" value="MIN_3DB_150Hz" />
It would be usefull if theres was somethin on the internet explaining the possibilities of modding this file. If anyone knows anything like that please share
«

Worked fine
Cool. Worked fine for me (on H950PR). I copied OP's entire 'LGE Mono Speaker' entry and replaced it in my mixer_paths.xml file, rebooted and had stereo sound. Thank you.
Code:
<!-- Start LGE Mono Speaker -->
<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX7 MIX1 INP1" value="RX2" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX7 Digital Volume" value="79" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<!-- <ctl name="HPHL DAC Switch" value="1" /> -->
<ctl name="SPK DRV Volume" value="8" />
<ctl name="COMP0 Switch" value="1" />
<ctl name="DAC1 Switch" value="1" />
</path>
<!-- End LGE Mono Speaker -->
Even at max volume, distortion was acceptable. I added the low cut filter line, rebooted, but did not notice any difference.
Code:
<ctl name="RX1 HPF cut off" value="MIN_3DB_150Hz" />

thachtran said:
Cool. Worked fine for me (on H950PR). I copied OP's entire 'LGE Mono Speaker' entry and replaced it in my mixer_paths.xml file, rebooted and had stereo sound. Thank you.
Code:
<!-- Start LGE Mono Speaker -->
<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX7 MIX1 INP1" value="RX2" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX7 Digital Volume" value="79" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<!-- <ctl name="HPHL DAC Switch" value="1" /> -->
<ctl name="SPK DRV Volume" value="8" />
<ctl name="COMP0 Switch" value="1" />
<ctl name="DAC1 Switch" value="1" />
</path>
<!-- End LGE Mono Speaker -->
Click to expand...
Click to collapse
Worked fine on LS996 zv9. Thanks.

Stock file anyone? I tried the mod but still find it a bit bad because earpiece is distorted
h955

thachtran said:
I added the low cut filter line, rebooted, but did not notice any difference.
Click to expand...
Click to collapse
Maybe it must be rx7, not rx3 ?

Norsha said:
Stock file anyone? I tried the mod but still find it a bit bad because earpiece is distorted
h955
Click to expand...
Click to collapse
Here it is

Felix861 said:
Maybe it must be rx7, not rx3 ?
Click to expand...
Click to collapse
i've just tried, it doesn't work..

I did more tests, and i think that we can't achieve true stereo sound. The earpiece simply can't serve as second loudspeaker. Maybe it's possible to tweak it in order to reproduce high frequencies on the earpiece and the lower ones on the loudspeaker, as the htc 10

Related

My Microphone doesn't work on speakerphone?

I modified the mixer paths file to make my speakerphone louder but now my caller can barely hear me talk. How do I fix this?
Sent from my Oneplus One using XDA Free mobile app.
Could someone help me? Maybe if I replace mixer paths file with stock unmodified file it will fix this? But then my speaker volume will be low....
Sent from my Oneplus One using XDA Free mobile app.
Could be a serious problem. Check if these solutions work. Otherwise contact oneplus for rma
http://forum.xda-developers.com/oneplus-one/help/mic-call-t2860668
I have the same low mic volume when in speakerphone mode, i tryed the mic mod here:
http://forum.xda-developers.com/oneplus-one/development/mod-oneplus-one-stereo-mod-t2967925
And now the speakerphone mod is loud and clear but loosed a little the volume in normal calls mode.
I'll try to make another mod to resolve this issue. Keep an eye in development here:
http://forum.xda-developers.com/showthread.php?t=2967925
Edit: try the zip in this post and report back please.
http://forum.xda-developers.com/showthread.php?p=57803498
sent from my amazingly awesome OnePlus One with Stereo Mod
Don't forget to hit thanks!
My upper microphone doesn't work properly. When I use the telephone with the handsfree function, the other part doesn't hear me.
I have to talk with my lips touching the hole where this microphone is. If I speak only to five centimeters far away this microphone, they don't hear anything at all.
I have tried with several roms, so it has to be a hardware issue.
I would like to know if I can set up any parameter to use the normal microphone even with the hands free function.
I have improved it modifing the file mixer_paths.xml as shown below, but it is not enough
<!-- Analog input devices -->
<path name="hph-mic">
<ctl name="DEC5 MUX" value="ADC2" />
<ctl name="IIR1 INP1 MUX" value="DEC5" />
<ctl name="DEC5 Volume" value="40" />
</path>
<path name="main-mic">
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1"/>
<ctl name="SLIM TX7 MUX" value="DEC4" />
<ctl name="DEC4 MUX" value="ADC3" />
<ctl name="DEC4 Volume" value="84" />
</path>
<path name="anc-mic">
<ctl name="DEC2 MUX" value="ADC5" />
<ctl name="DEC2 Volume" value="100" />
</path>
I'm going to try some of your mods.
---------- Post added at 01:20 PM ---------- Previous post was at 12:45 PM ----------
abhi08638 said:
I'll try to make another mod to resolve this issue. Keep an eye in development here:
http://forum.xda-developers.com/showthread.php?t=2967925
Edit: try the zip in this post and report back please.
http://forum.xda-developers.com/showthread.php?p=57803498
sent from my amazingly awesome OnePlus One with Stereo Mod
Don't forget to hit thanks!
Click to expand...
Click to collapse
Yes, it worked.
I have modified a little bit the sensibility but it has fixed my issue.
I'm still without understan well how works each microphone, but at least I can use my opo as handsfree too.

[Q] Stereo to mono app?

Is it possibile that there isn't an app to convert the output of the N5 from stereo to mono?
I know that Poweramp does the trick but I want to have a mono output with spotify and Play Music.
Is there something in the store? I tried a lot of DSP manager but I coudn't find one who does the job.
Thought the official lollipop had That in it for pple with handicaps or whatever the political correct term is
I'm confused, where is the output going that you want mono?
zerosum0 said:
Thought the official lollipop had That in it for pple with handicaps or whatever the political correct term is
Click to expand...
Click to collapse
Unfortunately no..
Ben36 said:
I'm confused, where is the output going that you want mono?
Click to expand...
Click to collapse
The system audio. I want to listen my music through spotify or play music but in mono, not stereo. Of course if I have the album on my N5 with poweramp I can listen in mono, but with the other apps (also youtube, for example) it's impossible.
I've tried searching everywhere but it seems the best solution is to buy a stereo to mono plug adapter (less than $5 on ebay).
Of you don't mind me asking why are you going from stereo to mono?
Dark_1 said:
Is it possibile that there isn't an app to convert the output of the N5 from stereo to mono?
I know that Poweramp does the trick but I want to have a mono output with spotify and Play Music.
Is there something in the store? I tried a lot of DSP manager but I coudn't find one who does the job.
Click to expand...
Click to collapse
Not an app, but if you are rooted you can edit your /system/etc/mixer_paths.xml file to "permanently" force all audio that is routed through
the headphone jack to be played in mono. Tell me what exactly you want, i.e. left audio channel on left headphone channel only, right audio channel on right headphone channel only, left audio channel mapped to left and right on headphone, right audio channel mapped to left and right headphone, or a mono mix on both headphone channels, and I can help you get set up.
ej8989 said:
I've tried searching everywhere but it seems the best solution is to buy a stereo to mono plug adapter (less than $5 on ebay).
Click to expand...
Click to collapse
Yeah I know, but I read that the volume will be a lot lower..
I don't know why Google doesn't add it in the accessibility menu. I know that IOS got this, but also some Samsung and HTC smartphones. I tried to look on my LG G Pad, and it has this feature.
PhyscoAssassinx said:
Of you don't mind me asking why are you going from stereo to mono?
Click to expand...
Click to collapse
I can listen freely my music in the office, but I don't want to put both the earphones. Of course if I listen to some stereo music I can lose a lot of details. It's not a matter of life and death, but I'm just confused why Google does not at least consider this.
chdloc said:
Not an app, but if you are rooted you can edit your /system/etc/mixer_paths.xml file to "permanently" force all audio that is routed through
the headphone jack to be played in mono. Tell me what exactly you want, i.e. left audio channel on left headphone channel only, right audio channel on right headphone channel only, left audio channel mapped to left and right on headphone, right audio channel mapped to left and right headphone, or a mono mix on both headphone channels, and I can help you get set up.
Click to expand...
Click to collapse
It will be not the easiest method (because I want to be able to listen, when I'm not in the office, stereo music) but it could be interesting. I'd like to have the same sound mixed on both channels, since I sometime use the left earphone and other time the right one.
Thanks!
you can buy this adapter - http://cable-trader.co.uk/items/3_5mm-stereo-plug-to-3_5mm-mono-socket , but i think stereo will be mixed only to one earphone and another will not work at all .
Dark_1 said:
It will be not the easiest method (because I want to be able to listen, when I'm not in the office, stereo music) but it could be interesting. I'd like to have the same sound mixed on both channels, since I sometime use the left earphone and other time the right one.
Thanks!
Click to expand...
Click to collapse
The following should do what you want. However, you need to reboot your phone after you made the change.
In your case you may want to keep two mixer_paths.xml files handy so you can swap them out as desired followed by a reboot, which could be done automatically by Tasker.
Very kludgy, I know, but it will do the trick.
Replace the following "headphone" section (stereo)
Code:
<path name="headphones">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL DAC Switch" value="1" />
<ctl name="RX1 Digital Volume" value="83" />
<ctl name="RX2 Digital Volume" value="83" />
<ctl name="HPHL Volume" value="15" />
<ctl name="HPHR Volume" value="15" />
</path>
with the following dual-mono section
Code:
<path name="headphones">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<!-- the following line adds the cross mix from the second channel to the first one -->
<ctl name="RX1 MIX1 INP2" value="RX2" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<!-- the following line adds the cross mix from the first channel to the second one -->
<ctl name="RX2 MIX1 INP2" value="RX1" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL DAC Switch" value="1" />
<ctl name="RX1 Digital Volume" value="83" />
<ctl name="RX2 Digital Volume" value="83" />
<ctl name="HPHL Volume" value="15" />
<ctl name="HPHR Volume" value="15" />
</path>
Great, it works perfectly!
Thanks!

mixer paths

The mixer paths is like none Ive seen before. Im headphones there are no RX volume adjustments any where, has anyone cracked this yet? The volume is way to low
Thanks
USMC retired said:
The mixer paths is like none Ive seen before. Im headphones there are no RX volume adjustments any where, has anyone cracked this yet? The volume is way to low
Thanks
Click to expand...
Click to collapse
hey USMC. can you clarify what you mean by "None i've seen before"? what device's mixer paths are you comparing it to?
this is an area of interest for me as i have tinkered with mixer paths but i do not know the results yet because i haven't been able to get my rom working. the RX volumes are in there. look again. not just mixer paths, but the other mixer path files there's 7 of them
Digitalkarma said:
hey USMC. can you clarify what you mean by "None i've seen before"? what device's mixer paths are you comparing it to?
this is an area of interest for me as i have tinkered with mixer paths but i do not know the results yet because i haven't been able to get my rom working. the RX volumes are in there. look again. not just mixer paths, but the other mixer path files there's 7 of them
Click to expand...
Click to collapse
I have the HTC u11 and the structure is unusual compared to say the pixel phones. If you were to put the 2 XML side by side you would see what I'm talking about. For the HTC there no RX paths in which to change the volume where on other phones those volume values exist
USMC retired said:
I have the HTC u11 and the structure is unusual compared to say the pixel phones. If you were to put the 2 XML side by side you would see what I'm talking about. For the HTC there no RX paths in which to change the volume where on other phones those volume values exist
Click to expand...
Click to collapse
Mind if you upload the Pixel XML for me. I'm curious.
Digitalkarma said:
Mind if you upload the Pixel XML for me. I'm curious.
Click to expand...
Click to collapse
I know what he means.
This is a mixer path for a few other phones (not whole XMLs, sorry), but from what I recall, the Exynos S7, the Pixel and a few other smartphones (LG G5/G6) all have similar mixer path edits like this too.
Nexus 7
Code:
<ctl name="HPHL Volume" value="10" />
<ctl name="HPHR Volume" value="10" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
OnePlus 2
Code:
<path name="handset">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="DAC1 Switch" value="1" />
<!-- #ifdef VENDOR_EDIT-->
<!-- [email protected],2015/4/3,change to pass test for qualcomm advise -->
<[B]ctl name="RX1 Digital Volume" value="90" [/B]/>
<!-- #endif VENDOR_EDIT-->
</path>
S7 Edge Exynos
Code:
<path name="gain-media-headset">
<ctl name="Noise Gate Switch" value="0" />
<ctl name="HPOUT1L Impedance Volume" value="105" />
<ctl name="HPOUT1R Impedance Volume" value="105" />
<ctl name="HPOUT1L Input 1 Volume" value="43" />
<ctl name="HPOUT1R Input 1 Volume" value="43" />
</path>
Partial Pixel Code (From Head Fi)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
HPHL & HPHL from what you said before is already maxed out at 20 but where is the digital volume values on the U11? Viper's ROM has an audio boost for headphones, but they have edited almost every mixer path file. I'll compare when I have the time.
The OP3T was also similar to this, HPHL and HPHR were already maxed out at 20. Editing digital volume via a kernel (Such as Flar's) introduced distortion immediately so wasn't worth it.
This is also quite nice to look at
https://docs.google.com/document/d/1NqfEpbhXfXyqRPJoLxtifbEMNCEuVOIokwT5kyjJ2KI/pub
Im sure it isnt structured in the same order, no surprises there but its similar in referencing which is all that matters.
There are 7 RX Digitals from RX1 through RX7 in the U11 mixer, I think RX1 and 2 has something directly to do with headphones, not sure what the other RX's do. Probably another two is responsible for the top and bottom speaker and who knows what the other 3 do..
There is also a dedicated RX for ANC, 44.1 headphones etc. Thats not in the main mixer path
---------- Post added at 03:06 AM ---------- Previous post was at 02:25 AM ----------
Galactus said:
HPHL & HPHL from what you said before is already maxed out at 20 but where is the digital volume values on the U11? Viper's ROM has an audio boost for headphones, but they have edited almost every mixer path file. I'll compare when I have the time.
The OP3T was also similar to this, HPHL and HPHR were already maxed out at 20. Editing digital volume via a kernel (Such as Flar's) introduced distortion immediately so wasn't worth it.
This is also quite nice to look at
https://docs.google.com/document/d/1NqfEpbhXfXyqRPJoLxtifbEMNCEuVOIokwT5kyjJ2KI/pub
Click to expand...
Click to collapse
Yeah most of the digital values are set at 84 on the U11 as well, not all. Anything more than 84 and you'll start to get distortion if you're volume rocker is set on the higher levels. The registered values are 0(-84 db) to 124(+40 db)
Digitalkarma said:
Im sure it isnt structured in the same order, no surprises there but its similar in referencing which is all that matters.
There are 7 RX Digitals from RX1 through RX7 in the U11 mixer, I think RX1 and 2 has something directly to do with headphones, not sure what the other RX's do. Probably another two is responsible for the top and bottom speaker and who knows what the other 3 do..
There is also a dedicated RX for ANC, 44.1 headphones etc. Thats not in the main mixer path
---------- Post added at 03:06 AM ---------- Previous post was at 02:25 AM ----------
Yeah most of the digital values are set at 84 on the U11 as well, not all. Anything more than 84 and you'll start to get distortion if you're volume rocker is set on the higher levels. The registered values are 0(-84 db) to 124(+40 db)
Click to expand...
Click to collapse
On Vipers ROM the values seem to be set to 88 for most things.
Using V4A increasing software gain by 6dB doesn't introduce any audible background noise or distortion on my RHA MA 750. Also noticed that in "mixer_paths_tavil" they have removed some lines.
Before
Code:
<path name="headphones-voice">
<path name="headphones-voice-generic" />
<path name="sidetone-headphones" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-fm">
<path name="headphones-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-hw-voip">
<path name="headphones-voice-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-audio-voip">
<path name="headphones-voice-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
After
Code:
<path name="headphones-voice">
<path name="headphones-voice-generic" />
<path name="sidetone-headphones" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-fm">
<path name="headphones-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-hw-voip">
<path name="headphones-voice-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-audio-voip">
<path name="headphones-voice-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
I'd be content with using the Usonic headphones if they weren't so crackly at the high end, sibilant songs sound harsher than they should.
On another note, HTC have done something to the mixer paths that has now ruined editing volume steps. On the original firmware, I could set volume steps via Magisk modules to anything I wanted, and it worked fine for the 3.5mm adapter. After updating to 1.13, the volume steps simply repeat once you go past step 15, which is rather annoying. (It is also busted in Vipers ROM).
Digitalkarma said:
Mind if you upload the Pixel XML for me. I'm curious.
Click to expand...
Click to collapse
Galactus said:
On Vipers ROM the values seem to be set to 88 for most things.
Using V4A increasing software gain by 6dB doesn't introduce any audible background noise or distortion on my RHA MA 750. Also noticed that in "mixer_paths_tavil" they have removed some lines.
Before
Code:
<path name="headphones-voice">
<path name="headphones-voice-generic" />
<path name="sidetone-headphones" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-fm">
<path name="headphones-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-hw-voip">
<path name="headphones-voice-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
<path name="headphones-audio-voip">
<path name="headphones-voice-generic" />
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="RX0 Digital Volume" value="84" />
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="HPHL Volume" value="16" />
<ctl name="HPHR Volume" value="16" />
</path>
After
Code:
<path name="headphones-voice">
<path name="headphones-voice-generic" />
<path name="sidetone-headphones" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-fm">
<path name="headphones-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-hw-voip">
<path name="headphones-voice-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
<path name="headphones-audio-voip">
<path name="headphones-voice-generic" />
<ctl name="RX0 Digital Volume" value="88" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="HPHL Volume" value="17" />
<ctl name="HPHR Volume" value="17" />
</path>
I'd be content with using the Usonic headphones if they weren't so crackly at the high end, sibilant songs sound harsher than they should.
On another note, HTC have done something to the mixer paths that has now ruined editing volume steps. On the original firmware, I could set volume steps via Magisk modules to anything I wanted, and it worked fine for the 3.5mm adapter. After updating to 1.13, the volume steps simply repeat once you go past step 15, which is rather annoying. (It is also busted in Vipers ROM).
Click to expand...
Click to collapse
I forgot about RX0, there's 8 RX's.. anyhow
Actually the before and after is reversed. HTC added in the Comp switches to the path names. if my memory is right and assuming things haven't changed since then the volume step controls are handled in the framework.jar, I've applied code on the increase volume step mod before on previous devices.
Besides HTC didnt really alter the mixer path too much from update to update to warrant breaking the volume step so I don't think mixer path has anything to do with it at all. the few tweaks HTC made is related to headphone output.
Also for Usonic try editing the ANC(active noise cancellation) values then maybe reduce the RX and increase the HPH
Right I've done some actual testing
@Digitalkarma
Controlling loudness of USonic headphones only when noise cancellation is enabled works by editing the file below. 3.5mm adapter doesn't change regardless of what I have tried.
Code:
<path name="anc-headphones">
<ctl name="COMP1 Switch" value="0" />
<ctl name="COMP2 Switch" value="0" />
<ctl name="ANC Function" value="ON" />
<ctl name="ANC Slot" value="0" />
<ctl name="SLIM RX2 MUX" value="AIF4_PB" />
<ctl name="SLIM RX3 MUX" value="AIF4_PB" />
<ctl name="SLIM_6_RX Channels" value="Two" />
<ctl name="ADC MUX10" value="AMIC" />
<ctl name="AMIC MUX10" value="ADC3" />
<ctl name="ADC MUX12" value="AMIC" />
<ctl name="AMIC MUX12" value="ADC4" />
<ctl name="ANC0 FB MUX" value="ANC_IN_HPHL" />
<ctl name="ANC1 FB MUX" value="ANC_IN_HPHR" />
<ctl name="ADC3 Volume" value="8" />
<ctl name="ADC4 Volume" value="8" />
<ctl name="RX INT1_1 MIX1 INP0" value="RX2" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX3" />
[B]<ctl name="RX1 Digital Volume" value="74" />
<ctl name="RX2 Digital Volume" value="74" />[/B]
<ctl name="ANC OUT HPHL Enable Switch" value="1" />
<ctl name="ANC OUT HPHR Enable Switch" value="1" />
</path>
here you go galactus. this is the Sprint version. everything else is the same besides tavil. there is ver. 29 and ver. 30, HTC made a few changes there
Galactus said:
Right I've done some actual testing
@Digitalkarma
Controlling loudness of USonic headphones only when noise cancellation is enabled works by editing the file below. 3.5mm adapter doesn't change regardless of what I have tried.
Code:
<path name="anc-headphones">
<ctl name="COMP1 Switch" value="0" />
<ctl name="COMP2 Switch" value="0" />
<ctl name="ANC Function" value="ON" />
<ctl name="ANC Slot" value="0" />
<ctl name="SLIM RX2 MUX" value="AIF4_PB" />
<ctl name="SLIM RX3 MUX" value="AIF4_PB" />
<ctl name="SLIM_6_RX Channels" value="Two" />
<ctl name="ADC MUX10" value="AMIC" />
<ctl name="AMIC MUX10" value="ADC3" />
<ctl name="ADC MUX12" value="AMIC" />
<ctl name="AMIC MUX12" value="ADC4" />
<ctl name="ANC0 FB MUX" value="ANC_IN_HPHL" />
<ctl name="ANC1 FB MUX" value="ANC_IN_HPHR" />
<ctl name="ADC3 Volume" value="8" />
<ctl name="ADC4 Volume" value="8" />
<ctl name="RX INT1_1 MIX1 INP0" value="RX2" />
<ctl name="RX INT2_1 MIX1 INP0" value="RX3" />
[B]<ctl name="RX1 Digital Volume" value="74" />
<ctl name="RX2 Digital Volume" value="74" />[/B]
<ctl name="ANC OUT HPHL Enable Switch" value="1" />
<ctl name="ANC OUT HPHR Enable Switch" value="1" />
</path>
Click to expand...
Click to collapse
unless maybe try turning off the ANC OUT enable switch to 0?
anyway. so there is no difference editing the headphones path and headphones 44.1 path? also try editing the initial HPH settings back to 20 too. they originally had it at 20 but changed it to 16 on the latest version.
that's what i have set on my Sprint DK11 rom. 20 for all HPH. 84 on ANC, HP and HP 44.1 paths. glad to know there is an audible change with ANC
Digitalkarma said:
unless maybe try turning off the ANC OUT enable switch to 0?
anyway. so there is no difference editing the headphones path and headphones 44.1 path? also try editing the initial HPH settings back to 20 too. they originally had it at 20 but changed it to 16 on the latest version.
that's what i have set on my Sprint DK11 rom. 20 for all HPH. 84 on ANC, HP and HP 44.1 paths. glad to know there is an audible change with ANC
Click to expand...
Click to collapse
We have lift off in terms of editing audio levels with the USonic Without ANC enabled
I accidentally deleted a comma over the value hence it didn't register when I tried it.
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" />
<ctl name="RX INT1_2 MUX" value="RX2" />
<ctl name="RX INT2_2 MUX" value="RX3" />
[B]<ctl name="RX1 Mix Digital Volume" value="74" />
<ctl name="RX2 Mix Digital Volume" value="74" />[/B]
</path>
I set both to 90 and I hear no distortion, of course I didn't max out and in fact will lower it. The USonic is super loud now. Either way, all other mixer path edits seem to be ignored. The USonic headphones don't change at all until you edit the mixer_paths_tavil.
Next step, trying to do the same with 3.5mm adapter, so far all my efforts have failed. 3.5mm adapter doesn't get louder or quieter regardless of what is done.
Galactus said:
We have lift off in terms of editing audio levels with the USonic Without ANC enabled
I accidentally deleted a comma over the value hence it didn't register when I tried it.
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" />
<ctl name="RX INT1_2 MUX" value="RX2" />
<ctl name="RX INT2_2 MUX" value="RX3" />
[B]<ctl name="RX1 Mix Digital Volume" value="74" />
<ctl name="RX2 Mix Digital Volume" value="74" />[/B]
</path>
I set both to 90 and I hear no distortion, of course I didn't max out and in fact will lower it. The USonic is super loud now. Either way, all other mixer path edits seem to be ignored. The USonic headphones don't change at all until you edit the mixer_paths_tavil.
Next step, trying to do the same with 3.5mm adapter, so far all my efforts have failed. 3.5mm adapter doesn't get louder or quieter regardless of what is done.
Click to expand...
Click to collapse
So the ANC path works for the Usonic with ANC on and the headphone path is also for Usonic but with ANC off?
Headphone 44.1 is a no go? Just to clarify and confirm. Thanks for testing! Yeah 90 must be a little too loud, 84 is more neutral but louder than 74 that's for sure.
Digitalkarma said:
So the ANC path works for the Usonic with ANC on and the headphone path is also for Usonic but with ANC off?
Headphone 44.1 is a no go? Just to clarify and confirm. Thanks for testing! Yeah 90 must be a little too loud, 84 is more neutral but louder than 74 that's for sure.
Click to expand...
Click to collapse
Yeah ANC path for ANC on and headphones path for ANC off.
44.1 doesn't seem to change anything at all
Galactus said:
Yeah ANC path for ANC on and headphones path for ANC off.
44.1 doesn't seem to change anything at all
Click to expand...
Click to collapse
and the headphones path doesn't do anything for the 3.5 mm headphones as well when listening to USonic and regular headphones side-by-side?
hmmm i wonder what else would change it without altering values all over the place.
Digitalkarma said:
and the headphones path doesn't do anything for the 3.5 mm headphones as well when listening to USonic and regular headphones side-by-side?
hmmm i wonder what else would change it without altering values all over the place.
Click to expand...
Click to collapse
Yeah editing the headphones path doesn't seem to touch the 3.5mm headphones at all. Lowering the value to 10, the USonic without ANC enabled is barely audible. Plug in the adapter and the 3.5mm headphones volume is untouched.
I have no idea where the values for the adaptor or external audio devices would be. There is a ton of USB_AUDIO references in the files but they all seem to have a value of 0 or 1.
I can't really find how it is implemented on other devices either.
Galactus said:
Yeah editing the headphones path doesn't seem to touch the 3.5mm headphones at all. Lowering the value to 10, the USonic without ANC enabled is barely audible. Plug in the adapter and the 3.5mm headphones volume is untouched.
I have no idea where the values for the adaptor or external audio devices would be. There is a ton of USB_AUDIO references in the files but they all seem to have a value of 0 or 1.
I can't really find how it is implemented on other devices either.
Click to expand...
Click to collapse
Time to put on my thinking cap lol
I thought i2s would of had something to do with it..
more than 84
Digitalkarma said:
I forgot about RX0, there's 8 RX's.. anyhow
Actually the before and after is reversed. HTC added in the Comp switches to the path names. if my memory is right and assuming things haven't changed since then the volume step controls are handled in the framework.jar, I've applied code on the increase volume step mod before on previous devices.
Besides HTC didnt really alter the mixer path too much from update to update to warrant breaking the volume step so I don't think mixer path has anything to do with it at all. the few tweaks HTC made is related to headphone output.
Also for Usonic try editing the ANC(active noise cancellation) values then maybe reduce the RX and increase the HPH
Click to expand...
Click to collapse
On the Nexus 6 I took values from 84 to 100 with no problems with distortion or clipping, and as far as the other mixer paths go, most of those arent adjustable. I will keep tinkering and let you know if I find a combo that raises headphones to an acceptable level
I think I have it narrowed down now enough to say that once I find out which MP addjustments are the "master controls" of the entire XML we will be good to go
USMC retired said:
On the Nexus 6 I took values from 84 to 100 with no problems with distortion or clipping, and as far as the other mixer paths go, most of those arent adjustable. I will keep tinkering and let you know if I find a combo that raises headphones to an acceptable level
I think I have it narrowed down now enough to say that once I find out which MP addjustments are the "master controls" of the entire XML we will be good to go
Click to expand...
Click to collapse
You can edit the mixer path tavil which will boost ANC/USonic headphones but believe me when I say the USonic does not need to go past 84 unless you are trying to damage your hearing or the headphone drivers themselves.
As for editing loudness from the 3.5mm adaptor. That is routed to USB_AUDIO which has no editable settings unless you re-route the sound to a SLIMBUS mixer path. By all means give it a go though.
Any suggestions/ development in terms of making the ear-piece & speaker louder by modifying the mixer_paths?

[MOD] Stereo sound mod

Stereo mod for xiaomi mi4c (libra)
Based on [OFFICIAL] sources Lineage OS.
Includes:
1. Connecting stereo sound "Speaker - Main Speaker" [LEFT-RIGHT] respectively.
2. Increase the volume of device. (I recommend to use it in conjunction with viper fx with "speaker otimization" enabled.)
3. Increase the sensitivity of microphones.
DISCLAIMER:
I just report to work on [official]lineageOS I am not responsible in any way for anything that happens to your device. You do so at your own risk.
However, it works for most users without problems.
Installation:
You can install a couple different ways including extracting the files included in the zip and manually pushing them to system/etc, set permissions to rw r r, and reboot or just flash the included zips in your custom recovery.
CREDITS:
Cozzmy13 - He made LineageOS port and achieved official support. I used these source files.
kevinkvothe - Thanks for the first port of the stereo mod on our device. So I use some of the developments from his mod.
Download:
STEREO MOD
REVERT TO STOCK
With love from Belarus
Anyone tried this? I'm still on MIUI 9. Will try it when I get back to LineageOS.
Yeah man, it works as advertised, thanks. Would you be able to tell me (by line # or title) which values I need to change (I'm guessing the ones which are 93 now) for headphones and earpiece? I may want to increase them.
celrau said:
Yeah man, it works as advertised, thanks. Would you be able to tell me (by line # or title) which values I need to change (I'm guessing the ones which are 93 now) for headphones and earpiece? I may want to increase them.
Click to expand...
Click to collapse
I think so.
<path name="headphones">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL DAC Switch" value="1" />
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="RX1 Digital Volume" value="88" />
<ctl name="RX2 Digital Volume" value="88" />
</path>
can you make this stereo sound mod for meizu pro 7 (flyme 7)?i will be glad if you can
Sadly this method doesn't work on Android Oreo and Pie Can someone make one for Pie? It'd be really great!

How to make call audio work with custom rom

Using squid2's XML files from his github I was able to get phone calls working on all of the ROMs I used, I'm also using Google dialer instead of factory.
Replace the current ones in the system/etc folder and reboot and calls should work.
https://drive.google.com/file/d/0Bzk7IAINn5jfbmFDUG5HaEFTLUE/view?usp=drivesdk
The only problem I'm having is call audio is kind of low and I'm not sure exactly how to make it louder.
In stock ROM, there is: /etc/mixer_paths.xml
I imagine it is in the custom ROMs as well. If so, copy & open the file in Notepad++, then edit line 737 (or look for <ctl name="RX1 Digital Volume" value="84" />
84 is the stock level. Increase it to what you'd like, but don't go crazy. I made mine 88. Save the file and replace it on your phone. Set permissions to rw-r-r and reboot.
You can also edit overall speaker volume by editing lines 25-31, 35,36
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="IIR1 INP1 Volume" value="84" />
<ctl name="IIR1 INP2 Volume" value="84" />
<ctl name="IIR1 INP3 Volume" value="84" />
<ctl name="IIR1 INP4 Volume" value="84" />
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
Again, don't go crazy as you could blow your speaker or your ears.
mn1968 said:
In stock ROM, there is: /etc/mixer_paths.xml
I imagine it is in the custom ROMs as well. If so, copy & open the file in Notepad++, then edit line 737 (or look for <ctl name="RX1 Digital Volume" value="84" />
84 is the stock level. Increase it to what you'd like, but don't go crazy. I made mine 88. Save the file and replace it on your phone. Set permissions to rw-r-r and reboot.
You can also edit overall speaker volume by editing lines 25-31, 35,36
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="IIR1 INP1 Volume" value="84" />
<ctl name="IIR1 INP2 Volume" value="84" />
<ctl name="IIR1 INP3 Volume" value="84" />
<ctl name="IIR1 INP4 Volume" value="84" />
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
Again, don't go crazy as you could blow your speaker or your ears.
Click to expand...
Click to collapse
Worked like a charm, thanks.
KyleBryant said:
The only problem I'm having is call audio is kind of low and I'm not sure exactly how to make it louder.
Click to expand...
Click to collapse
The one I have used works well at the proper level of sound for the boost version. I legitimately believe that there are minor differences with parts in each Moto E4 variant. (I had this issue with the camera back then with the LG Volt {Virgin vs Boost})
CDMA?
Edit: wait, I'm in Qualcomm, pretty sure these are all CDMA right?
Thexmastermind said:
CDMA?
Edit: wait, I'm in Qualcomm, pretty sure these are all CDMA right?
Click to expand...
Click to collapse
No. Only sprint (and all Sprint mvno's) and Verizon are CDMA.
mn1968 said:
In stock ROM, there is: /etc/mixer_paths.xml
I imagine it is in the custom ROMs as well. If so, copy & open the file in Notepad++, then edit line 737 (or look for <ctl name="RX1 Digital Volume" value="84" />
84 is the stock level. Increase it to what you'd like, but don't go crazy. I made mine 88. Save the file and replace it on your phone. Set permissions to rw-r-r and reboot.
You can also edit overall speaker volume by editing lines 25-31, 35,36
<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="IIR1 INP1 Volume" value="84" />
<ctl name="IIR1 INP2 Volume" value="84" />
<ctl name="IIR1 INP3 Volume" value="84" />
<ctl name="IIR1 INP4 Volume" value="84" />
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
Again, don't go crazy as you could blow your speaker or your ears.
Click to expand...
Click to collapse
cani use the same method to reduce in call vaolume?
Sachin ET said:
cani use the same method to reduce in call vaolume?
Click to expand...
Click to collapse
You could probably limit your max volume that way. Seems risky and unnecessary though. Why not just turn the volume down?
madbat99 said:
You could probably limit your max volume that way. Seems risky and unnecessary though. Why not just turn the volume down?
Click to expand...
Click to collapse
the minimum volume is comfortable but some people while calling mentioned that they are hearing their own sound back as an echo (may be their sound is being picked up by my microphone )....so i was thinking that reducing it below minimum level could solve it.
Wrong section brother.
Sachin ET said:
the minimum volume is comfortable but some people while calling mentioned that they are hearing their own sound back as an echo (may be their sound is being picked up by my microphone )....so i was thinking that reducing it below minimum level could solve it.
Click to expand...
Click to collapse
No, that's a network issue. Nothing to do with your device's volume in any way. It happens to my wife occasionally on her e4. Usually in certain locations. I know it's the network because it happens with her other phone as well. In her case, it's Sprint (or Sprint mvno).
madbat99 said:
No, that's a network issue. Nothing to do with your device's volume in any way. It happens to my wife occasionally on her e4. Usually in certain locations. I know it's the network because it happens with her other phone as well. In her case, it's Sprint (or Sprint mvno).
Click to expand...
Click to collapse
thanks for replying....I'll check using another SIM card.

Categories

Resources