[alsa-devel] How to wait for end of callback?