Comment 20 for bug 776964

Revision history for this message
Adrian Wilkins (adrian-wilkins) wrote :

To test / install fix... a bit involved this. I can't work out how to get launchpad to make a kernel package for my PPA, so had to do it manually. The source package linked to this isn't actually the full kernel sources, which you need to build.

See

https://help.ubuntu.com/community/Kernel/Compile
http://blog.avirtualhome.com/2010/11/06/how-to-compile-a-ubuntu-10-10-maverick-kernel/

You need the git tree for the kernel you want, currently that's

git://kernel.ubuntu.com/ubuntu/ubuntu-natty.git

The server isn't all that fast ; I found it faster to clone the "Linus" tree from kernel .org

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
cd linux-2.6

And then do

git remote add natty git://kernel.ubuntu.com/ubuntu/ubuntu-natty.git
get fetch natty
git checkout -b fix-ad1988b-mic natty/master

Apply the patch attached to bug ticket

patch sound/pci/hda/patch_analog.c /path/to/patch_analog.c.diff

, edit the debian.master/changelog file as described in
http://blog.avirtualhome.com/2011/01/10/how-to-update-the-version-of-your-custom-ubuntu-10-10-kernel/

... to add a .1 to the end of the version number.

Commit the changes to your git clone

git add debian.master/changelog sound/pci/hda/patch_analog.c
git commit -m "Fixed AD1988B mic input bug"

.. and then build as described in the "compilation" section of article linked above ("How to compile an Ubuntu 10.10 kernel")

Make a cup of tea. And savour it. This takes AAAGES.

You should end up with some deb files in the folder above the sources, with your new version number. Install the header packages, and the linux-image.

cd ..
dpkg -i linux-headers*.deb linux-image*.deb

... and reboot.

If I work out how to get Soyuz to build me a kernel image in my PPA.... you could just download it from that :-(