[Desire HD Android Development] mad-murdock:
Patches got merged to CM7

Will be included from nightly 27 onwards. Thread is about to be closed. Use nightly thread for further discussion if any.

Achievment earned: RIVER RUNS RED (write in red on first post of a thread with at least 50 pages)

Build #9 contains Kali's latest kernel plus the 2 patches from hrkfdn about the aic3254 dsp chip. no other tweaks involvled, since i like kali's fast and simple work.

get build #9 here - md5: cc9372655750994cddfd12460dcdcb8b

http://postkreative.eu/mad/mad-batfix-B9-signed.zip

http://uberfail.org/mad/mad-batfix-B9-signed.zip

mirrors by phunkycow - thanks a bunch!

just flash this .zip file from recovery. reflash it each time you installed a new nightly build. #6 and newer contains a cleanup-function to remove older deprecated files from system. reported to work with cm6

no workaround needed anymore with #9

Now that we seem to have reached the final version - thanks to you all and your feedback - without it, it would have been much harder to trace down all issues.

FAQ

Q: Where has the CHANGELOG gone?

A: Move to the top of 2nd post - just scroll down a bit.

Q: Do i need anthing else but the latest patch?

A: No. Except for a cm7 RC or nightly rom installed.

Q: Why do i need to reflash after a new nightly?

A: Because we cannot backup the boot image. So once you flash a nightly/RC, you also get its kernel.

Q: Whats this FM-Radio thing i read about?

A: One discussed way to solve the battery drain in cm7 nigthlies and future RC's would be to use hrkfdn's patches and disable all fm-radio support (not only the apk file, but also the libs and framework). This patch is bypassing disabling FM-Radio and still doing its job. Result of quiet some work.

Q: Will this patch work with other roms?

A: Sense based roms dont need it at all. Non sense roms could use the patch on their kernel, but its not sure if this kernel runs with other roms. You can either try it, or ask in your kernel thread to include the patches. But, this is not final/stable yet. Guranteed to work with CM7, reported to work with CM6.

Q: When will this be in CM7 nightlies?

A: When all issues are solved. It seems thats the case with #8 - so expect nightly integration soon.

Known Issues in #9

None yet.

Monitor Status of DSP Chip

get gscript light free from market

start it, menu -> add script

use "dmesg aic" as title

leave "Needs SU?" checked

write "dmesg | grep -i aic | grep -v suspend | grep -v resume | tail -n 25" into the lower command box and save

back in adw: menu -> add -> shortcuts -> GScript Lite -> dmesg aic

This results in one-click-to-check-homescreen-shortcut

Sample dmesg output

<6>[ 106.647766] aic3254_ioctl: index 13 for 40047313
<6>[ 106.647949] aic3254_set_config: table(0x40047313) index(13)
<6>[ 106.648071] aic3254_set_config: enable rx
<6>[ 106.648498] aic3254_config: size = 15
<6>[ 106.649475] aic3254_config: size = 11
<6>[ 122.602355] aic3254_ioctl: index 29 for 40047313
<6>[ 122.602508] aic3254_set_config: table(0x40047313) index(29)
<6>[ 122.602722] aic3254_config: size = 8
<6>[ 122.603973] aic3254_set_config: disable rx
<6>[ 122.604095] aic3254_powerdown: power off AIC3254
<6>[ 122.604217] aic3254_config: size = 32

at first, the dsp is enabled (enable rx) when i started a mp3 - then the dsp chip is powered off again when i stopped the playback. this power off should occur each time, you stop using sound playback or microphone.

requested feedback:

are there situations, when power off does not work? when you for example have to invoke the old "voice dial" workaround to make poweroff appear again?

Closing comments

build #9 should be the final version. if no more issues arise in the next 48 hours, i will integrate it into cm7 nightlies.

in case you wanna use #5 again, i made a copy of the old opening post below this post, including downloads and instructions.

happy battery life

mad