• Announcements

    • PaulOBrien

      Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance) CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission) ROMs must give full credit to the original author ISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • PaulOBrien

      Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0
Genrix

[HOWTO-GUIDE] Tweak sound amplifier.

22 posts in this topic

And so, if you do not like the sound volume on your device, then the volume can be changed.

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.

=> ./kernel/arch/arm/mach-msm/qdsp5v2/tpa2051.c

Run a special program from TI.

Open the driver in a text editor.

Go to the line in the picture.

Source_TPA_GUI_2.jpg

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.

Headphone_Setup.jpg

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.

Tweak_HP.jpg

Well done.

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.

Good luck! :D

!!!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.

Screenshots.zip

High_Boost_LimitterOFF_tpa2051.c.zip

Max_Boost_HPLimitter_tpa2051.c.zip

Edited by Genrix
6

Share this post


Link to post
Share on other sites

c'è un app chiamata volume + ed è molto più intuitiva e veloce di questa configurazione

0

Share this post


Link to post
Share on other sites

Thank you a lot ;)

I'll add it into cm7 kernel :)

0

Share this post


Link to post
Share on other sites

Volume+ its hack android sound subsystem and get you mono sound.

My mod is hardware change. Quality sound is higher.

And use English. Internatinal community dont like national speech. You should respect forum members.

2

Share this post


Link to post
Share on other sites

Volume+ its hack android sound subsystem and get you mono sound.

My mod is hardware change. Quality sound is higher.

And use English. Internatinal community dont like national speech. You should respect forum members.

+ 1

But did you tried to boost speaker volume?

Edited by davidevinavil
0

Share this post


Link to post
Share on other sites

sorry , i am noob , i am downloading program from ti and after that how can i continue ?

0

Share this post


Link to post
Share on other sites

Possible boost headphone and external speaker. For call speaker tpa2051 amplifier use bypass mode and he is not amplife volume level.

In conference mode call tpa2051 amplife speech and send her to external speaker. It's possible boost. For it driver resive special trigger change work mode.

Boost all mode work amplifer is not different. Read first message this tread and search line in source driver.

0

Share this post


Link to post
Share on other sites

why i have to read datasheet ?

0

Share this post


Link to post
Share on other sites

This guide for people who made costom ROM and make OC kernel. He understand what I wrote in 1st post. This guide not for all and not for noobs too.

0

Share this post


Link to post
Share on other sites

This guide for people who made costom ROM and make OC kernel. He understand what I wrote in 1st post. This guide not for all and not for noobs too.

ok , thanks ' i hate sound of our phones ... i want this in t&l...

0

Share this post


Link to post
Share on other sites

I've tried this configuration for speaker but seems no change..

post-724294-0-89853700-1327161905_thumb.

And this is the code

int tpa2051_speaker_phone_switch(int command)

{

	if (command == 1) {

		pr_debug("tpa2051 speaker phone switch = true \n");

		tpa2051_set_control(1, 1, 194);//0xC2

		tpa2051_set_control(1, 2, 37);//0x25

		tpa2051_set_control(1, 3, 87);//0x57

		tpa2051_set_control(1, 4, 13);//0x0D

		tpa2051_set_control(1, 5, 215);//0x8D

		tpa2051_set_control(1, 6, 13);//0xD

	} else {

		pr_debug("tpa2051 speaker phone switch = false \n");

		tpa2051_set_control(1, 1, 16);//0x10

	}


	return 0;

}

Edited by davidevinavil
0

Share this post


Link to post
Share on other sites

even if it is offtopic I try to ask the same

When I receive calls on my caller hears the echo. This is due to the TPU cover. By turning off the second microphone with the option that appears in the call, the problem goes away.

Can you make a option which disables the second microphone?

Edited by vamper89
0

Share this post


Link to post
Share on other sites

davidevinavil

Don`t need add all registers in driver. Try to remove line code for registers №5 and №6. I think №5 and №6 not need.

I see your settings.... Don`t set limit at 4.2V. Is very high. You burn a speaker and need to do repair him. Set in first time 3.6V.

@all

I recommend using source driver - High_Boost_LimitterOFF.

Driver Max_Boost_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.

Edited by Genrix
0

Share this post


Link to post
Share on other sites

Volume+ its hack android sound subsystem and get you mono sound.

My mod is hardware change. Quality sound is higher.

And use English. Internatinal community dont like national speech. You should respect forum members.

sorry sorry :(

0

Share this post


Link to post
Share on other sites

Thank you a lot ;)

I'll add it into cm7 kernel :)

pretty idea! :D

0

Share this post


Link to post
Share on other sites

how can i buld kernel? sorry i'm a noob

0

Share this post


Link to post
Share on other sites

Hello genrix ...

we know that the speaker sound is not very good on our smartphones, you can make a hardware change for this problem? maybe changing the Hz output from the sound card?

Edited by ciauasd
0

Share this post


Link to post
Share on other sites
we know that the speaker sound is not very good on our smartphones, you can make a hardware change for this problem? maybe changing the Hz output from the sound card?

No, change in level at the output frequency of sound is only possible with the software. Including an external speaker.

If you need it, there is only one way - to prepare a melody for the device.

But I and davidevinavil working to increase the volume of the external speaker. Maybe we'll get.

0

Share this post


Link to post
Share on other sites

ok, thanks... i'm hopeful!

Edited by ciauasd
0

Share this post


Link to post
Share on other sites

What I have experienced is that sound in MIUI is a lot worse of DMD or t&l or stock rom...

Gonna test CM soon and write back.

0

Share this post


Link to post
Share on other sites

good evening .. there someone who knows how to fill out with modified drivers for CyanogenMod 7.23? sound of my cell and low in both cases that the headphones ..

0

Share this post


Link to post
Share on other sites

The kernel is already present in cm7.23 you just need to flash it and it will work.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.