[HD2 Android NAND Development] ph03n!x:
Anyone seeing this for the first time, please take your time to read at least the first post to ensure you know what your are getting into :)

The attachments at the bottom of this post are NOT THE MOST UPDATED. Read the updated info below.

Update: 20th FEB 2012​

The No Sound Bug, which kills all sounds in the phone when BT is used over a period of time without reboot or instantly if BT Voice Commands are issued, has been fixed effectively.​

HUGE Thanks to the Cyanogenmod team for fixing this pesky bug.

The following kernels currently have the fix (with Test Status):

AOSP/ CM/ MIUI Kernels

Warrenb213's ACA 2.6.35 kernel - My Test Report

Dorimanx's 2.6.32.56 kernel - My Test Report | @themadproducer's Test Report

Tytung's ICS Kernel from AOSP Beta 0.6 onwards

Sense Kernels

marc1706's 2.6.35 Sense kernel - My Test Report

Note: fhasovic's Fikret AOSP/ CM/ MIUI kernel also has the fix implemented, but did not pass the tests (my test | @karapialis' test). But fhasovic has promised to look into it - hopefully there will be a fix in the next version of fikret kernel (Please follow the changelogs in his kernel thread)

Credits:

Whew! This is going to be difficult. Let me try - if I miss someone, please PM me!!! :)

Cyanogenmod team - for the fix, the final nail in the coffin of the pesky bug

drizztje - for finding out that the BT No Sound bug is related to 2WCR and for working on various versions of the libaudio.so files

marc1706 - for incorporating this fix in his kernel, and pointing it out to me, making me restart the spree of tests to confirm the fix

Tytung - for the 12.x test kernels, for all the support and inputs, and for incorporating the fix in the ICS kernel

iamgpc - for the libaudio.so files (including the one that we commonly use in AOSP/ CM ROMs)

themadproducer - for the detailed discussion in Tyween's thread on this issue and for all the tests

DannyBiker - for all the tests and reports

All the testers and participants who helped for this cause- over 6 months and 41 pages, you have helped test and contribute!!

FIXED!!!​

After exactly 6 months of opening this thread, we have squashed this pesky bug!!!​

How do I get this fix?

By using one of the kernels listed/ ROMs with one of these kernels - Note that this list will not be the most updated source for kernels. The kernel changelog will the best place to look!

Does this fix all sound issues?

I Dont Know! Apart from the BT issue, which is kernel related, there are also issues with VoIP calls through viber/ skype that I did not test. These issues in all likelihood are related to the libaudio.so. Most ROMs comes with the iamgpc 2.8E version of libaudio.so - I suggest you try the drizztje v5 version too, just to see if it fixes your issue. If it does, please report back - we may have to start another thread to fix the libaudio.so :D

What libaudio.so do I have in my phone?

Use the CRC32/ MD5 Hash given below to find out:

Original iamgpc version (CRC32: 1EB93DC2 | MD5: 1f182b9593232d47265bcc7c39f941be)

iamgpc version with wonk audio fix (CRC32: 41A370AD | MD5: ab8f4f8b50c20e1e26d62bd992f4178d)

drizztje v2 of libaudio.so (CRC32: 098A3A03 | MD5: 11b4b54be602cd7f07210a7f5e63af28)

drizztje v3 of libaudio.so (CRC32: 34518C00 | MD5: 5549401447d07a2cbaf1b85f6502f1fc)

Newer iamgpc version, included in Tytung R12beta and Typhoon 3.6.2 (CRC32: 79069EB2 | MD5: 52c25aedc8642450ec080ba61c68e042)

iamgpc version from his AOSP ROM v2.8D/ Tytung R12 Final / Typhoon 3.6.4 (CRC32 - 85BCF15E | MD5: f01f0875ba157fcc89f7aeaa8a3b9987) (Updated to 2.8E)

iamgpc version from his AOSP ROM v2.8E (CRC32: F5942882)

drizztje v4 of libaudio.so (CRC32: 19BF49C6) (VoIP kills sound)

drizztje v5 of libaudio.so (CRC32: AB011130 | MD5:957f15c6c47a29c198cd868ccb5b4c2f)

Froyo version - (MD5 Hash: cb92e3c2276a2a82d10c5c5c29898063)

libaudio.so from AmeriCanAndroid ROM (dated 10-22-2011) (CRC32: BF781E9A)

libaudio.so from CM7 Nightly 108 (CRC32: CF5B82AB)

History:​

Update: 18th FEB 2012.​

Test Reports

fhasovic's Fikret 2.16 - This kernel has the fix, but unfortunately failed in my tests for the No Sound bug.

Warrenb213's ACAKernelImplement020812a - This kernel behaved perfectly, and passed the test.

marc1706's Sense kernel v0.1.8 - This kernel also behaved perfectly, and passed the test.

Current status: Fixed, pending validation of fhasovic's fikret kernel that also incorporates the fix.

It feels so good to think the purpose of this thread is achieved, and if someone can validate Fikret kernel, I can take a break :)

Update: 12th FEB 2012.​

@marc1706 seems to have found the root cause that kills audio when we use BT Voice Commands. Please Read this post and help with testing.

Update: 18th Nov 2011.​

What we fixed by removing two way call recording is the sound crashing/ dialer freeze either over a period of time if you use BT for calls/ listening to music, or instantly if you issue a few BT Voice Commands. That does not occur anymore indeed.

I still am getting No Sound once in a while at various times - after a VoIP or normal calls, after disconnecting from BT, etc.

There indeed is something that is left to be fixed - more so because a few users have posted experiences of losing sound in Viber or Skype too, if they turn on the speakerphone. While I am not testing too much lately, partly because it is not as annoying (for me!) as with the BT/ Voice Commands issue, because stuff at work and personal life is giving me a lot less time, and because I am hoping the 2.6.35 kernel will help us.

I will update the thread as and when I stumble upon something. And I request all testers and enthusiasts to do the same, and hope that this stuff goes away once and for all.

On a related note - someone I know with a Galaxy SII has the dialer freeze issue at times too. But for him, after the FC things go back to normal - he still has sound...

Update: 3rd Oct 2011.​

As of today, we have fixed the no Sound bug with varying results. Further progress can be followed in Tytung's Kernel Thread (Changelog). I will take a break from updating this thread until we discover something new/ radical (like making call recording work without killing sound!!). Hearty thanks to @drizztje, @Tytung, @themadproducer, @dannybiker, and everyone who tested/ participated in discussions on this mean issue :)

Update: 28th Sep 2011​

The issue is fixed!!! I used the phone for couple of hours, used BT Voice Commands 25 times, played audio, used BT calls, used VoIP, and ya, I danced like I am a kid!!! :D

The fix is posted by @Tytung in this post (Kernel R12.2) and in this post (Kernel 12.3). I'm EXTREMELY GRATEFUL to Tytung and drizztje (who pointed at the cause in this post, and gave us the most updated libaudio.so v5 that works practically for all our purposes)!!!

(Deleted content to make space for the fix - see this post)