[alsa-devel] Constraining the number of frames per period
perex at perex.cz
Thu Oct 21 16:50:56 CEST 2010
On Thu, 21 Oct 2010, Adam Rosenberg wrote:
> I would like to make sure that all programs that use the sound driver
> I wrote are required to use 512 frames per period. Is there a
> snd_pcm_hw_constraint function that will allow me to do this?
Just use periods_min and period_max = 512 in the hw structure. But why
this constraint? It's better to use different ways in the driver
(timers, etc) to leave reasonable range of the configuration space.
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel