Patching the alsa snd-usb-audio module using alsa sources

  • Story categorisation:

On modern Linux boxes, the alsa modules are part of the kernel, in which case you shouldn't need the recipe described here. However, if you need to patch alsa on a machine where alsa is not part of the kernel, or can't rebuild the modules within the kernel for some reason, the following instructions might help.

Get the package of alsa drivers from the alsa project, unpack it, and build it:


The reason for needing the --with-oss=no flag is that oss support is no-longer included in most modern kernels, and without it, alsa will not build. I have found that it is necessary to limit the build to just the usb-audio driver with the --with-cards flag, otherwise the build fails due to some problem with a Korg directory. If you have other cards that you want to use, you will have to add them to the list specified by --with-cards. Now install your new modules into the place where the kernel expects to find them:


The rebuilt kernel modules are most likely not compatible with the previous versions already in memory, so I would suggest you just reboot at this point so the kernel can load the new ones from scratch.

So now you know you can rebuild alsa and install it, you can go back to the main recipe, and patch the alsa source. You'll be in the alsa-driver-1.0.25 directory when you apply the patches.

Monday, 24th February 2020

A Deodar site terms