[pulseaudio-discuss] [RFC PATCH] alsa-sink: Reduce hardware pointer update syscalls
Alexander E. Patrakov
patrakov at gmail.com
Thu Sep 18 13:07:09 PDT 2014
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
More information about the pulseaudio-discuss
mailing list