[alsa-devel] snd_pcm_hw_params_set_buffer_time_near: invalid argument

Jean-Yves Avenard jyavenard at gmail.com
Sun Mar 6 12:49:28 CET 2011

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 ?
It's obviously related to the sampling rate, the audio format and the
number of channels ; as the values giving me "Invalid argument" change

Any comments would be greatly appreciated.


More information about the Alsa-devel mailing list