Deprecate SR_DI_TRIGGER_SOURCES.
This is replaced by SR_CONF_TRIGGER_SOURCE.
This commit is contained in:
parent
41f5bd09b0
commit
328bafabd4
|
@ -432,9 +432,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
|
||||||
case SR_DI_HWCAPS:
|
case SR_DI_HWCAPS:
|
||||||
*data = hwcaps;
|
*data = hwcaps;
|
||||||
break;
|
break;
|
||||||
case SR_DI_TRIGGER_SOURCES:
|
|
||||||
*data = trigger_sources;
|
|
||||||
break;
|
|
||||||
/* TODO remove this */
|
/* TODO remove this */
|
||||||
case SR_CONF_SAMPLERATE:
|
case SR_CONF_SAMPLERATE:
|
||||||
*data = &tmp;
|
*data = &tmp;
|
||||||
|
@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
|
||||||
case SR_CONF_TIMEBASE:
|
case SR_CONF_TIMEBASE:
|
||||||
*data = timebases;
|
*data = timebases;
|
||||||
break;
|
break;
|
||||||
|
case SR_CONF_TRIGGER_SOURCE:
|
||||||
|
*data = trigger_sources;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return SR_ERR_ARG;
|
return SR_ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
|
@ -332,9 +332,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
|
||||||
case SR_DI_HWCAPS:
|
case SR_DI_HWCAPS:
|
||||||
*data = hwcaps;
|
*data = hwcaps;
|
||||||
break;
|
break;
|
||||||
case SR_DI_TRIGGER_SOURCES:
|
|
||||||
*data = trigger_sources;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return SR_ERR_ARG;
|
return SR_ERR_ARG;
|
||||||
}
|
}
|
||||||
|
@ -445,6 +442,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
|
||||||
case SR_CONF_TIMEBASE:
|
case SR_CONF_TIMEBASE:
|
||||||
*data = timebases;
|
*data = timebases;
|
||||||
break;
|
break;
|
||||||
|
case SR_CONF_TRIGGER_SOURCE:
|
||||||
|
*data = trigger_sources;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return SR_ERR_ARG;
|
return SR_ERR_ARG;
|
||||||
}
|
}
|
||||||
|
|
|
@ -553,8 +553,6 @@ enum {
|
||||||
SR_DI_HWCAPS,
|
SR_DI_HWCAPS,
|
||||||
/** Types of logic trigger supported, out of "01crf" (char *). */
|
/** Types of logic trigger supported, out of "01crf" (char *). */
|
||||||
SR_DI_TRIGGER_TYPES,
|
SR_DI_TRIGGER_TYPES,
|
||||||
/** Supported trigger sources. */
|
|
||||||
SR_DI_TRIGGER_SOURCES,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue