[ONE Android Development] abhi08638:
What is this?

This post is a collection of all the audio related mods I have created from the OnePlus One. The mods are: Triple Mono sound, True Stereo sound, Main Microphone bypass, Speakerphone low volume fix, and Speakerphone low volume fix with True Stereo sound. If you have a request, then make it here and I try to make it if I can.

Various Mod Explanations

What is it?***True Stereo or Triple Mono***

True Stereo

I have enabled true stereo playback by putting the speakers on a different channel than the earpiece. This version of the mod will only be noticeable if you are listening to music that was recorded in stereo. Although I would recommend going with the Triple Mono version. This version is quieter than the Triple mono version. WARNING: MESSING WITH YOUR EQ WILL ALSO EFFECT THE EARPIECE. IT COULD POTENTIALLY BLOW IT OUT IF YOU INCREASE THE VOLUME OR BASS TOO MUCH

Triple Mono

This version plays all audio through one channel. This basically means that you now have 3 mono speakers and is what I recommend since the sound comes out much louder than the Stereo version. WARNING: MESSING WITH YOUR EQ WILL ALSO EFFECT THE EARPIECE. IT COULD POTENTIALLY BLOW IT OUT IF YOU INCREASE THE VOLUME OR BASS TOO MUCH

Main Mic Bypass

This version bypasses the main microphone in case it is broken. When the main mic breaks, it disables ALL audio input even though the other internal mics are fine. The only way to fix the main mic is to solder a new one on, but this mod can temporarily delay this procedure by re enabling audio input from the other internal mics.

Speakerphone low volume fix

I've seen many people have this problem. I think its due to the fact the the phone relies on the main microphone too much. What I did is instead of using the main microphone for both headset calling and speakerphone calling with the aux mic for noise cancellation, I made it so that the main mic is used for the headset only and the aux mic is used for speaker calling only. This has worked for some people but I can't guarantee it will work for you as well.

Speakerphone low volume fix With True Stereo

Same as the speakerphone mod but with true stereo mod implemented.

Camera AutoFocusFix

Fixes the camera click sound you get when recording. Included in all other files.

Prerequisites and installation instructions

MUST be rooted

go into /system/etc

backup your mixer_path.xml

Flash one of the zips below

reboot

This mod modifies the mixer_path.xml in the /system/etc folder. I have only tested this on CM11. ***CM12*** seems to work as well.

I don't guarantee it will work for your rom, because this is based off LiquidSmooth rom. Although the worst that'll happen is you'll lose sound. If you have a backup of your original mixer_path.xml, then just push it back to /system/etc, set permissions, and reboot. That will allow you regain your sound if it was lost. In a worst case scenario where you messed up the permissions and are in a bootloop, flash the revert to stock zip or dirty flash your rom.

Technical Info for DIY

This is what I modified to enable it only for Triple Mono audio playback.

RX1 is the headset

RX3 is the speaker

"ear" path

<path name="ear">

***Added***<ctl name="SLIM RX1 MUX" value="AIF1_PB" />

***Added***<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="RX1 Digital Volume" value="90" />

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

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

</path>

custom speaker-ear path

<path name="spk-ear">

<path name="ear" />

<ctl name="RX3 MIX1 INP1" value="RX1" />

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

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

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

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

</path>

output paths

<path name="handset">

***removed two lines and added to "ear" path***

<path name="ear" />

</path>

<path name="speaker">

***change path to custom***<path name="spk-ear" />

***Increase headset***<ctl name="RX1 Digital Volume" value="90" />

***reduce speakers***<ctl name="RX3 Digital Volume" value="70" />

<ctl name="RX4 Digital Volume" value="80" />

</path>

Customizing your sound levels

The file I attached has the speaker volume slightly reduced so it sounds more balanced overall. However, you can customize how loud or quiet you want the speaker or headset to be.

Open the mixer_paths.xml

Go to the "output paths" section

find the <path name="speaker"> line

<path name="speaker">

***change path to custom***<path name="spk-ear" />

***Increase headset***<ctl name="RX1 Digital Volume" value="90" />

***reduce speakers***<ctl name="RX3 Digital Volume" value="70" />

<ctl name="RX4 Digital Volume" value="80" />

</path>

To change the speaker volume

change the value "70" to your desired value in the following line

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

NOTE: The default CM11 value is 80. This value will restore it to the default loudness.

To change the headset volume

change the value "90" to your desired value in the following line

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

NOTE: The default CM11 value is 86. This value will restore it to the default loudness.

WARNING: I would not recommend going over 95. The reason being that after 95, on louder volumes, the headset starts crackling.

save and reboot

github link

https://github.com/abhi08638/OPO-Audio-mods

Flashable Zips are below

Credits

[MENTION=5108383]sshafranko[/MENTION]

His thread:

http://xdaforums.com/note-edge/development/mod-sm-915t-surround-sound-t2955648

Please do not use this in your rom without proper credits.