]> sigrok.org Git - libsigrok.git/commit
fx2lafw: Use wide_sampling only if necessary.
authorJan Losinski <redacted>
Thu, 12 Jan 2017 03:45:08 +0000 (04:45 +0100)
committerUwe Hermann <redacted>
Tue, 14 Mar 2017 23:26:49 +0000 (00:26 +0100)
commit8399f68a3ff44e72b2267d43aaba677b0dbd48b4
tree2fa1d9f83437c6a3ef2b14522851b2bf8e3b95da
parentb6be55ce95b8d4d00d64874a05c022846e43cec4
fx2lafw: Use wide_sampling only if necessary.

This changes the fx2lafw code to only enable the wide_sampling (16bit)
method, if at least one of the higher eight channels is enabled. This
has the benefit, that we can use higher samplerates on 16bit LA
devices if we use only the first eight channels.

The wide sampling is also enabled if we have one or more analog
channels.

Signed-off-by: Jan Losinski <redacted>
src/hardware/fx2lafw/api.c