demo: Fix pattern mode and amplitude option publishing.

This commit is contained in:
Bert Vermeulen 2014-09-23 22:40:47 +02:00
parent 9a10ce65d6
commit f12d997948
1 changed files with 3 additions and 5 deletions

View File

@ -140,19 +140,17 @@ static const int devopts[] = {
SR_CONF_SAMPLERATE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET,
SR_CONF_LIMIT_MSEC | SR_CONF_GET | SR_CONF_SET,
SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
SR_CONF_NUM_LOGIC_CHANNELS | SR_CONF_GET,
SR_CONF_NUM_ANALOG_CHANNELS | SR_CONF_GET,
SR_CONF_AMPLITUDE | SR_CONF_GET | SR_CONF_SET,
};
static const int devopts_cg_logic[] = {
SR_CONF_PATTERN_MODE,
SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
};
static const int devopts_cg_analog[] = {
SR_CONF_PATTERN_MODE,
SR_CONF_AMPLITUDE,
SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
SR_CONF_AMPLITUDE | SR_CONF_GET | SR_CONF_SET,
};
static const uint64_t samplerates[] = {