At the moment the user might select 1M samples which is impossible with an OLS. The list should be filtered.
What is needed is some kind of API to expose the capability of the device, some kind of hardware capabilities API, or HWCAP - if you will.
We should be able to just sr_config_list on SR_CONF_LIMIT_SAMPLES, but there is little (or no?) support for this in the drivers.
In addition to this problem the maximum number of samples an OLS user can capture with 8 probes is limited to 10k because of the drop-down menu. The next option is 25k which is 1,000 more samples than the OLS supports. I edited my local install to resolve this issue but it would be much more efficient to allow users to enter their own value; the samplerate option allows this already (though it is set in two different place, both of which must match to be successful).
libsigrok now has a facility for this: SR_CONF_MAX_UNCOMPRESSED_SAMPLES.
Check sigrok-cli commits c7a5cb124 and be7813219 for implementation.
Fixed in 1d04852f3d78a49360da3e8a5289793fbeae2e0f