Alsa: snd_pci_readi() and real-time threads
问题 I've got a dedicated thread that caputures audio from Alsa through snd_pcm_readi(). Periodically I get a short read, meaning snd_pcm_readi() returns a positive integer lower than my buffer size, and there's obviously a 'pop' sound in my audio stream. Then I set the thread priority to real-time and this gives a tangible benefit, far less short reads, but this doesn't solve. Now the question: before going down the bumpy road of a real-time patched Linux kernel, there's something else I can do