TL;DR - Do not compile anything before reading current logs or adjusting some configurations.
Details are below.
If you are sure what are you trying to achieve - then you have to install all necessary development tools by
sudo apt-get install build-essential linux-headers-generic
then get build-dependencies for ALSA by enabling source code repositories (deb-src) in /etc/apt/sources.list
manually by using Software and Updates (software-properties-gtk
) and execution of
sudo apt-get build-dep alsa-driver
But please note that you are trying to compile nearly the same version 1.0.25+dfsg of alsa-driver which is already available in the official repository - see https://packages.ubuntu.com/source/focal/alsa-driver , you can get it by apt-get source alsa-driver
. So after compilation you will not get any differences if you build the package with default configure options. Moreover sudo make install
will make future system administration difficult, you should use checkinstall
here or dpkg-buildpackage -uc -us
. Probably you will add more mess than solve real problem.
So the better way to debug is finding actual bug in already installed deb-packaged version. You really can't guess where issue is - in kernel, in ALSA, in PulseAudio and so on.