Comment 63 for bug 318942

Mauricio Marambio (alt256) wrote :

I've did fresh install of ubuntu 9.04 Desktop (not UNR) and sound is NOT working on my HP1020la.

So I tried again with the script I posted before, and following some suggestion in this thread, I made some modifications:
- First, check that you have this packages installed (sudo apt-get install package_name):
 patch, gettext, libncurses5-dev, xmlto, xmltoman
- Use this script:

cd ~
mkdir soundtmp
cd soundtmp

wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2

tar xjf alsa-driver-1.0.19.tar.bz2
tar xjf alsa-lib-1.0.19.tar.bz2
tar xjf alsa-utils-1.0.19.tar.bz2

cd alsa-driver-1.0.19
./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r)
make
sudo make install
cd ..

cd alsa-lib-1.0.19
./configure
make
sudo make install
cd ..

cd alsa-utils-1.0.19
./configure --disable-nls
make
sudo make install

- Change your alsa-base.conf file (sudo gedit /etc/modprobe.d/alsa-base.conf) adding these lines:

options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=hp-m4
options snd-hda-intel enable_msi=1

- Go to System>Preferences>Sound and change first 4 options to ALSA

- Reboot!

- After reboot you should hear login sound...

- In volume control, you'll want to set the input sources to "line" and "front mic" for the HDA Intel (Alsa mixer). Make sure your volumes are not set too low after a reboot, you're off and running (thanks to jasonq).

Built in speakers work, headphones and internal mic. Magic blue keys works too, and i'm not having issues about playing from 2 different sources at the same time (youtube in firefox and mp3 in rhytmbox). However, I didn't test external mic.

Maybe between kernel updates you have to do all this process again.

I hope this helps...or try Arnaud's solution mentioned above (I haven't tried) that works for some people.