[alsa-devel] How can I make sure the period size is a multiple of 16?
Timur Tabi
timur at freescale.com
Thu Sep 6 19:07:11 CEST 2007
Eliot Blennerhassett wrote:
> You need to add some constraints to your driver, in the open callback.
> E.g.
> snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 16);
Thanks. snd_pcm_hw_constraint_step() is not documented anywhere, and the
comments in the source code don't provide any clues, either. Even the "ALSA
Driver API" document just lists the function, but doesn't actually tell you
what it does.
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the Alsa-devel
mailing list