This is replaced by SR_CONF_SAMPLERATE.
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
*data = &devc->cur_samplerate;
break;
default:
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_samplerate;
sr_spew("%s: Returning trigger types: %s.", __func__,
TRIGGER_TYPES);
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_samplerate;
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
*data = &cur_samplerate;
break;
case SR_DI_PATTERNS:
case SR_DI_TRIGGER_TYPES:
*data = TRIGGER_TYPES;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_samplerate;
*data = coupling;
break;
/* TODO remove this */
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
*data = &tmp;
break;
default:
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_rate;
case SR_DI_TRIGGER_TYPES:
*data = (char *)TRIGGER_TYPES;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_samplerate;
*data = hwcaps;
sr_spew("%s: Returning hwcaps.", __func__);
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
/* TODO: Get rid of this. */
*data = NULL;
sr_spew("%s: Returning current samplerate.", __func__);
*data = TRIGGER_TYPES;
sr_spew("zp: %s: Returning triggertypes: %s.", __func__, TRIGGER_TYPES);
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
devc = sdi->priv;
*data = &devc->cur_samplerate;
SR_DI_HWCAPS,
/** Types of logic trigger supported, out of "01crf" (char *). */
SR_DI_TRIGGER_TYPES,
- /** The currently set samplerate in Hz (uint64_t). */
- SR_DI_CUR_SAMPLERATE,
/** Supported patterns (in pattern generator mode). */
SR_DI_PATTERNS,
/** Supported buffer sizes. */
ctx->unitsize = (ctx->num_enabled_probes + 7) / 8;
if (sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
- o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
ctx->samplerate = *samplerate;
} else
num_probes = g_slist_length(o->sdi->probes);
if (sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
- o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
ctx->samplerate = *samplerate;
} else
num_probes = g_slist_length(o->sdi->probes);
comment[0] = '\0';
if (sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
- o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
if (!(frequency_s = sr_samplerate_string(*samplerate))) {
sr_err("%s: sr_samplerate_string failed", __func__);
ctx->unitsize = (num_enabled_probes + 7) / 8;
if (o->sdi->driver && sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE))
- o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
else {
tmp = 0;
snprintf(ctx->header, 511, "%s\n", PACKAGE_STRING);
num_probes = g_slist_length(o->sdi->probes);
if (o->sdi->driver || sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
- ret = o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ ret = o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
if (ret != SR_OK)
goto err;
PACKAGE, PACKAGE_VERSION);
if (o->sdi->driver && sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
- o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+ o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
(const void **)&samplerate, o->sdi);
ctx->samplerate = *samplerate;
if (!((samplerate_s = sr_samplerate_string(ctx->samplerate)))) {
case SR_DI_HWCAPS:
*data = hwcaps;
break;
- case SR_DI_CUR_SAMPLERATE:
+ case SR_CONF_SAMPLERATE:
if (sdi) {
vdev = sdi->priv;
*data = &vdev->samplerate;
fprintf(meta, "unitsize = %d\n", unitsize);
fprintf(meta, "total probes = %d\n", g_slist_length(sdi->probes));
if (sr_dev_has_hwcap(sdi, SR_CONF_SAMPLERATE)) {
- if (sr_info_get(sdi->driver, SR_DI_CUR_SAMPLERATE,
+ if (sr_info_get(sdi->driver, SR_CONF_SAMPLERATE,
(const void **)&samplerate, sdi) == SR_OK) {
s = sr_samplerate_string(*samplerate);
fprintf(meta, "samplerate = %s\n", s);