Bug 1465

Summary: driver should reflect detected devices' capabilities
Product: libsigrok Reporter: Gerhard Sittig <Gerhard.Sittig>
Component: Driver: openbench-logic-snifferAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Gerhard Sittig 2019-12-27 11:24:21 CET
The current implementation of the ols device driver announces a feature set 
which appears to be the superset of all known and supported devices. See for 
instance the samplerate (10Hz to 200MHz in steps of 1Hz).

When the specific device which is attached gets detected at runtime, the 
library's API will not adjust the set of features or parameter value limits 
to the detected device. Instead the full feature set still gets announced, 
while later "set" requests may get rejected when they exceed the device's 
capabilities.

It is desirable to have the ols driver adjust the set of announced features 
to the specific device which was detected. So that applications can avoid 
presenting options and values to users which actually are not available.