Tuning System Wide Volume Level

Search This thread

rebar71

Senior Member
Mar 26, 2012
370
156
Austin, TX
OnePlus 8T
OnePlus 11
I copied the files from system\etc to my SD card, then to my computer. Then I edited them in Excel, re-saved them as CSV files and copied them back. Reboot and enjoy.


Sent from my HTC Sensation using xda app-developers app
 

iverson3-1

Senior Member
Aug 5, 2011
779
65
Honestly I don't notice a difference. :'(

"I wanna be the apex of predators in my backyard"

Joe Rogan
 

adame09

Senior Member
Jun 22, 2010
916
282
32
San Diego, CA
Google Pixel 7
I don't know. I edited manually cuz those contained beats entries. Maybe the system will ignore them or maybe you'll have problems. Make a nand and try it. Either way, you should always make a backup before messing with system files.







Im backing rebar71 on his statement. It does work. Im having it in Frankinstine's AOKP at the moment even the ICS Milestone 6. Just like he said you have to put the files in manually and you have to set the permission also. You can do this with any root explorer. dont copy the beats csv file though. Just the two files; TPA2051_CFG and TPA2051_CFG_XC. The files should be in /system/etc folder.

this is how the permission should look like:
permission.png


Just a tip:

when you see the volume UI is full, press the volume up more cuz it will be louder. It shows full but you still have room for more sound because of this MOD :)

Which file should I download from op???

Sent from my HTC Sensation using Tapatalk 2
 

gallico916

Senior Member
Nov 25, 2010
50
1
Austin
Low Volume

Hey

Anybody knows what the setting should be on JB 4.1.1 (running CleanRom 6.5) HTC ONE X (AT&T model)
Copied the mentioned files to the /system/etc and changed permission but so far NO GO for me

Any advise will be appreciated
 

AndroidSupporter318

Senior Member
Feb 19, 2013
599
222
TEXAS
Not sure if these files will work on HTC one x. This is the HTC sensation forum so most things posted will be exclusive for the sensation. Try looking in the HTC one x forum.

Sent from my HTC Sensation
 

neca94

Senior Member
Dec 5, 2011
75
4
Belgrade
so now that i finally got my root access and freedom, so i flash this mod,and i edit those values and give permission or just flash and use ?
 

kien_vip

Senior Member
Aug 22, 2013
382
259
Gốc Chuối
i edited the files in #1 to get volume louder a bit. may be someone like this :) . don't flash! copy files in zip to system and set permission manual
 

Attachments

  • TPA2051-BoostVolume.zip
    1.3 KB · Views: 27
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    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! :D

    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_MODE_OFF
    1,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MODE_PLAYBACK_SPKR
    2,1,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MODE_PLAYBACK_HEADSET
    3,2,0x00,0x8E,0x20,0x57,0xCD,0x16,0xCD,#TPA2051_MODE_RING
    4,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MODE_VOICECALL_SPKR
    5,1,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MODE_VOICECALL_HEADSET
    6,0,0x00,0x82,0x00,0x07,0xCD,0x59,0x0D,#TPA2051_MODE_FM_SPKR
    7,1,0x00,0x8C,0x20,0x57,0xCD,0x0B,0x8D,#TPA2051_MODE_FM_HEADSET
    8,3,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MODE_PLAYBACK_rev
    9,3,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MODE_VOICECALL_rev
    10,4,0x00,0x8C,0x20,0x57,0xCD,0x55,0x0D,#TPA2051_MODE_PLAYBACK_HEADSET_BEATS_ON
    11,5,0x00,0x8C,0x20,0x57,0xCD,0x4F,0x0D,#TPA2051_MODE_PLAYBACK_HEADSET_BEATS_OFF
    4
    There are other gain controls, or even the AGC, automatic gain control, I'll post it after some trying, as it is possible to damage your speaker, the datasheet has very brief explanation, but techy, I just need to recover some knowledge in school 3 decades ago. :D

    I wrote this down as I reading the datasheet, for the reference myself and in case anyone wants to tweak a lot more, here is what I got in the datasheet, just search TPA2051 for the datasheet pdf.

    Let say this line
    1,0,0x00,0x82,0x00,0x07,0xCD,0x56,0x0D,#TPA2051_MODE_PLAYBACK_SPKR

    the first column is the index, the second is type as you see in the remarks, these are reference of I don't know, maybe kernel, library or service.

    3 ~ 9 columns are the 7 hex registers (0~6) values which is sent to TPA2051.

    reg0: 0x00 = don't bother it, since they all are zero.

    reg1: 0x82 = Amplifier Control Register, it tells which limiter to use (speaker or headphone), and enable or disable AGC, and enable/disable headphone L/R and/or speaker. 0x82 means use speaker limiter.

    In the datasheet - attack time (gain decrease), release time (gain increase).

    reg2: 0x00 = Attack Time and Speaker Limiter Control Register, it is zero, the meaning is no gain decrease and speaker limited to 2.6Vpeak, so don't touch this, make it 0x01 ~ 0x07 will damage your speaker. This is default and so assumes it is a 2.6V speaker.

    reg3: 0x07 = Release Time and Headphone Limiter Level Control Register, this has set release time to 0 hence no gain increase, and 7 is the low 3 bit for head phone limiter which = 111 largest and with reg6 setting of headphone gain of 000 = -12DB, and so it is limited to 0.325V.

    reg4: 0xCD = Mode / Mono Input Volume Control Register, it was related to the wiring, since it is fixed, and so the value should also fixed.

    stero input 1 is from audio source, the codec, should be the AIC3254???
    stero input 2 is from source FM tuner.

    reg5: 0x56 = Stereo Input 1 / Output Gain Control Register, it was set to use headphone gain of 0DB regardless of the secondary heaphone gain of reg6 high 3 bits, and low 5 bits are volume control for input 1. -66DB ~ +18DB.

    reg6: 0x0D = Stereo Input 2 / Headphone Gain Control Register, high 3 bits are secondary headphone gain, but disable in reg5 thus only 5 low bits are used for control stereo input 2. The range is 0x00~0x1F.

    Now the interesting thing is enable the AUTOMATIC GAIN CONTROL in the datasheet and which isn't enabled, or probably tweaking the stereo in of ? line could probably increase the front speaker.

    Maybe celelivada understand more about these, anyway I'll just try and try, hoping not to burn the speaker. :D
    2
    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,0x00,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.
    1
    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?
    1
    So can we flash the one in the post? Just the sensation one?

    Sent from my HTC Sensation using xda premium

    I don't know. I edited manually cuz those contained beats entries. Maybe the system will ignore them or maybe you'll have problems. Make a nand and try it. Either way, you should always make a backup before messing with system files.