[Galaxy S 5 Themes and Apps] langeveld024:
Hi all, I have modded the Galaxy S5 mixer_paths.xml so that it will use earpiece aswell while playing music, watching youtube etc.

I found this on monivan's stereomod thread for the xperia Z (which i have) and I find it so cool that I wanted this on my wife's S5 so now I'm sharing here with you!

First of all, PLEASE DO A BACKUP OF YOUR CURRENT FILE BEFORE PROCEEDING!!

It is located in /system/etc/mixer_paths.xml

DISCLAIMER:

Everything you do is your choice, if you missing any important call or getting fired because of alarm didn't work, you busting your earpiece or thermonuclear war starts off and you point your finger at me, I will laugh at you.

I take no responsibility for your actions.

REQUIREMENTS :

-Rooted phone with busybox installed

-Stock rom (may also work on AOSP/CM, don't know try it yourself and let know here)

-galaxy s5 g900f

-users reported to work on note 10.1 and s4 also.

HOW TO INSTALL:

1. Download mixer_paths_xx_xx.zip

(Download links in download section)

(if not available request desktop version)

2. Move your stock/current mixer_paths.xml from /system/etc to any location on your sd card.

3. Unzip the zip file you just downloaded and copy mixer_paths.xml to /system/etc and set correct permission rw-r-r a.k.a. 0644

Like this:

XX0

X00

X00

4. Reboot

5. Turn down your volume before using and increase slowly to test safely.

I tuned volume values so that sound is not distorting at all kind of genres, with stock Samsung music player at full volume with no equaliser settings active.

But please be careful using this!!

Also I think S5 has much better earpiece than xperia Z or Z1, much more clear bass coming thru.

To test if this works see: Left/Right Stereo Audio/Visual Test.: http://youtu.be/dvqbq_0jZ_U

Have fun!

NOTE:

I now have made multiple versions made, to better fit everybody's needing.

I have made loud and normal versions, and I have made version with and without combined channels.

SINGLE AND DUAL CHANNEL?

I don't have to tell you guys what means loud and what means normal, but.. What means separated and combined channels?

Let's say, "RX1" is earpiece and "RX7" is loudspeaker. Those are hardware components.

Let's now say, we have an left and right channel. "RX1" and "RX2".

You might be thinking "why is RX1 earpiece and channel at the same time?"

-it isn't. Doesn't matter but read further.

Separate channel will mean left channel for example will play on earpiece (rx1 is playing rx2) and right channel is playing loudspeaker (rx7 is playing rx1)

Combined channel will mean left and right channels will both play on earpiece and loudspeaker at same time (rx1 is playing rx1 and rx2, and rx7 is playing rx1 and rx2)

TUTORIAL:

So, how to edit this to your exact needs?

Simple, open the xml file and goto somewhere around line 450. (Using 920 text editor from play store works fine)

You will see something like this ================================================================ -->

<!-- Play Scenario -->

<path name="handset">

<path name="rcv" />

<ctl name="EAR PA Gain" value="POS_3_DB" />

<ctl name="RX1 Digital Volume" value="84" />

</path>

<path name="speaker">

<path name="spk" />

<ctl name="HPHL Volume" value="20" />

<ctl name="HPHR Volume" value="20" />

<ctl name="EAR PA Gain" value="POS_3_DB" />

<ctl name="RX1 Digital Volume" value="86" />

<ctl name="RX7 Digital Volume" value="74" />

<ctl name="SPK DRV Volume" value="8" />

<ctl name="COMP0 Switch" value="1" />

</path>

<path name="headset">

<path name="ear" />

<ctl name="HPHL Volume" value="20" />

<ctl name="HPHR Volume" value="20" />

<ctl name="RX1 Digital Volume" value="79" />

<ctl name="RX2 Digital Volume" value="79" /

<ctl name="COMP1 Switch" value="1" /

path>

The thing you want to adjust are in the "speaker" section.

Rx1 and rx7 digital volumes.

Just remember:

Rx1 is earpiece in this section and rx7 is loudspeaker in this section.

Also you can adjust headphone volume , it is just beneath speaker section.

Only adjust the digital volumes, nothing else.

DOWNLOAD SECTION

Combined channels:

-loud

http://www.mediafire.com/view/f4uvmvj0wr82y97

-normal

http://www.mediafire.com/view/1rgx6jkrwwl8duy

Separated channels:

-loud

http://www.mediafire.com/view/xrvp9gsk4w20262

-normal

http://www.mediafire.com/view/5a7hd861dhbppca

Swapped separated channels:

-loud

http://www.mediafire.com/download/ujbeheq04esk9i7/swapped_rx1.90_rx7.80single.zip

-normal

http://www.mediafire.com/download/awspttlhppdl2za/swapped_rx1.86_rx7.74single.zip

CHANGELOG:

V1

-initial release

V1.1

-combined left and right channel on both speakers

-little clearer bass

-Earpiece slightly boost

V1.2

-multiple versions

V1.3

-added swapped channel versions at request of [MENTION=6155971]smartypants88[/MENTION]

Bugs: not working for 900H (not yet, if someone provide me correct files for it i will try)

CREDITS: [MENTION=2474322]monivan[/MENTION] for making this for XZ, without him you wouldn't have this by now [MENTION=4170892]dontbelive[/MENTION] for finding this on Z1, without him monivan didn't bring this to XZ [MENTION=314792]Sony[/MENTION] [MENTION=381438]samsung[/MENTION] for the wonderful mixer_paths.xml

@my girlfriend for testing on her brandnew gold S5 xD