This is replaced by a call to config_list() with id SR_CONF_SAMPLERATE.
case SR_DI_CUR_SAMPLERATE:
*data = &devc->cur_samplerate;
break;
- case SR_DI_SAMPLERATES:
- if (!devc->supp_rates.list) {
- sr_err("Instance did not contain a samplerate list.");
- return SR_ERR_ARG;
- }
- *data = &devc->supp_rates;
- break;
default:
return SR_ERR_ARG;
}
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- break;
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- fill_supported_samplerates_if_needed();
- *data = &samplerates;
- sr_spew("%s: Returning samplerates.", __func__);
- break;
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
sr_spew("%s: Returning trigger types: %s.", __func__,
NULL,
};
-/* This will be initialized via hw_info_get()/SR_DI_SAMPLERATES. */
+/* This will be initialized via config_list()/SR_CONF_SAMPLERATE. */
SR_PRIV uint64_t supported_samplerates[255 + 1] = { 0 };
/*
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- break;
case SR_DI_CUR_SAMPLERATE:
*data = &cur_samplerate;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- break;
case SR_DI_TRIGGER_TYPES:
*data = TRIGGER_TYPES;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- break;
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- break;
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
*data = hwcaps;
sr_spew("%s: Returning hwcaps.", __func__);
break;
- case SR_DI_SAMPLERATES:
- /* TODO: Get rid of this. */
- *data = NULL;
- sr_spew("%s: Returning samplerates.", __func__);
- return SR_ERR_ARG;
- break;
case SR_DI_CUR_SAMPLERATE:
/* TODO: Get rid of this. */
*data = NULL;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_SAMPLERATES:
- *data = &samplerates;
- sr_spew("zp: %s: Returning samplerates.", __func__);
- break;
case SR_DI_TRIGGER_TYPES:
*data = TRIGGER_TYPES;
sr_spew("zp: %s: Returning triggertypes: %s.", __func__, TRIGGER_TYPES);
SR_DI_HWOPTS = 10000,
/** A list of capabilities supported by the device. */
SR_DI_HWCAPS,
- /** Samplerates supported by this device (struct sr_samplerates). */
- SR_DI_SAMPLERATES,
/** Types of logic trigger supported, out of "01crf" (char *). */
SR_DI_TRIGGER_TYPES,
/** The currently set samplerate in Hz (uint64_t). */