sudo apt-get install alsa-source
cd /usr/src/
sudo tar xvjf alsa-driver.tar.bz2
cd modules/alsa-driver/
sudo ./configure --with-kernel=/usr/src/linux-headers-$(uname -r) --with-cards=hda-intel --with-oss=yes
cd alsa-kernel
sudo patch -p1 ... # repeat with all three patches
cd ..
sudo make
sudo make install
Rebuilding ALSA works with 2.6.22-10 too.
Instructions that work for me:
sudo apt-get install alsa-source alsa-driver/ kernel= /usr/src/ linux-headers- $(uname -r) --with- cards=hda- intel --with-oss=yes
cd /usr/src/
sudo tar xvjf alsa-driver.tar.bz2
cd modules/
sudo ./configure --with-
cd alsa-kernel
sudo patch -p1 ... # repeat with all three patches
cd ..
sudo make
sudo make install
Now either reboot or reload all sound modules:
killall mixer_applet2 && sudo modprobe -r snd-hda-intel
sudo rmmod snd-seq-dummy snd-seq-oss snd-seq-midi snd-pcm-oss
sudo rmmod snd-mixer-oss snd-pcm snd-hwdep snd-rawmidi snd-seq-midi-event
sudo rmmod snd-page-alloc snd-seq
sudo rmmod snd-timer snd-seq-device
sudo rmmod snd
sudo rmmod soundcore
sudo depmod -a
sudo modprobe snd-hda-intel
Finally, use alsamixer to unmute the headphones & internal speakers, and set
PCM volume to something louder than 0%.