[G3 Themes and Apps] langeveld024:
Hi all, I have modded the LG G3 mixer_paths.xml so that it will use earpiece aswell as loudspeaker while playing music, watching youtube etc.

I found this on monivan's stereomod thread for the xperia Z (which i have) and now I'm sharing here with you!

NOTE: THESE ARE NO FLASHABLE ZIP FILES!

NOTE: I DO NOT OWN THIS DEVICE

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)

-LG G3 :p (tested on T-Mobile variant, but may work on others since unlocked bootloader is NOT required)

HOW TO INSTALL:

1. Download SurroundSound.zip

(Download links in download section)

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.

TUTORIAL thnx [MENTION=4349720]Rafe[/MENTION]:

1 - Edit Mixer_paths.xml or Mixer_paths_qcwcn.xml, it depends what the model is, in my case (D855P - Brazil) uses Mixer_paths_qcwcn.xml;

2- In the xml file look for the parameter: <path name="speaker">;

3 - Edit the following lines to the value 60;

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

<ctl name="RX3 Digital Volume" value="60" />

So your Speaker parameter will look like:

<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="RX1 MIX1 INP1" value="RX1" />

<ctl name="RX3 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="60" />

<ctl name="RX3 Digital Volume" value="60" />

<ctl name="RDAC5 MUX" value="DEM3_INV" />

<ctl name="LINEOUT1 Volume" value="16" />

<ctl name="LINEOUT3 Volume" value="16" />

<ctl name="RX3 HPF cut off" value="MIN_3DB_150Hz" />

<ctl name="RX1 HPF cut off" value="MIN_3DB_150Hz" />

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

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

<ctl name="SPK Amp Volume" value="3" />

</path>

Save and reboot!

NOTE:

RX1 is earpiece

RX3 is loudspeaker

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

But please be careful using this!!

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

Have fun!

DOWNLOADS:

https://www.mediafire.com/?i9d4dxkk8v9mwiw

(if not available request desktop version)

D855P user's :

-Loud

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

-Normal

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

Changelog:

V1.0 initial release

V1.1 now also compatible with D855P variant.

Credits:

- [MENTION=4307727]anoymonos[/MENTION] for testing

- [MENTION=2474322]monivan[/MENTION] for creating this for my Z

- myself