[alsa-devel] DMA buffer alignment

Clemens Ladisch clemens at ladisch.de
Thu Dec 4 17:20:51 CET 2014


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


More information about the Alsa-devel mailing list