Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Carlo Caione <carlo@caione.org>, alsa-devel@alsa-project.org
Subject: Re: DMA buffer alignment
Date: Thu, 04 Dec 2014 17:20:51 +0100	[thread overview]
Message-ID: <548089E3.4060105@ladisch.de> (raw)
In-Reply-To: <CAOQ7t2b5Rr6OjpQQ8uvwQ+7O2RL=tTKyjWG1HSJuOc3X4-NDag@mail.gmail.com>

Carlo Caione wrote:
> Several user-space programs (like aplay) work well with my hw, since
> the buffer sent from the user-space is always (padded) of period-size
> bytes, that is aligned to my 64 bytes boundary. Others (like
> speaker-test) are not working because sometimes they snd_pcm_writei()
> a buffer that is not multiple of 64 bytes.

When a program writes two chunks of 32 bytes each, the final contents of
the memory are the same.  So what exactly is the problem?


Regards,
Clemens

  reply	other threads:[~2014-12-04 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04 15:54 DMA buffer alignment Carlo Caione
2014-12-04 16:20 ` Clemens Ladisch [this message]
2014-12-05  1:04   ` Carlo Caione
2014-12-05 11:34     ` Clemens Ladisch
2014-12-05  2:23 ` Raymond Yau

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=548089E3.4060105@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=carlo@caione.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox