libsigrok/hardware/alsa
Alexandru Gagniuc 0d6ff10394 alsa: Do not use snd_pcm_hw_params_set_rate_near()
snd_pcm_hw_params_set_rate_near() will try to use the samplerate closest to the
given value, potentially starting the acquisition with a different samplerate
than the one specified.

Instead, use snd_pcm_hw_params_set_rate(). It will return an error if the
samplerate is not supported by the hardware, which is arguably better than
collecting data with a different samplerate than the one specified.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-01-01 00:37:17 +01:00
..
Makefile.am alsa: Split into api.c and protocol.c 2012-12-23 17:25:37 +01:00
api.c alsa: Do not use snd_pcm_hw_params_set_rate_near() 2013-01-01 00:37:17 +01:00
protocol.c Fix limit_samples check in various drivers. 2012-12-26 02:11:00 +01:00
protocol.h alsa: Split into api.c and protocol.c 2012-12-23 17:25:37 +01:00