So, I’ve learned about realtime Linux before from my experience with Linux Audio, ALSA, JACK, and the like. So, I have a nifty Raspberry Pi trick up my sleeve related to this. Despite the common conception in Raspberry Pi hardware projects that all high frequency hardware control requires a microcontroller, indeed there are some important circumstances where an additional microcontroller is not needed. Most importantly, by being able to eschew with a microcontroller where it is not needed, you can reduce the cost of your final product.
Review of Linux Audio with ALSA/JACK
So, let’s review. How does realtime Linux Audio with ALSA/JACK work? First of all, you must make sure your Linux kernel is realtime capable. In the past, during the heyday of Linux kernel 2.6.x on x86 CPU hardware, getting good realtime performance meant tweaking the kernel config, applying the Linux realtime kernel patches, and custom compiling your own kernel. However, in later versions of Linux, after kernel 3.x or so, it was no longer necessary to custom compile your kernel to get good realtime performance.