Re: [Alsa-user] snd_pcm_hw_params_set_buffer_size returns -EINVAL

2016-09-27 Thread Johannes Lorenz
On Tuesday 27 September 2016 08:28:42 Clemens Ladisch wrote: > And you must set a buffer size that is supported by the device. Thanks, I just found snd_pcm_hw_params_set_buffer_size_near(). However, for our app, it would be nice to get the preferred buffer size before any PCM handle and params

Re: [Alsa-user] snd_pcm_hw_params_set_buffer_size returns -EINVAL

2016-09-27 Thread Clemens Ladisch
Johannes Lorenz wrote: > this happens in [1]. You can also call snd_pcm_hw_params_set_buffer_size() > before snd_pcm_hw_params() (that's probably better?), it always results in (- > EINVAL). Calling snd_pcm_hw_params_set_*() after snd_pcm_hw_params() does not make sense. And you must set a

[Alsa-user] snd_pcm_hw_params_set_buffer_size returns -EINVAL

2016-09-26 Thread Johannes Lorenz
Hello, this happens in [1]. You can also call snd_pcm_hw_params_set_buffer_size() before snd_pcm_hw_params() (that's probably better?), it always results in (- EINVAL). The google-answers did not help. Any idea? In my case, the buffer size is 256, but it also fails is I use 32768. Thanks on