Download your current kernel headers:
sudo aptitude install linux-headers-$(uname -r)
If the command fails with “not found” error, install headers package appropriate for your running kernel. Or install whole kernel source by
sudo apt-get source linux-image-$(uname -r)
Download development software stack:
sudo aptitude install kernel-package
Clone git sound tree:
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/tiwai/sound.git
If needed, switch to another branch:
cd sound
git checkout -b ak411x-fix remotes/origin/topic/ak411x-fix
cd ..
Clone git alsa-driver-build tree:
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/tiwai/alsa-driver-build.git
Setup alsa kernel, configure, compile:
cd alsa-driver-build.git/alsa
utils/setup-alsa-kernel ../../sound
./gitcompile
If your kernel headers are located in a different directory than /usr/src/linux-headers-$(uname -r), specify the path with the -c parameter:
utils/setup-alsa-kernel -c /usr/src/YOUR_KERNEL_SOURCE_OR_HEADERS ../../sound
Install the compiled modules:
sudo make install
reboot the machine or just reload the drivers:
killall /usr/bin/pulseaudio; sudo /etc/init.d/alsasound stop; sudo /etc/init.d/alsasound stop; sudo modprobe snd-hda-intel; sudo modprobe snd-ice1724