You will need to boot into the 4.4.0-22 kernel before starting, use the Grub menu through Advanced Options to select the kernel
First we will make a new directory and make copies of the modules
Code:
mkdir sound
cp /lib/modules/4.4.0-22-generic/kernel/sound/pci/hda/*.ko sound/
Now to install some packages to compile
Code:
sudo apt-get install git linux-headers-generic build-essential
Clone the source code I put on github
Code:
git clone https://github.com/jeremyb31/4.4sound-blaster-z.git
cd 4.4sound-blaster-z
Copy some system files so they work
Code:
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
cp /usr/src/linux-headers-$(uname -r)/.config ./
Finally to build the modules and copy them to the correct directory
Code:
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
sudo cp *.ko /lib/modules/$(uname -r)/kernel/sound/pci/hda/
Now you can reboot back to the 4.4.0-22 to test