23 Feb
2012
23 Feb
'12
10:01 a.m.
Philip Spencer wrote:
3. What should happen? (a) The call returns immediately, since there's lots of room in the buffer. (b) The call returns after one I/O period's worth of data has been drained from the buffer.
(a)
If the correct answer is (a) (ALSA's current behaviour), then is there any mechanism for an app to achieve (b) -- get woken up after one I/O period's worth of data have been drained (other than just doing some infinite loop of sleeping then checking snd_pcm_avail periodically)?
Adjust avail_min (but note that wakeups happen only at period boundaries).
Regards, Clemens