yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] eseregin:
Guys, dont you feel some decrease of sound quolity when speaking whith mic fix? I am not sure that it is much better than LaTama htcleo.acdb... the only one real fix - using speakerphone, but to be honest i never use it. I think acdb file may do some extra job, but for me now it is clear that sound quolity in both way better without mic fix.... using Tytung nand 3.0 magldr.

Another - yes, i can tell that when somebody call me mic level lower than i call somebody.

Btw, could we have automatic mic gain control, as in WinMo? Sound on winmo on hd2 was perfect, better than all other phones i used before...
[HD2 Android NAND Development] smokin901:
+1 for that
[HD2 Android NAND Development] alexfocus:
I was not able to adjust the microphone as it was before.

I deleted 10mic_level of / system / etc / init.d and my microphone was again excellent.

I do not know whether it makes sense to regulate it now?

It is essential that a program is first read the value of 10mic_level, and then offered to make an adjustment. What if you do not want to change the settings, how to write without the proposed values ​​in the specified range?
[HD2 Android NAND Development] dysprosi:
So I tried installing tytung_r12_beta1. The mic gain sounds great now but I broke bluetooth and wifi. Any idea on how to get both working?

I'm running [15.JUN.11][ZIP][APP2SD][LEO512][LEO1024]CMYLXGOs Stock Desire HD[RUU1.84] on TMOUS HD2.
[HD2 Android NAND Development] eseregin:
Better in this case use Tytung 11 version kernel, add file htcleo.acdb and thats it...

To make from ROM with new kernel 12 as default included (for example Typhoon 3.6.2) old stile ROM with no mic fix, you'd better flash Tytung R11 kernel and add to /system/etc/firmware file htcleo.acdb (may get it from last Tytung NAND 3.0 build for example). Dont forget to set right permissions to htcleo.acdb. You may delete / system / etc / init.d /10mic_level file as well.
[HD2 Android NAND Development] eseregin:
Guys, dont try to install Tytung kernels directly to Sense builds. It will cause problems

PS

Return Raf kernel back
[HD2 Android NAND Development] mdebeljuh:
You don't need to use default.acdb. You can use htcleo.acdb but most probably you will need to set different values for mic levels than used with default.acdb
[HD2 Android NAND Development] alexfocus:
htcleo.acdb in TaypooN 3.6.2 version is removed and everything works fine with default.acb.

I do not see any problem :)
[HD2 Android NAND Development] alexfocus:
Without setting 10miс_level also works fine and can be removed :D
[HD2 Android NAND Development] eseregin:
On your side probably not, but as i remember default.acb use too high mic gain as default, probably people on other side of communication will put phone away from ear cause sound will be LOUD too much 8-) My wife told me "dont roar at me" even if i spoke in very weak voice 8-)
[HD2 Android NAND Development] alexfocus:
That's her problem, but with adjustments I meet more deaf :D
[HD2 Android NAND Development] memin1857:
10mic_level is just an init script that sets the values on bootup.

Without 10mic_level the levels will be the same as acdb file.

Without 10mic_level, if you don't have the htcleo.acdb file, with mdebeljuh's tytung r11test you will have excessive levels with extreme noise. If you have tytung r12b1, htcleo.acdb is never used, so you WILL get excessive levels.

YES, this thread's fix is mainly for speakerphone mode and getting rid of low audio "playback" because of htcleo.acdb

DON'T FORGET that htcleo.acdb while lowering mic gain, actually causes other side affects such as low audio playback volume.

With this fix, we are able to get different levels for normal and speakerphone mode AND have proper audio playback volume since we are using the default.acdb

If you want your rom to behave as it was, just set about 350 to handset mic level and you will get the same behaviour plus proper audio playback volume + working speakerphone.

That is becase typhoon 3.6.2 has the mic level fix implemented with proper gain level (400). It has tytung r12b1 kernel so it doesn't matter whether htcleo.acdb exists or not, because kernel ignores it.

This is correct. With default.acdb and without mic fix you will have 1000 gain which is excessively distorted and noisy + a lot of background noise as if you were on a train even in quiet situations!

This is correct for mdebeljuh's tytung r11test kernel. With mdebeljuh's tytung r11test kernel, it is not recommended to use htcleo.acdb because it defeats the purpose. With tytung r12b1 kernel, htcleo.acdb is ignored anyway.

This is also correct. The confusion was because tytung kernel was compiled with rafpigna config file, resulting in a tytung kernel that declared itself as rafpigna.

Actually rafpigna kernel has not got this mic fix (as of 2.0) yet. If somebody uses the diff file on front page to make a rafpigna version, than sense users may benefit from this fix too.

I suppose you are using one of the first test kernels on this thread.

Delete/rename htcleo.acdb and use hd2 mic control app from market to set the handset mic gain to 350 and you will get the micphone as it was before.

10mic_level is not read, 10mic_level is a script that sets the values on boot. Actually /proc/mic_level is read for gains.

The specified range will be wrong IF you are using tytung r11test kernel (mdebeljuh's version) WITH htcleo.acdb (it should have been renamed/deleted) so just delete/rename htcleo.acdb and it will be OK. If you insist on using htcleo.acdb than setting gain 1000 to /etc/init.d/10mic_level by hand would do, but that would be the same as having no fix at all.
[HD2 Android NAND Development] memin1857:
WRAP UP

INFORMATION:

- ANDROID uses the values in acdb for setting gains.

- Since our phone is not a native Android one, the default.acdb file doesn't work directly because it has excessive gain which results in untalkable noisy phone.

- In the past an htcleo.acdb file was created by LeTama by modifying default.acdb with lower values. That also fixes normal mode mic gain BUT, makes speakerphone useless AND makes audio playabck (such as ringtones) low in volume!

- mdebeljuh created a new kernel that can dynamically modify the values coming from acdb file. Since htcleo.acdb has EVEYRTHING lowered, we should/must delete/rename htcleo.acdb file to make Android revert back to default.acdb.

- mdebeljuh's tytung r11test kernel rename htcleo.acdb file, but if you use a previous version it may not. So unless you use tytung r12b1 by tytung, you MUST delete/rename htcleo.acdb. With tytung r12b1 it does not matter because it just ignores htcleo.acdb and uses default.acdb at all times.

- tytung's version sets 200 gain by default which is low for most people. There is HD2 MIC CONTROL app by windroidHD in market which makes it easy to change and save the levels.

-400/600 gain for handset/speakerphone should be fine for most people. If you are getting voice echo, just lower them.
[HD2 Android NAND Development] memin1857:
Just do this:

EVEN SHORTER:

- FLASH THE MDEBELJUH'S TYTUNG R11BETA VERSION FROM OPENING POST.

OR

- FLASH TYTUNG R12B1 KERNEL OR UPDATE TO A ROM THAT HAS TYTUNG R12B1 KERNEL

- GET HD2 MIC CONTROL APP FROM MARKET AND SET HANDSET TO 400 AND SAVE PERMANENTLY

IF NOT ALREADY LIKE THAT

.

ALL SHOULD BE FINE NOW. YOU DON'T NEED TO DO ANYTHING WITH ANY ACDB FILE AS LONG AS YOU HAVE THE TYTUNG R12B1 KERNEL. Always make a full backup from cwm first in case anything fails. Be careful about tytung's instructions about magldr/clk/initrd.gz If something goes wrong (such as bootlop, incompatible libaudio.so etc) just do a full restore and wait for your new rom version to have this fix.

----------

Tytung, please make your next version with 400 default gain. Most rom chefs just incorporate your newer version kernel without checking anything.

Someone, please make a rafpigna kernel version with this fix. Diff can be found in first post.

I am sorry for all the confusion but this is how it is. A winmo native phone with Android on it...
[HD2 Android NAND Development] alexfocus:
No, I'm using kernel tytung_r12b1 and set up your microphone I could not, as in the amplification of 350 low-pitched sound get. To hear my companion well, I have to put 500 or more. Without the use of preferences is rich and bright.
[HD2 Android NAND Development] memin1857:
You wrote: "To hear my companion well"

Mic gain is for your companion to hear you, not you hearing your companion. Did you mistype?

As long as you are not getting any voice echos, 500 is OK if you are happy. The newest version of HD2 Mic Control can go up to 500 now, and you can set up to 1000 manually to /etc/init.d/10mic_level

This is the purpose of this fix: adjusting to any value YOU want :)
[HD2 Android NAND Development] alexfocus:
this is my bad English, but you get me :rolleyes:

When I adjust the gain - I can not get a clear bright voice on the other side. My voice is muffled and get a low tone.

Try writing your voice line and listen with adjustment and without

Without adjustments file settings 10miс_level (it blank) , I have no echo effect and background noise
[HD2 Android NAND Development] memin1857:
Whenever 10mic_level is left blank,

All gain levels would get set to -1 after reboot, which is equal to acdb file levels and since tytung r12b1 kernel uses default.acdb (equal to 1000 gain) you should have got excessive noise with extreme gain, but you are saying otherwise which confuses me..

Are you using the libaudio.so from post 97?

What is your default.acdb file size? Maybe your rom chef just copied htcleo.acdb OVER default.acdb
[HD2 Android NAND Development] memin1857:
For people with very low gain even after the fix:

CHECK YOU DEFAULT.ACDB FILE SIZE IN /ETC/FIRMWARE

It is possible that your rom chef copied htcleo.acdb over default.acdb which breaks the levels.

The default.acdb with size other than 122,442 bytes (119.57K) may not work well.

If it is 113,910 (or other size) then change it to the one attached to tis post. 113,910 is the same as LeTama's htcleo.acdb file. Please get the default.acdb which is 122442 bytes.

The working default.acdb file is attached to this post. (It is not a cwm zip file)

Tytung and other kernel developers, please include the this default.acdb file in your kernel update cwm flashable zip files.
[HD2 Android NAND Development] alexfocus:
My default.acdb - 129346 bytes
[HD2 Android NAND Development] alexfocus:
I changed the file on your microphone and the sound was good. Thanks for the advice
[HD2 Android NAND Development] memin1857:
What rom were you using exactly?

Note: I am in the process of making a new "one click fix" that is a cwm flashable zip file that flashes correct libaudio.so and default.acdb and does not include initrd.gz and has reasonably high levels.
[HD2 Android NAND Development] alexfocus:
TyphooN_CM7_v3.6.2-MAGLDR
[HD2 Android NAND Development] memin1857:
Which file did you change?

Is it libaudio.so that fixed your problem?
[HD2 Android NAND Development] memin1857:
New one click fix

Attached file is: kernel_tytung_r12_beta1b_MEMIN.zip

This is CWM flashable tytung r12 beta1 kernel which includes working libaudio.so, default.acdb and has default levels at 350/600. This does not include initrd.gz.

This zip should work with any AOSP, CM7 or MIUI ROM. Please don't use it on Sense ROMS. If someone incorporates the fix to a sense rom compatible rafpigna kernel than I will link it in the first post.

MAKE A FULL BACKUP FROM CWM BEFOREHAND JUST IN CASE.

Please test this zip file and tell if it is working correctly. If it is working then it should stop the confusion and incompatibilities.

Beware, this update will replace your roms libaudio.so and default.acdb with compatible ones.

Check if permissions are set correctly (since I did not modify the updater-script, but it seems to be working according to my testing)
[HD2 Android NAND Development] uzi2:
It's all included and working properly at the higher levels out of the box with this Rom

Swyped from my aHD2oid
[HD2 Android NAND Development] mwakious:
can we have the cLK version please with the fix?

ty for your work!!:D
[HD2 Android NAND Development] mfish123:
Just some feedback that might prove useful. I'm on Hyperdroid CM7 using Tytung R12b1 and the app from the market to change the gain levels. I've found that 500-550 is the sweet spot for the normal mic gain, 650ish is good for speakerphone and 1200 for bluetooth.

I have a Blueant Q2 bluetooth. I always have and still getting some static and popping. Does anyone know if this is due to mic gains or more having to do with a weak signal between my phone and the bt headset?
[HD2 Android NAND Development] memin1857:
Currently, gains won't go above 1000.

That means 1200 should be equal to 1000.

To test weak signal, just temprorarily bring your phone very close together with the bt headset and see if it affects the static/popping. There can't be weak signal within a few centimeters.

If you have access to, try another bluetooth headset, or use your bluetooth headset with another brand phone. Most bt headseats are quite low quality.
[HD2 Android NAND Development] alexfocus:
All replaced, but the quality of the microphone is not received. My interlocutors were deaf.:D

Featured Audio = 550-600

I refuse to use this kernel in favor of JW_tytung_S2.1 without the possibility of gain control
[HD2 Android NAND Development] themadproducer:
Hey memin1857,

thanks for all the information, clarification, and the packaged universal CWM file. :)
[HD2 Android NAND Development] memin1857:
Did you try the latest zip file I made after talking to you?

Check first post again you will find a new package which includes some necessary files.

Also, as uzi2 stated, your rom already includes the fix with good values out of the box. You must have modified something. Please try the latest zip file from the first post.
[HD2 Android NAND Development] alexfocus:
I tried all the options and follow your advice.

Have you tried to record a conversation with CallRecorder?

You hear a recording your voice?
[HD2 Android NAND Development] jaedolla:
clk

+1 for clk version please...........
[HD2 Android NAND Development] memin1857:
I have tried to made a CLK version but since I don't use CLK, I haven't tested it myself.

1) Download the attached file and extract it

2) Make a full backup from cwm just in case.

3) Connect your phone via USB cable with usb debugging enabled.

4) Run cLK_kernel_installer.bat

Note: Since I can't test, a directly flashable cwm zip modified from tytung's nexushd2 updater would replace your ROMS initrd.gz which might cause problems so I went with the tytung's adb+fastboot route. For more information; this is the tytung's post where I got the files from: http://xdaforums.com/showpost.php?p=17090905&postcount=128 I just added my extracted zImage, libaudio.so, default.acdb and removed the command to flash initrd.gz
[HD2 Android NAND Development] clio94:
guys maybe it is time to test this fix in kernel 2.6.35;

it seems that markinus made possible the boot of 2.6.35 kernel http://xdaforums.com/showpost.php?p=17228920&postcount=331

http://gitorious.org/linux-on-wince-htc/cm-on-wince-htc
[HD2 Android NAND Development] mwakious:
Ok,i dled and integrated in my rom...works perfect!!

Ty ty
[HD2 Android NAND Development] memin1857:
I have seen some other people complain about call recorder. Maybe the call recorder is incompatible. Can you uninstall and try again? Ask the person you are talking to if your voice level is fine or not.

There are many call recorders in the market and some of them have warning about low volume. To be able to record it is possible that they are rerouting audio and thus becoming incompatible.
[HD2 Android NAND Development] ph03n!x:
The call recorder issue is again because of libaudio.so, it does not seem to work with the original iamgpc version. With drizztje, it works. With the latest iamgpc version, outbound calls do not get recorded though inbound gets recorded. I had posted about this in the libaudio issues thread's first post.

Swyped from my HTC HD2 running CM7 (Gingerbread 2.3.5)
[HD2 Android NAND Development] odoss:
I wish to see a Raf 1.9 kernel compilation with this fix :(.........
[HD2 Android NAND Development] arizmin:
Please can we have the BEST setting.. so far a lot of feedback & comments but there must be one GOOD setting for our HD2? My current ROM has the built in 400/600 but i can't see any difference with or without this set up.. thanks
[HD2 Android NAND Development] clio94:
I can write outgoing calls.i cant write calls with duration 5+ mins and this problem i had before mic fix and libaudio from iamgpc.in big calls in sdcard folder it writes the file but it is not playable.
[HD2 Android NAND Development] alexfocus:
I did as you asked

With the settings I get a low quality and poor sound. In the settings you need only speakerphone.

My configuration file looks like this

#!/system/bin/sh
echo '1 600' > /proc/mic_level
[HD2 Android NAND Development] memin1857:
You wouldn't notice any difference while normal talking if you previously had the htcleo.acdb. You would now have working speakerphone where in previously you did not.

Audio playback levels would also be better in volume since you are no longer using the htcleo.acdb

400/600 has always been fine, people have been having other problems due to incompatible libaudio or acdb files.
[HD2 Android NAND Development] memin1857:
unfortunately the libaudio that may fix your problem is likely not compatible with the mic fix code (yet)
[HD2 Android NAND Development] memin1857:
I am not getting why you are not needing the handset setting?

echo '0 400' > /proc/mic_level

Also the rom you stated you are using should work out of the box why are you modifying it?

Please flash your rom again and don't flash any other zip.

Call recorder won't work with the included libaudio.so and other libaudio.so won't work with new kernel..
[HD2 Android NAND Development] clio94:
Right.my priority is not to write calls but to have a good communication over my phone.so I can live with this.after the fix,noone make me complaints for no hear me.before the fix it was usual to say that they don't hear me well.the thing that I want badly to be fixed is commands over bt.

Sent from my HTC HD2
[HD2 Android NAND Development] alexfocus:
I corrected to make it better.

CallRecorder with my adjustment works fine.

My microphone does not need to set up 400 echo '0 '> / proc / mic_level
[HD2 Android NAND Development] memin1857:
Finally :)

Can you share what did you do exactly to make it work?
[HD2 Android NAND Development] tmihai20:
I use 600 for headset. The headset slider only goes to 500. Please modify the app so that we can choose values greater than 500, maybe 700 or at least 600 (600 is the maximum value after which distorting appears).
[HD2 Android NAND Development] memin1857:
You can manually do it by editing /etc/init.d/10mic_level

But I wouldn't recommend it because based on the industrial standards 600 is suitable for speakerphone, kind of too much for any phone's standard gain. It's your phone though, you can set to any value you want.

We didn't make the app range that much to reduce the number of complaints as a result of improper settings.
[HD2 Android NAND Development] arizmin:
My current default setup is at 400/600 and I have many callers said my voice is bit low.. can i direct edit the setting to be 500/600 or will it default back to 400/600?

thanks
[HD2 Android NAND Development] memin1857:
You can JUST use HD2 MIC CONTROL APP to set 500/600 and save it permanently. (Update to newer version from Market to be able to set 500)

BTW, I can't understand how 400 gain would result in low volume. Are you not using the kernel_tytung_r12_beta1b_MEMIN.zip in the first post?

AFAIK the only way 400 gain would result in low volume is using tytung r11 test kernel WITH htcleo.acdb or a non-standart default.acdb

What ROM are you using?

- Can you try deleting htcleo.acdb from /etc/firmware if it exists? (not required with tytungr12b1)

- Can you check default.acdb file size? Is it 122442 bytes? If not overwrite with this one over yours: http://xdaforums.com/attachment.php?attachmentid=707993&d=1314970919 Don't forget to set permissions fully with Root Explorer

- Can you check your libaudio.so file? Overwrite this one over yours: http://xdaforums.com/attachment.php?attachmentid=701963&d=1314444980

- Did you flash any kernel zip or did your rom come with the fix?

With these two files properly in place you should have plenty gain with 400.
[HD2 Android NAND Development] arizmin:
Thanks for yr quick reply... i'll check it and do the necessary changes and let you know... btw i'm using Lang NDT CW7 ROM with kernel_tytung_r12b1 and the default is set at 400/600...
[HD2 Android NAND Development] memin1857:
Don't forget to make a full backup from cwm first, just in case you want to rollback.
[HD2 Android NAND Development] mfish123:
How does this fix compare to the "under development" fix

I posted the same questions in this thread: http://xdaforums.com/showthread.php?t=1227784

Obviously they are very similar but I wanted to see what kind of feedback I get here.

I've read the majority of both posts and don't need to be spoon fed but basically it seems like both are a compromise and I can't seem to decipher which will work best for my particular needs.

I do not use wifi / voip calling and I rarely use the speakerphone. However, I do use bluetooth headset extensively and also prefer to have audible touch tones enabled so the robot voice fix is important to me to.

Based on these preferences would the fix in this post or the "under development" thread, fit my needs the best?

Again thanks in advance for the feedback.
[HD2 Android NAND Development] memin1857:
You can have audible touchtones enabled because this thread has the iamgpc libaudio which fixes the robo voice.

If you don't use voip then you don't need the drizztje libaudio on the other thread.

Bt works, their problem is about voice search or sth similar.

This is the development thread, usually chefs/roms naturally follow a path automatically. Best way is to have all at once, not being have to choose. That will happen eventually. The issues are choices happen while something is being developed.
[HD2 Android NAND Development] clio94:
guys if we have a rom with tytung r12 kernel in which is present htcleo.acdb and correct default.acdb,htcleo.acdb will be used by any way;
[HD2 Android NAND Development] memin1857:
I am guessing this is a google translate result.

Tytung r12 will ignore htcleo.acdb. That means it doesn't matter whether htcleo.acdb exists or not, it will never be used. The default.acdb must be original for proper levels.

Any older kernel requires htcleo.acdb to be present or it will result in noise.
[HD2 Android NAND Development] roney:
default.acdb

default.acdb:122,442bytes, the "remote" party have echo!

miui_default.acdb:113,910bytes, small handset mic_level!

TyphooN+gpc_default.acdb:129,346bytes,large handset mic_level!

Bemused???????
[HD2 Android NAND Development] codiak:
The miui_default.acdb (133,910 bytes) is just a renamed htcleo.acdb
[HD2 Android NAND Development] Hnktc:
Using Hd2 Mic Gain control:

Handset: 400

Speaker: 525

Headset: 500

Bluetooth: 900

It seems ok.. no mic gain, no background noise with kernel r12.. what do you think?
[HD2 Android NAND Development] clio94:
look here http://xdaforums.com/showpost.php?p=17524206&postcount=122

i didnt know that final kernel r12 has a newer libaudio and i thought that different behaviour (same like drizzte lib audio) was coming from htcleo.acdb
[HD2 Android NAND Development] stratos:
Sense ROMs

Finally, Sense Roms have a Kernel with fix (tanks to HierOS) :

http://xdaforums.com/showthread.php?t=1233125

Tested on my NDT SENSE3.0 PYRAMID BASED V6.0