All of lore.kernel.org
 help / color / mirror / Atom feed
* ALSA always writes _whole_ periods, right?
@ 2007-06-13 16:23 Joachim Förster
  2007-06-14 10:39 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Joachim Förster @ 2007-06-13 16:23 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 677 bytes --]

Hi ALSA devs,

I have a quick question regarding the filling of the usual ring buffer
in RAM (used by sound controllers via DMA), just to be really sure:

Is it true, that ALSA always writes (via mmap'ing) _whole_ periods?

I took snd-dummy and modified it to use "ack()" method and tried to
confirm, if the above is true _without_ memory mapping (classical
read/write). It seem's to be true, ALSA is "filling up" the last (not
always complete) period - e.g. if the played wav file is not a multiple
of periodsize in length.
But well, with mmap, I cannot see the copying action (done by ALSA
library, right?) ... so, thus my question ;-) .

Thanks,
 Joachim


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-27 12:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-13 16:23 ALSA always writes _whole_ periods, right? Joachim Förster
2007-06-14 10:39 ` Takashi Iwai
2007-06-16 21:35   ` Joachim Förster
2007-06-20 10:45     ` Takashi Iwai
     [not found]       ` <1182677696.5697.25.camel@localhost>
2007-06-27 12:47         ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.