Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mudhi
Old
(Last edited by mudhi; 16th April 2012 at 03:28 PM.)
#1  
mudhi's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 332
Join Date: Jul 2010
Location: Taiwan
Default Tuning System Wide Volume Level

As I making a beats mod for sense 3.5, found interesting file TPA2051_CFG.csv and TPA2051_CFG_XC.csv, the first one should be the template and the second one is the working i2c command file for various system volume, search google for TPA2051, is the amplifier which uses i2c interface, I don't know what exactly i2c is, maybe electronic engineers can explain. Comparing XE and normal sensation's, giving only one difference value, see below in blue, that is the playback_headset max amplified value, XE is 55, sensation is 50, that's why the later you hear a lower volume, tweak it to 56 or maybe higher to here boom-boom-boom, pong-pong-pong, ping-ping-ping effect!

For ICS, get the files from my beats mod.

Do not tweak other values except you know exactly what you are doing, there are many of them are gain control, just one bit of them could doubled the gain and may damage your speaker. The datasheet has all the descriptions of these registers of I2C interface.

0x55 seems to be the largest value that the stock htc headset and beats headset can tolerate, 0x59 seems to be the largest value that the speaker can tolerate. For both, the largest volume value is 0x5F.

This should also applies to any other htc devices as long as there is a file similar to this, this is sensation's TPA2051_CFG_XC.csvf ile, if you are using other device, just use that file of your device.

================================================
SoundBoostForGB&ICS.zip
This work for both GB & ICS, without enable the AGC, enabling AGC making music sounds not so good, values for headset is default of XE ROM (0x55), and speaker is (0x59)

#TPA2051 PYDLE_20111027_1Voutput_ON_55_OFF_4F,,,,,,,,,
#mode/kind/i2c_cmds[7],,,,,,,,,
#kind = 0:spk, kind = 1:HEADSET, kind = 2:ring ,kind = 3:rev,kin=4 : 0ff,,,,,
0,4,0x00,0x90,0x00,0x00,0x00,0x00,0x00,#TPA2051_MO DE_OFF
1,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MO DE_PLAYBACK_SPKR
2,1,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MO DE_PLAYBACK_HEADSET
3,2,0x00,0x8E,0x20,0x57,0xCD,0x16,0xCD,#TPA2051_MO DE_RING
4,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MO DE_VOICECALL_SPKR
5,1,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MO DE_VOICECALL_HEADSET
6,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MO DE_FM_SPKR
7,1,0x00,0x8C,0x20,0x57,0xCD,0x0B,0x8D,#TPA2051_MO DE_FM_HEADSET
8,3,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MO DE_PLAYBACK_rev
9,3,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MO DE_VOICECALL_rev
10,4,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_M ODE_PLAYBACK_HEADSET_BEATS_ON
11,5,0x00,0x8C,0x20,0x57,0xCD,0x4F,0x0D,#TPA2051_M ODE_PLAYBACK_HEADSET_BEATS_OFF
The Following 69 Users Say Thank You to mudhi For This Useful Post: [ Click to Expand ]
 
celelivada
Old
#2  
Member
Thanks Meter 10
Posts: 73
Join Date: Oct 2010
Location: Zagreb

 
DONATE TO ME
i2c is a in-circuit protocol for comunicating. Thats the protocol the chips and memory banks use to transfer and address data. It is based on a serial connection. I dont know if any of that helps but just wanted to share that info. Now for a question, how to apply and what are the compatable ROMs?
The Following User Says Thank You to celelivada For This Useful Post: [ Click to Expand ]
 
mudhi
Old
#3  
mudhi's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 332
Join Date: Jul 2010
Location: Taiwan
Quote:
Originally Posted by celelivada View Post
i2c is a in-circuit protocol for comunicating. Thats the protocol the chips and memory banks use to transfer and address data. It is based on a serial connection. I dont know if any of that helps but just wanted to share that info. Now for a question, how to apply and what are the compatable ROMs?
A big thank for your information, and that proves that value is the radio button of amplifier, and since it is a protocol, it will alike for all devices that uses the same chip, how to apply I'll post it on first post. Thanks.
The Following 2 Users Say Thank You to mudhi For This Useful Post: [ Click to Expand ]
 
viking37
Old
#4  
viking37's Avatar
Senior Member
Thanks Meter 1213
Posts: 1,541
Join Date: Sep 2010
Location: On XDA and near my HTC One and always near my Nexus 4
Hi,
I just tested for the value in PLAYBACK_SPKR,set as you recommended and...Yes it works!There is an improvement
Thank you very much for this tip,very good
No one else has tested
 
celelivada
Old
#5  
Member
Thanks Meter 10
Posts: 73
Join Date: Oct 2010
Location: Zagreb

 
DONATE TO ME
WELL DONE. It works !!!! I will look into the other files and see how to tweak them if and when I get time because I'm at college for my masters all day. If there's anything I can help you, feel free to PM.
 
graeme@osprey2000.wanadoo
Old
#6  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Mar 2008
Location: kilmaurs
Default senastoin xe sense 3

would this work on my sesation xe runing sense 3 stock rom and were do i fiid the files new to this first andriod phone was using wm6.5
 
celelivada
Old
#7  
Member
Thanks Meter 10
Posts: 73
Join Date: Oct 2010
Location: Zagreb

 
DONATE TO ME
it should work, didnt check it but it has ti have this cofig file. It says in the first post, I used ES file manager, and enabled the root access feature and browsed to the file specified and chenged the 2 values.

---------- Post added 15th December 2011 at 12:25 AM ---------- Previous post was 14th December 2011 at 11:48 PM ----------

I found the AIC3254_reg_dualmiccx file and after a loooong review of the datasheet from texas instruments, it seems that the video recording clipping can also be fixed this way. I found that in the:
A17,VideoRecord_IMIC,SET,w,w,w,w,w,w,w,w,w,w,w,w,w ,w,w,w,w,w
,,REGISTER,0x00,0x34,0x36,0x37,0x39,0x3B,0x3C,0x00 ,0x51,0x52,0x53,0x54,0x00,0x0E,0x0F,0x09,0x12,0x13
,,VALUE,0x01,0x20,0x02,0x20,0x02,0x58,0x58,0x00,0x 00,0x88,0x00,0x00,0x01,0x02,0x02,0x3F,0x03,0x03

you can change 83 and 84 memory bank (0x53 and 0x54) to control the volume. 0000 0000 is default in the datasheet, which is 0dB.To lower the gain you have to write a negative digital number in those registers eg. 1111 1111 is a gain of -0dB.
The Following 2 Users Say Thank You to celelivada For This Useful Post: [ Click to Expand ]
 
mudhi
Old
#8  
mudhi's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 332
Join Date: Jul 2010
Location: Taiwan
Thank you celelivada, I'll try at weekend. One more question, I,m tweaking some soundimage file for sound effects, the srs processor, there is input & output gain, default is 1.0 in and 1.0 out, the question is if input tweak to 0.5, will I get a a louder out?
 
cybermungo
Old
#9  
Senior Member
Thanks Meter 21
Posts: 192
Join Date: Feb 2011
Works great, thanks for the tip ...

Sent from my HTC Sensation Z710e using XDA App
 
The Illest 619
Old
#10  
The Illest 619's Avatar
Senior Member
Thanks Meter 322
Posts: 710
Join Date: Jun 2011
Location: San Diego
nice. cant believe a volume fix was that easy and i know its been an issue for a long time.


Device:Sensation 4G | Rom:ViperS 1.6.2 | Battery:1730mAh Stock Evo3D, 1900mAh Anker
Kernel:Faux 10b8/192mhz-1.24mhz(432mhz screen off)/-75mV/gpu 266mhz/512Mb Hard Swap
Radio: 11.76A.3504.000P_11.24A.3504.31_M | Ril:HTC-RIL 4.0.0036HMQ | Build:Universal 3.33.401.106

Extras
Inverted Google Now!
My ViperS Sigs & Splash Screens
Viper Sigs for ALL Viper ROM Versions

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...