[alsa-devel] snd_pcm_hw_params_set_buffer_time_near: invalid argument
superquad.vortex2 at gmail.com
Sun Mar 6 13:01:34 CET 2011
2011/3/6 Jean-Yves Avenard <jyavenard at gmail.com>
> Hi there.
> I'm a bit puzzled as to what values are considered valids and which
> one aren't when it comes to setting the buffer time with
> For example setting a value of 295ms : all ok. From 300ms to 450ms ->
> "Invalid argument".
> but 500ms for example is okay.
> What's the logic behind it ?
Different sound card driver have different hardware constraints
e.g. HDA-Intel has the following constraints
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
Attach a program buffertime.c to find out those buffer time with invalid
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9734 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20110306/376b9e73/attachment.c
More information about the Alsa-devel