This is replaced by SR_CONF_SCAN_OPTIONS.
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
struct dev_context *devc;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
(void)sdi;
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
default:
return SR_ERR_ARG;
}
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
sr_spew("Backend requested info_id %d.", id);
switch (id) {
- case SR_DI_HWOPTS:
- *data = hwopts;
- break;
case SR_CONF_SAMPLERATE:
/* TODO: Get rid of this. */
*data = NULL;
(void)sdi;
switch (key) {
+ case SR_CONF_SCAN_OPTIONS:
+ *data = hwopts;
+ break;
case SR_CONF_DEVICE_OPTIONS:
*data = hwcaps;
break;
SR_ST_STOPPING,
};
-/*
- * TODO: This sucks, you just kinda have to "know" the returned type.
- * TODO: Need a DI to return the number of trigger stages supported.
- */
-
-/** Device info IDs. */
-enum {
- /** A list of options supported by the driver. */
- SR_DI_HWOPTS = 10000,
-};
-
/*
* A device supports either a range of samplerates with steps of a given
* granularity, or is limited to a set of defined samplerates. Use either