You will need to change the audio amplifier driver.
You will need to download:
1. Datasheet for sound amplifier TPA2051.
2. Special program from TI management board for the developers.
(TPA2051D3YFFEVM - Graphical User Interface (GUI) Software (zip 68791 KB)
3. Source code of our kernel.
Read the datasheet. Install the program. The program works in Windows, and Linux under Wine.
Now we find the driver source code amplifier.
Run a special program from TI.
Open the driver in a text editor.
Go to the line in the picture.
This initialization of the device at startup.
Some options set is one time at startup, but you change it next.
tpa2051_set_control - this line setup amplifier options.
(1,1,16);//0x10 when 1=write mode, 1=register number, 16 = decimal number. ;//0x10 = comment.
16 decimal number. = ;//0x10 comment.
Now, setup options in TI GUI tool = source code. Try it, but first time is not easy. Try it many times.
So, now we look setup options sound amplifier in source code at startup system.
Now, go to line code next picture.
This line setup options your amplifier when you insert headphone jack.
Setup TI GUI Tool = options in source code.
Next we write new settings in source code. We do tweak headphone volume level.
Build your kernel now.
You can get completed build kernel at this post. (High_Boost_LimitterOFF).
I recommend using source driver - High_Boost_LimitterOFF.
Driver MaxBoost_HPLimitter gives a distorted sound. This is a very loud setting, but the quality is poor.
Maybe later I'll find the best setting amplifier.
!!!Exactly the same sound amplifier have HTC Sensation (XE) and Incredible. Yes Superior headphone music quality with same our amplifier
But HTC vendor get out amp setting from kernel and write settings in config file on file system. Here. My trick may apply on HTC too. On HTC not need convert HEX to DEC and rebuild kernel. All in realtime.
Maybe can do the same. And to make GUI Tool, MT Overclocking similar. But not I, sorry.
You can use the driver and method for free in any custom kernel or ROM, if you write a description of the kernel or ROM, the author's method of modification.
ps. Don`t try boost external speaker! He is very easy to burning.
psps. Sorry, bad English. English-speaking moderators, adjust the text to make it easier to read.
Edited by Genrix, 23 January 2012 - 12:54 PM.