18.09.2014 13:13, David Henningsson wrote: > Calling snd_pcm_avail/delay causes a syscall to the kernel, which > communicates with the audio hardware, and can therefore be expensive > on some cards. > > By only updating this value after a sleep and after unusual events, > we can reduce calls to update the hardware pointer. > In particular, if a write goes well, we will now assume that the > buffer has been filled up, instead of re-asking the hardware that > this is actually the case. The patch causes an assertion failure on my laptop. E: [alsa-sink-ALC275 Analog] alsa-sink.c: Assertion 'frames > 0' failed at modules/alsa/alsa-sink.c:651, function mmap_write(). Aborting. -- Alexander E. Patrakov