News

October 2019 security patches are out for Google Pixel phones and Essential Phone

Oct 7, 2019

Google Camera 7.1 hints at saving photos with depth data for social media, reveals Social Share supported apps

Oct 7, 2019

Download: Google Camera 7.1 rolling out with new UI, Framing hints, and Social Share

Oct 7, 2019

Google requires new Android devices with Type-C ports to not break USB-PD compatibility

Oct 7, 2019

Google will require new Android devices to run Android 10 if approved after January 31, 2020

Oct 7, 2019

The new Motorola One may have a pop-up camera and mid-range specs

Oct 7, 2019

Exclusive: Google is making Digital Wellbeing and Parental Controls an Android requirement

Oct 7, 2019

Exclusive: Google is working on a Game Device Certification program for Android gaming smartphones

Oct 7, 2019

Amazon’s new Fire HD 10 tablet has USB-C charging and costs $149

Oct 7, 2019

Looking to Land a Project Management Gig? Try These Courses Under $40

Oct 7, 2019

Forums

Forum Home

Top Devices

OnePlus 7 Pro

Galaxy S10+

Pixel 3 XL

Honor View20

New Devices

Realme X

OnePlus 7 Pro

Google Pixel 4 XL

Galaxy Note 10

Topics

Android Auto

Android Mods

Android TV

Apps & Games

Themes

Wear OS

Smartwatches

Windows 10

Devices

Asus

ASUS ROG Phone II update adds key mapping, squeeze shortcuts and more

Oct 7, 2019

[Update: US & India Details] ASUS ROG Phone II launches globally with the Snapdragon 855 Plus, 12GB RAM, up to 1TB UFS 3.0 storage, and a massive 6000mAh battery

Sep 23, 2019

ASUS ROG Phone II with crazy specs and a crazier pricing launches in India

Sep 23, 2019

Netflix certifies new Android devices for HD and HDR10 video playback, including the Pixel 4

Sep 16, 2019

More Articles on Asus

Essential

Oct 7, 2019

Essential Confirms its Next Mobile Device is in Early Testing

Sep 23, 2019

Stable Android 10 is now available for the Google Pixel and the Essential Phone

Sep 3, 2019

September 2019 security patches are out for Google Pixel phones and Essential Phone

Sep 3, 2019

More Articles on Essential

Google

October 2019 security patches are out for Google Pixel phones and Essential Phone

Oct 7, 2019

Google Camera 7.1 hints at saving photos with depth data for social media, reveals Social Share supported apps

Oct 7, 2019

Download: Google Camera 7.1 rolling out with new UI, Framing hints, and Social Share

Oct 7, 2019

Google requires new Android devices with Type-C ports to not break USB-PD compatibility

Oct 7, 2019

More Articles on Google

Honor

Honor Band 5 vs Mi Band 4 vs Fitbit Inspire HR

Oct 4, 2019

Honor Band 5 update adds Blood Oxygen Monitoring and Music Control

Oct 3, 2019

Honor 9X Pro to launch in Europe with a different fingerprint placement

Sep 27, 2019

How to get Google Play Services on the Huawei Mate 30 Pro and Honor 9X [Video]

Sep 25, 2019

More Articles on Honor

HTC

Xiaomi Redmi 2, Moto G 2015, Sony Xperia Z3 Compact, HTC 10, and HTC One M8 receive Android 10 custom ROMs

Oct 4, 2019

Lava launches HTC Wildfire X in India with MediaTek Helio P22 for ₹9,999 ($140)

Aug 14, 2019

LineageOS 16 adds support for the Samsung Galaxy Note 3 and HTC One M8

Aug 12, 2019

HTC stops selling phones in the UK due to patent dispute

Aug 6, 2019

More Articles on HTC

Huawei

Huawei adds 20 more devices to the EMUI 10 update roadmap

Oct 1, 2019

Huawei Mate 30 Pro – A Deep Dive into the Hardware and Software [Video]

Sep 27, 2019

How to get Google Play Services on the Huawei Mate 30 Pro and Honor 9X [Video]

Sep 25, 2019

Huawei launches MediaPad M5 Lite with M-Pen, Harman Kardon-tuned quad speakers in India

Sep 24, 2019

More Articles on Huawei

Lenovo

Motorola starts rolling out Android 9 Pie for the Moto Z2 Play

Sep 26, 2019

Hands-on with the Motorola One Zoom & Moto E6 Plus [Video]

Sep 17, 2019

Android 10 custom ROMs arrive on the Xiaomi Mi 3, Mi 4, Redmi Note 7, and the Lenovo ZUK Z2 Plus

Sep 17, 2019

Netflix certifies new Android devices for HD and HDR10 video playback, including the Pixel 4

Sep 16, 2019

More Articles on Lenovo

LG

LG launches truly wireless earbuds with Google Assistant and fast charging

Oct 1, 2019

Developers port Android 10 to the Xiaomi Redmi Note 4, Redmi 6 Pro, OnePlus 5/5T, LG V30, and Samsung Galaxy Tab S5e

Sep 26, 2019

Android 10 custom ROMs are now available for the Xiaomi Mi Note 3, Redmi 3s, OnePlus 2, Google Nexus 6P, Sony Xperia X, and LG V40

Sep 22, 2019

Netflix certifies new Android devices for HD and HDR10 video playback, including the Pixel 4

Sep 16, 2019

More Articles on LG

Motorola

The new Motorola One may have a pop-up camera and mid-range specs

Oct 7, 2019

Xiaomi Redmi 2, Moto G 2015, Sony Xperia Z3 Compact, HTC 10, and HTC One M8 receive Android 10 custom ROMs

Oct 4, 2019

[Update: New Purple Render] Motorola One Macro leaks on a Saudi retailer, revealing design and macro camera

Oct 2, 2019

Motorola Camera update brings Google’s Playground AR Stickers to the Motorola One Vision, One Action, and One Zoom

Sep 30, 2019

More Articles on Motorola

Nokia

Android 10 gets ported to the Xiaomi Redmi Note 5 Pro, Redmi 4X, Mi Max, 2016 Samsung Galaxy Tab A 10.1, and Nokia 6.1

Sep 30, 2019

[Update: Android 10 Go Edition] HMD Global reveals Android 10 update roadmap for its Nokia smartphones, teases cheap 5G phone for 2020

Sep 27, 2019

Nokia feature phone powered by Android leaks on video

Sep 20, 2019

[Update 2: 7.2 goes on sale in India] HMD Global announces the mid-range Nokia 7.2 and Nokia 6.2 smartphones at IFA 2019

Sep 19, 2019

More Articles on Nokia

OnePlus

OnePlus 8 (yes really) leaks with a punch hole display and triple cameras

Oct 3, 2019

Paranoid Android releases Android 10 custom ROMs for the OnePlus 7 Pro and Redmi K20

Oct 3, 2019

[Update: Android 10 Support] Control the OnePlus 7 Pro’s refresh rate on a per-app basis with Auto90

Oct 3, 2019

You can buy the OnePlus 7T one week early at pop-up events in NYC and London

Oct 1, 2019

More Articles on OnePlus

OPPO

Redmi K20/K20 Pro, Redmi Note 7/7 Pro, Motorola One Action/Zoom, and more now support Google’s AR services

Sep 28, 2019

OPPO Reno 10x Zoom Review: A New Flagship Contender with Impressive Imaging Capabilities

Sep 21, 2019

OPPO’s 65W SuperVOOC charges a 4000mAh battery in just 30 minutes

Sep 18, 2019

OPPO will let third-party camera apps use its beauty and HDR functions thanks to Google’s CameraX API

Sep 16, 2019

More Articles on OPPO

Razer

[Update 2: Rolling out again] Razer affirms its plans to upgrade the Razer Phone to Android Pie

Sep 26, 2019

ASUS ZenFone 6, Razer Phone, and Samsung Galaxy A3/A5/S5 Neo are now supported by LineageOS 16

Aug 20, 2019

Razer Phone 2 prototype with 512GB storage, dual SIM, and a THX logo appears online

Aug 12, 2019

[Update 2: AT&T Rollout] The Razer Phone 2’s Android Pie update rolls out next week for unlocked devices

Jul 26, 2019

More Articles on Razer

Samsung

Microsoft rolls out a new Windows 10 Insider Build with Link to Windows support for the Galaxy S10 and Fold

Oct 7, 2019

[Update: Launched in India] Samsung launches the Galaxy A20s with an Infinity-V display and triple cameras

Oct 5, 2019

Unofficial TWRP now available for the Samsung Galaxy Note 10+ and Galaxy Tab S6 (Snapdragon)

Oct 4, 2019

Samsung shuts down mobile phone production in China

Oct 3, 2019

More Articles on Samsung

Sony

Sony Xperia 8 with 21:9 display and Snapdragon 630 launched in Japan

Oct 7, 2019

Sony finally makes PS4 Remote Play available for all Android devices

Oct 7, 2019

Xiaomi Redmi 2, Moto G 2015, Sony Xperia Z3 Compact, HTC 10, and HTC One M8 receive Android 10 custom ROMs

Oct 4, 2019

Android 10 custom ROMs are now available for the Xiaomi Mi Note 3, Redmi 3s, OnePlus 2, Google Nexus 6P, Sony Xperia X, and LG V40

Sep 22, 2019

More Articles on Sony

Vivo

Redmi K20/K20 Pro, Redmi Note 7/7 Pro, Motorola One Action/Zoom, and more now support Google’s AR services

Sep 28, 2019

Vivo U10 launched in India with Snapdragon 665, 5000mAh battery for ₹8,990 ($127)

Sep 24, 2019

Vivo V17 Pro with dual pop-up cameras, 48MP quad rear cameras launches in India

Sep 20, 2019

Vivo NEX 3 5G announced with extreme curved display and 64MP camera

Sep 16, 2019

More Articles on Vivo

Xiaomi

Honor Band 5 vs Mi Band 4 vs Fitbit Inspire HR

Oct 4, 2019

Xiaomi Redmi 2, Moto G 2015, Sony Xperia Z3 Compact, HTC 10, and HTC One M8 receive Android 10 custom ROMs

Oct 4, 2019

Paranoid Android releases Android 10 custom ROMs for the OnePlus 7 Pro and Redmi K20

Oct 3, 2019

Android 10 gets ported to the Xiaomi Redmi Note 5 Pro, Redmi 4X, Mi Max, 2016 Samsung Galaxy Tab A 10.1, and Nokia 6.1

Sep 30, 2019

More Articles on Xiaomi

ZTE

How to unlock the bootloader of the ZTE Axon 10 Pro

Sep 23, 2019

ZTE is back in the US with the Axon 10 Pro for $550

Aug 28, 2019

China Unicom teases new 5G Xiaomi phone, Samsung Galaxy A90 5G, and Huawei Mate 30 5G

Aug 10, 2019

The Orange Neva Jet is a rebranded 5G ZTE Axon 10 Pro likely headed to France

Jul 26, 2019

More Articles on ZTE

Realme

More Articles on Realme

Nubia

Nubia Z20 Hands-on: Dual-Screens in a Different Way [Video]

Oct 4, 2019

[Update: Global launch on October 16th] The Red Magic 3S is an upgraded Red Magic 3 with the Snapdragon 855 Plus and UFS 3.0 storage that launches globally next month

Sep 25, 2019

The Dual-Screen Nubia Z20 launches in North America and Europe next month

Sep 23, 2019

Nubia Z20 launches with dual AMOLED displays, Snapdragon 855 Plus, and triple cameras

Aug 8, 2019

More Articles on Nubia

More

Topics

Features

Analysis/Editorials

Android Pie

App Teardowns

Chromebooks

Development

Exclusives

Google Products

Qualcomm

Reviews

Site Announcements

Wear OS

Customize

LineageOS

Mods

Tutorials

TWRP

XDA Spotlight

Best Posts

Get Magisk

How to Root

Get Xposed

Get YouTube Vanced

How to use ADB

Get Google Camera

Get Substratum

close

Try these searches

Android Pie

Note 10 Wallpaper

How to block ads on Android

Honor 30

Pixel 4 twrp

Magisk

OnePlus 7 Pro fingerprint

Other Search Options

Full Search Page

Advanced Forum Search

close

Remember me

Forgot password?

Log In

Register or Login with Google

Notifications

My Devices (edit)

Log Out

Settings

Reported Posts

XDA’s Apps

Nav Gestures

Add swipe gestures to any Android, no root

One handed mode

Make your phone easier to use with one hand, no root

XDA Forum App

The best way to access XDA on your phone

XDA Labs

An app store for independent developers

Hyperion Launcher

A sweet, feature-filled launcher with a beautiful UX.

Sites we like

Swappa

XDA's official marketplace for buying and selling tech

Pocketnow

Premium videos

Social

Resources

Subscribe to our Newsletter

Contact

About

Tip Us

Android 10

Honor

Samsung

Huawei

Honor 20

Xiaomi

Pixel 4

Snapdragon

OnePlus 7 Pro

Galaxy Note 10

ZenFone 6

xda-developers
HTC Leo: HD2
HD2 Android
HD2 Android NAND Development

[01/10] [DEV] [FIXED] Low Speakerphone Mic Gain & High Background Noise ONE CLICK FIX by memin1857

Search Forums

Show Threads

Show Posts

Tag Search

Advanced Search

Find All Thanked Posts

Go to Page...

FORUMS

HD2 Android NAND Development

HD2 Android Q&A, Help & Troubleshooting and General

HD2 Android SD Development

HD2 Android Themes and Apps

Remove All Ads from XDA

Most Thanked

ALL-TIME

RECENT

13tytung_r12_beta1 Since mdebeljuh used
rafpigna kernel's .config …
tytung2011-Aug-29 12:21

13FIX -setting mic level/gain Here are test and debug
kernel. Only …
mdebeljuh2011-Aug-27 7:37

11 (quote) :) here you
go... HD2 Mic Control in
android market. …
windroidHD2011-Aug-30 23:22

11 Hi there! Here are the
files, I included the
kernel patch and …
letama2011-Jul-10 7:11

9New one click fix Attached file is: …
memin1857 OP2011-Sep-02 10:41

Thread Search

Suggested Apps

Official XDA Forum App

The XDA App is the fastest way to access the forums on mobile.

Navigation Gestures

Customizable gesture control for any Android device.

XDA Labs

Labs is an independent app store that gives developers full control over their work.

Substratum

The ultimate, most complete theming solution for Android.

XDA Feed

The best way to get cutting edge news about your device!

Top Forum Discussions

Amazon Fire TV Stick 4K can now be bootloader unlocked

October 7, 2019

Unofficial TWRP now available for the Samsung Galaxy Note 10+ and Galaxy Tab S6 (Snapdragon)

October 4, 2019

Xiaomi Redmi 2, Moto G 2015, Sony Xperia Z3 Compact, HTC 10, and HTC One M8 receive Android 10 custom ROMs

October 4, 2019

AutoResponder for Instagram helps you automate your DM responses

September 30, 2019

Change the Android Auto background with Substratum themes

September 23, 2019

Bliss OS, an Android ROM for your desktop PC, now supports the Vulkan Graphics API

September 23, 2019

How to unlock the bootloader of the ZTE Axon 10 Pro

September 23, 2019

More Forum Links

Tweet

Like

[01/10] [DEV] [FIXED] Low Speakerphone Mic Gain & High Background Noise ONE CLICK FIX

907 posts

Thanks Meter: 204

By memin1857, Senior Member on 10th July 2011, 10:46 AM

View Profile
View Forum Posts

Post Reply
Email Thread

Page 1 of 40
1
2
3
11

Last

01/10 Update: New Tytung R12.4 Kernel is attached at the bottom. initrd.gz is removed so you can use it with your magldr + cm7/miui/aosp rom. THIS IS ALL THAT IS NEEDED FOR MIC GAIN AND VOICE ECHO FIX.

---------older stuff ------------

Flash THIS FILE from CWM Recovery. (For MAGLDR AOSP, CM7 and MIUI ROMS. NOT for SENSE ROMS) This contains the tytung r12beta1 kernel.

More information: http://forum.xda-developers.com/show...&postcount=268

For sense roms check post 308:

http://forum.xda-developers.com/show...&postcount=308

Check the libaudio.so & acdb file information below. Also you may need to copy default.acdb as htcleo.acdb because current version of sense kernel may bootloop without it.

For MIUI if there is miui_default.acdb exists in/etc/firmware, you should overwrite it with the default.acdb version below.

VOICE ECHO:If the "remote" party have echo reduce "your in-call" volume with the side vol keys on your hd2.

More info: http://forum.xda-developers.com/show...&postcount=279

Please check this post, try the acdb file there and give feedback here please whether it fixes echo or not:

http://forum.xda-developers.com/show...&postcount=330

ALWAYS MAKE A FULL BACKUP FROM CWM, JUST IN CASE!

Thanks to mdebeljuh and jdivic for fixing the kernel code and tytung for releasing a new version of his kernel with the new code and all the others I forgot to mention.

HD2 MIC CONTROL APP:This app can easily adjust mic gain in realtime inside a call and also set it permanently. Get it FROM MARKET.Thanks to windroidHD

For CLK, try this: http://forum.xda-developers.com/show...&postcount=278

IF YOU DON'T HAVE ENOUGH GAIN EVEN WITH 400 GAIN CHECK THE TWO FILES BELOW. YOU SHOULD HAVE ENOUGH VOICE VOLUME AT THE REMOTE SIDE WITH 400 GAIN!

-----ANYTHING BELOW IS FOR THE CURIOUS OR FOR DEVELOPMENT-----

libaudio.so

[B]This fix is libaudio.so dependent! It is known not to work with "older" drizztje libaudio.so. Working one is THIS. I think this is the iamgpc version. You may get bizzare force closes or slowdowns with "older" drizztje libaudio. The included iamgpc version has robot voice fix and volume level fix, so it works well. New compatible libaudio is included with tytung r12.3 kernel, see above.

default.acdb

This fix includes 122,442 bytes (119,57K) default.acdb. Other sizes may or may not work well, THIS one works. It is from the aosp 2.3.4 nexushd2 rom. It seems 2.3.5 has different acdb file.

It is possible that the 122,442 bytes default.acdb file may be causing voice echo. Try the one below, if there is enough feedback I will update the update zip files.

Alternative ACDB file:

Please check this post, try the acdb file there and give feedback here please whether it fixes echo or not:

http://forum.xda-developers.com/show...&postcount=330

KERNEL DEVELOPERS:

- Here is the "latest" diff file: diff_mic_gain.txt

- Please make sure your kernel code ignores htcleo.acdb. The diff does not have the code to ignore htcleo.acdb. Chefs, you can also just rename/delete htcleo.acdb

- You MUST include the above iamgpc libaudio.so and default.acdb along with 10mic_level script in your kernel zip update file.

HOW IT WORKS:

The new kernel code adjusts mic gain levels from /proc/mic_level

Use a Terminal Emulator or Gscript with the below commands to set gain in REALTIME (even while inside a call)

You can also use the HD2 MIC CONTROL app in Market for easier adjusting.

To set normal mode (handset) gain:

echo '0 350' > /proc/mic_level

To set speakerphone mode gain:

echo '1 600' > /proc/mic_level

More than 600 gives background noise, less than 200 is too quiet.

If you want to set the levels permanently, edit the mic_level init script in /etc/init.d

LeTama's previous method of fixing the high background noise (caused by extreme mic gain) was modifying the acdb file with values from winmo. It worked well for the normal speaking but made speakerphone unusuable and overall audio playback low. Modifying acdb file is difficult, the above fix uses the default.acdb file and modify the values in realtime while inside a call.

While the post states FIXED, there is always room for tweaking or implementing better solutions. Currently the problem is fixed but can also be considered "under development"

----------Anything below is OLD STUFF----------

[B]28/08 EDIT: THE PROBLEM IS FIXED! Thanks to respected developers mdebeljuh and jdivic we are now able to set mic gain level for normal mode and speakerphone mode seperately.

THAT MEANS you will have crystal clear voice with no high background noise while doing normal talking AND you will have working speakerphone mode AND you will have properly high audio playback volume ALL AT THE SAME TIME.

I have tested the test kernel mdebeljuh sent me and I confirm it is working. There will be more testing with values, different roms and file versions.

THIS THREAD IS "NOT" SIMPLY JUST ABOUT HIGH BACKGROUND NOISE PROBLEM. It's already been fixed with LeTama's htcleo.acdb file (but it has side effects, check post 8) This thread is about MIC GAIN LEVELS BEING THE SAME between normal and speakerphone mode. (So you either have high background noise OR not usable speakerphone mode)

--------

Hello everyone,

THIS IS THE LAST "MAJOR" PROBLEM WITH THE HD2 ANDROID PROJECT. It is present in every rom available today.

Since this is almost a year of development, here is the description and history of the problem:

Description of the problem:

With LeTama's 113910 bytes htcleo.acdb file that is included in many roms: Everybody are getting complaints that people can't hear them properly when they are on speakerphone mode, I found out that if you enable speakerphone the mic does not get more sensitive. Normally android has to change mic gain when speakerphone is enabled. Mic gain levels are the same when normal talking, and in speakerphone mode. (I am talking about what volume the remote party hears your voice.

With no htcleo.acdb file or with android's default.acdb file or htcleo.acdb file that is not LeTama's. (same as the default default.acdb): This time the complaints are that the remote party hears too much background noice and can't understand the hd2 caller properly. This is because the mic gain is set to speakerphone levels even when in normal mode.

If you remove LeTama's htcleo.adcb in /etc/firmware (which forces android to use default.acdb instead) the mic becomes too sensitive in both normal and speakerphone mode.

WITH LeTama's htcleo.acdb present mic gain is normal in both normal and speakerphone mode.

WITHOUT LeTama's htcleo.acdb present mic gain high in both normal and speakerphone mode.

That means mic gain is either always in speakerphone mode or always in normal mode depending on acdb file used.

But actually mic gain has to be low in normal mode and high in speakerphone mode. This has to be fixed because you either can't use speakerphone or you get too much backgorund noise and people complain.

I tried with a samsung native android phone and with winmo hd2 and mic gain gets higher (mic gets more sensitive) when speakerphone is enabled. This is not about the speaker on your phone. It is about the microphone in your phone and its gain adjustment by android.

Some ROM chefs include LeTama's htcleo.acdb, some of them don't include any htcleo.acdb file, and some of them just make another copy of default default.acdb file as htcleo.acdb. All files are in /etc/firmware Android's original default.acdb file is 129346 bytes. I don't know if any other different size versions are available.

Here is how I test: I call another phone which I hold to my ear with my hd2. I mute mic of the phone in my ear and put hd2 on the table. I talk or have some audio in the background such as tv or I hit my fingernails on the table or something. I turn speakerphone on the hd2 on and off and see if what I hear on the other phone on my ear get higher or not. OR you can call someone and ask them of course

History:

Normally Android uses default.acdb for audio/mic gain levels. htcleo.acdb is made by LeTama and newer kernels first look for htcleo.acdb and if it is not found fallback to default.acdb. This was made because mic gain is unacceptably high and prevents proper conversation with hd2 android. So many modern hd2 android roms use htcleo.acdb But I don't think every hd2 android rom chef knows about this. File sizes should always be checked. There is also a htcleo.acdb file made by iamgpc (125868 bytes) but it is always in high mic gain mode so you can't talk properly with it. I do not know why he created it.

LeTama says: (Author of the htcleo.acdb file that enables proper understandable conversation, but not properly functioning speakerphone)

The way I did htcleo.acdb was quite complex:

- I patched kernel audio driver to:

1) kill acdb switches in audio driver to avoid interference while extracting values

2) expose a sysfs variable to userland with acdb values.

- I wrote a userspace tool that:

1) Parse a template android acdb to get android acdb channels/bitrates.

2) loops on all acdb entries and get associated winmo values with sysfs kernel variable.

2) reconstruct htcleo.acdb by merging channels/bitrates/values.

With all these, I boot android from haret on SD, get winmo values and generates the acdb with the tools.

As you can see, it's a bit tricky, I can provide you patches and source code, but it's a bit rough and patch is against an old kernel, not sure it will go smoothly.

If you want only to patch htcleo.acdb with android values for some channels, I'd suggest writing a specific tool for that, it's far more easier. The android acdb file structure is quite straightforward if you don't have to interpret audio values and just want to copy entries.

But first, you'll need to identify which entry is used when going speaker mode, you probably need to add few traces in kernel audio driver.

.............

Frankly, I don't know if this can be fixed from htcleo.acdb by adjusting the values, or does kernel need modification, it would require traces to see if the kernel is using same acdb entries or separated ones. If it's separated, you could get speaker mode entries from android and patch them into htcleo.acdb. If it's not, kernel modification is probably required.

.............

I have thought also about not enabling speakerphone once leading to missing data. It could be, however Cotulla told me that the acdb in winmo is initialized completely by spl, so values should be there. But who knows... Anyway, if you need advices on how to patch the acdb, let me know. I'll dig in my archive for the acdb rebuild userspace tool source, it could give you a good base to build a patch tool.

OP Note: LeTama doesn't have time for this matter, but he is willing to share what he did before.

iamgpc says:

MIC gain is not controlled by libaudio.so It is the part of kernel

-----------------

What needs to be done:

First we should find out if the kernel or the acdb file is the culprit. Does the LeTama's current acdb file have different gain values for normal and speakerphone, or are they the same? Does the kernel look for two different values for normal and speakerphone, or erraneously look for a single value?

What I think: Since the original default.acdb file comes with android and also does have equal levels with speakerphone and normal mode then I think current kernels must be wrongfully looking at the normal mode value for speakerphone?

Then fixing the kernel or acdb file whichever is needed.

I believe that finding where the speakerphone mic gain entry is in the acdb file and modifying the kernel code to make it look for this correct value for speakerphone mode, and using LeTama's htcleo.acdb file is the key. Better way would be disabling htcleo.acdb file in kernel and making kernel lower the value it reads from the default.acdb file when in normal mode. This way no rom chef knowledge would be required. (I am sure many chefs will forget/don't know the htcleo.acdb and use default.acdb file)

Note: I do not know if android has AGC (auto gain control) thing in kernel. It is possible that it is interfering with actual mic gain settings.

Unfortunately acdb file also affects audio playback volume, so while fixing background noise with LeTama's acdb file, you may be unhappy with the audio output volume, though it can be fixed with dsp manager or volume+ apps.

Note: LeTama's shared his tools on post 3.

The problem is fixed by mdebeljuh and jdivic. Check the opening sentences of this post.

Attached Files

kernel_tytung_r12.4_noinitrd_magldr.zip -
[Click for QR Code]
(3.17 MB, 3164 views)

Submit to XDA Portal
Quick Reply
Reply

The Following 45 Users Say Thank You to memin1857 For This Useful Post: [ View ]

Gift memin1857 Ad-Free

2happy(19th September 2011), ahmetdamar(30th September 2011), B.Maximenko(31st August 2011), behnamdk(20th September 2012), chripo72(13th July 2011), clyder(14th July 2011), codiak(10th July 2011), DannyBiker(10th July 2011), domado(13th July 2011), erlern(26th August 2011), eseregin(10th July 2011), g.n.a.k(31st July 2011), gasanpride(10th October 2011), Stephen(25th August 2011), guinhill(27th July 2011), hoanbeck(1st October 2011), langthang(4th September 2011), [email-masked](14th July 2011), Luke15153(2nd October 2011), marcimix(10th July 2011), marcjohn(27th August 2011), Memodevran(13th July 2011), mezcal9(26th August 2011), MikeG4936(13th July 2011), mutil(26th August 2011), mwakious(14th July 2011), n1ghtm4r(30th August 2011), nemuro(28th August 2011), one2one69(2nd September 2011), ORiZorrie(25th August 2011), pronor(15th September 2011), rashidkn(26th August 2011), renna1992(10th July 2011), richiegopal(6th September 2011), ricky886(30th August 2011), saftazeen(22nd August 2011), sagarjawaress(14th July 2011), shiftpda(9th September 2011), strifej(14th July 2011), tidus18(26th August 2011), tytung(11th July 2011), Vilen77(3rd September 2011), w0nz3r(30th September 2011), Zupp34(10th July 2011)

Hannes_HD2

View Profile
View Forum Posts

10th July 2011, 10:57 AM
|#2

Senior Member

Thanks Meter: 38

More

164 posts

Join Date:Joined: Apr 2010

Less

For as long as I am using Android on my HD2, I suffer from high mic gain in normale mode (not speakerphone). This is really annoying, so I'd definitely love to see that last glitch to be fixed!

Submit to XDA Portal
Quick Reply
Reply

letama

View Profile

View Forum Posts
Donate to Me

10th July 2011, 12:11 PM
|#3

Senior Member

Thanks Meter: 2,346

Donate to Me

More

1,690 posts

Join Date:Joined: Feb 2008

Less

Hi there!

Here are the files, I included the kernel patch and the resulting q6audio.c. The patch has other crap in it, the only modification required is in q6audio.c. It was against a very old kernel, I'm not sure you can use it "as-is".

You also have the user space tool source and my script to compile it.

To dump values, you have to flash a working WinMo 6.5 to have winmo values in memory and launch android with Haret .

To use it, compile the kernel with the modification. It will somehow kill your audio as it won't set acdb to be able to dump acdb in memory untouched. The userspace tools expect to find a pure android default.acdb in the directory where it's launched, it will query kernel values, and remap it to a proper htcleo.acdb in /sdcard/acdb_out.acdb.

Good luck!

LeTama

Attached Files

acdb_gen_kit.zip -
[Click for QR Code]
(18.0 KB, 1507 views)

Submit to XDA Portal
Quick Reply
Reply

The Following 11 Users Say Thank You to letama For This Useful Post: [ View ]

Gift letama Ad-Free

clyder(14th July 2011), eseregin(10th July 2011), gear_rus(19th July 2011), [email-masked](14th July 2011), Marvlesz(27th August 2011), mwakious(14th July 2011), nemuro(28th August 2011), Rick_1995(13th July 2011), sagarjawaress(14th July 2011), tilleke(11th July 2011), Zupp34(13th July 2011)

memin1857

View Profile
View Forum Posts

10th July 2011, 03:44 PM
|#4

OP Senior Member

Istanbul

Thanks Meter: 204

More

907 posts

Join Date:Joined: Jun 2010

Less

Thanks for the support LeTama

Sent from my HTC HD2 using XDA App

Submit to XDA Portal
Quick Reply
Reply

The Following User Says Thank You to memin1857 For This Useful Post: [ View ]

Gift memin1857 Ad-Free

[email-masked](19th November 2014)

codiak

View Profile
View Forum Posts

10th July 2011, 04:36 PM
|#5

Senior Member

Thanks Meter: 141

More

782 posts

Join Date:Joined: Feb 2009

Less

+1 for this issue.

With or without htcleo file its way too loud.

Would love to have that fixed.

Submit to XDA Portal
Quick Reply
Reply

memin1857

View Profile
View Forum Posts

11th July 2011, 04:56 PM
|#6

OP Senior Member

Istanbul

Thanks Meter: 204

More

907 posts

Join Date:Joined: Jun 2010

Less

This issue deserves more attention. Bump.

Submit to XDA Portal
Quick Reply
Reply

shorty1483

View Profile
View Forum Posts

11th July 2011, 05:25 PM
|#7

Senior Member

Thanks Meter: 389

More

1,131 posts

Join Date:Joined: May 2009

Less

+1

My wife's killing me after every call

Submit to XDA Portal
Quick Reply
Reply

The Following User Says Thank You to shorty1483 For This Useful Post: [ View ]

Gift shorty1483 Ad-Free

paulo_a_b(13th April 2017)

memin1857

View Profile
View Forum Posts

11th July 2011, 06:50 PM
|#8

OP Senior Member

Istanbul

Thanks Meter: 204

More

907 posts

Join Date:Joined: Jun 2010

Less

Guys, if you have the high mic gain problem that means your rom doesn't include "LeTama's" htcleo.acdb file. (113910 bytes, check the file size, your rom chef might have just copied original default.acdb as htcleo.acdb)

Just download the attachment below and extract it. Copy the htcleo.acdb file you just extracted to /etc/firmware with rootexplorer or similar file manager and reboot.

Your calls will be OK by then and people won't complain. But speakerphone mode will also be low gain from now on. But since most of the time you are calling in normal mode, it is better to have htcleo.acdb in /etc/firmware

Attached Files

htcleo.zip -
[Click for QR Code]
(5.0 KB, 1864 views)

Submit to XDA Portal
Quick Reply
Reply

The Following 7 Users Say Thank You to memin1857 For This Useful Post: [ View ]

Gift memin1857 Ad-Free

eseregin(7th August 2011), langthang(26th August 2011), [email-masked](14th July 2011), marcimix(7th August 2011), rashidkn(26th August 2011), sagarjawaress(14th July 2011)

codiak

View Profile
View Forum Posts

11th July 2011, 07:13 PM
|#9

Senior Member

Thanks Meter: 141

More

782 posts

Join Date:Joined: Feb 2009

Less

What about /system/etc/firmware? I saw this path in other threads about this problem?

I have that file in /etc/firmware and /system/etc/firmware but still mic is too loud.

Edit:

OK, overwrote your file with the existing one. Mic seems better now, thanks!

But for me, its still about 25% to loud

I am a bit curios... is this file in somehow involved in bluetooth playback or music output at all?

Trough all the testing I made the last days I am unsure if at least the bluetooth playback is a little bit worse now?

I would be glad if that were not confirmed

Thanks soooo much dude yeah.. love it. kool. i love ya =)

Submit to XDA Portal
Quick Reply
Reply

memin1857

View Profile
View Forum Posts

11th July 2011, 09:52 PM
|#10

OP Senior Member

Istanbul

Thanks Meter: 204

More

907 posts

Join Date:Joined: Jun 2010

Less

I think /etc/firmware and /system/etc/firmware are the same.

I am not sure about bluetooth or audio playback. acdb may possibly affect it but can you try reverting back to see and give feedback?

We really need to make this thread attract attention.

Submit to XDA Portal
Quick Reply
Reply

The Following User Says Thank You to memin1857 For This Useful Post: [ View ]

Gift memin1857 Ad-Free

shendan(27th July 2011)

codiak

View Profile
View Forum Posts

11th July 2011, 10:00 PM
|#11

Senior Member

Thanks Meter: 141

More

782 posts

Join Date:Joined: Feb 2009

Less

Its really hard to tell if you have to reboot your phone and have no real comparison.

I would need a second hd2

But more imported to me is that the mic is still about 25% too loud

Is there a way to tweak the file a bit more?

I have no programming knowledge.

Submit to XDA Portal
Quick Reply
Reply

Post Reply
Subscribe to Thread

Page 1 of 40
1
2
3
11

Last

vBulletin Message

Guest Quick Reply (no urls or BBcode)

The following errors occurred with your submission

Okay

Message:

Posting Quick Reply - Please Wait

Previous Thread
Next Thread

Thread Tools

Show Printable Version

Email this Page

Display Modes

Linear Mode

Switch to Hybrid Mode

Switch to Threaded Mode

Search this Thread

Advanced Search

Top Threads in HD2 Android NAND Development by ThreadRank

[App][9.0+] Easy DND (Do Not Disturb) - Beta Release [open-source]

2nd April 2019

Android Apps and Games

[RECOVERY][UNOFFICIAL] TWRP for Galaxy A40

17th September 2019

Miscellaneous Android Development

[THEME] Exynos MIX Rev.2 No ROOT

27th May 2019

Android Themes

[VPN] ❯ UNLIMITED - NETFLIX & PUBG VPN ❯❯ DNS CHANGER with ADBLOCKER (*PROMO CODES*)

2nd September 2019

Android Apps and Games

[GUIDE] [BOOTLOADER, TWRP] Lenovo K5 PRO L38041

3rd April 2019

Android General

[ROOT][APP][9.0+] Android 10 Launcher (+ gestures, feed)

10th September 2019

Android Apps and Games

[BUNDLE][TWRP] Netflix (Latest Versions)

28th May 2019

Android Apps and Games

[APP][5.0+] Aurora Droid - a FDroid client [May 23]

22nd May 2019

Android Apps and Games

xda-developers
HTC Leo: HD2
HD2 Android
HD2 Android NAND Development

[01/10] [DEV] [FIXED] Low Speakerphone Mic Gain & High Background Noise ONE CLICK FIX by memin1857

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.

Are you a developer? | Terms of Service

-- XDA Classic
-- XDA 2010
-- XDA 2013
---- XDA 2013 Beta - 1024
-- XDA 2015
---- 2015 - Dark Theme

More info

Contact

Advertise

Rules

Suggest Content

Security

Privacy Policy

XDA App

Remove ads on XDA

Root Any Device

How To Guides

XDA's Best

Copyright © xda-developers. Hosted by Leaseweb

We're Social

loading