Re: [LAD] ALSA latency and MMAP

From: Paul Davis <paul@email-addr-hidden>
Date: Mon Sep 07 2009 - 15:11:02 EEST

On Mon, Sep 7, 2009 at 4:53 AM, Clemens Ladisch<clemens@email-addr-hidden> wrote:
> Paul Davis wrote:
>> if you use read/write, you deliver/receive the data to/from the kernel
>> at the time of calling. but there is then an extra buffer inside the
>> ALSA midlevel driver code that holds the data till it is needed (in
>> both directions).
>
> There is no extra buffer for these functions; snd_pcm_write/read* copy
> the data to/from the same hardware buffer that would be used by the mmap
> functions.

snd_pcm_write() and snd_pcm_read(), IIRC, allow reads&writes of chunks
of data that are not period-sized. am i misremembering?

do you have an alternate explanation for louis' timing observations? error?
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Mon Sep 7 16:15:02 2009

This archive was generated by hypermail 2.1.8 : Mon Sep 07 2009 - 16:15:02 EEST