All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joachim Förster" <mls.JOFT@gmx.de>
To: alsa-devel@alsa-project.org
Subject: ALSA always writes _whole_ periods, right?
Date: Wed, 13 Jun 2007 18:23:38 +0200	[thread overview]
Message-ID: <1181751818.5752.13.camel@localhost> (raw)


[-- 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

             reply	other threads:[~2007-06-13 16:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13 16:23 Joachim Förster [this message]
2007-06-14 10:39 ` ALSA always writes _whole_ periods, right? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1181751818.5752.13.camel@localhost \
    --to=mls.joft@gmx.de \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.