Snatched hdaudio_rirb_dequeue() function.