[alsa-devel] Will we ever see a low latency/high performance PCM api for usb, firewire, avb ?
Jaroslav Kysela
perex at perex.cz
Fri Apr 26 08:37:24 CEST 2019
Dne 25. 04. 19 v 22:54 Ralf Beck napsal(a):
> Subject says it all.
>
> During the Dec/Jan period i did some USB patches for the Motu AVB series and a trivial alsa driver to connect my Motu via AVB for a single i/o stream. So i discovered how totally unsuitable the mmapped ringbuffer model of alsa is for the above types of interfaces. Is there any intention to change this ?
> I've read that this has already been discussed during miniconf 2017 (USB) and 2018 (AVB). Any results?
Any idea to improve the transfer method? The problem with the serial buses is
that you have to queue usually more samples to avoid underruns. The system
scheduling comes to play, too (no direct DMA transfers from the audio buffer
without further main CPU intervention).
Also, you can write only read/write driver without mmap support (ALSA API
supports this mode). But I don't think that it will help much. If you have
problem to find good ring buffer size / period size settings, it's usually
because of the hardware limitation or the system scheduler settings.
Jaroslav
--
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
More information about the Alsa-devel
mailing list