demo: Add some more debug output.
This commit is contained in:
parent
02604ed6de
commit
6f42226475
|
@ -194,14 +194,20 @@ static int hw_set_configuration(int device_index, int capability, void *value)
|
||||||
} else if (capability == SR_HWCAP_SAMPLERATE) {
|
} else if (capability == SR_HWCAP_SAMPLERATE) {
|
||||||
tmp_u64 = value;
|
tmp_u64 = value;
|
||||||
cur_samplerate = *tmp_u64;
|
cur_samplerate = *tmp_u64;
|
||||||
|
sr_dbg("demo: %s: setting samplerate to %" PRIu64, __func__,
|
||||||
|
cur_samplerate);
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
} else if (capability == SR_HWCAP_LIMIT_SAMPLES) {
|
} else if (capability == SR_HWCAP_LIMIT_SAMPLES) {
|
||||||
tmp_u64 = value;
|
tmp_u64 = value;
|
||||||
limit_samples = *tmp_u64;
|
limit_samples = *tmp_u64;
|
||||||
|
sr_dbg("demo: %s: setting limit_samples to %" PRIu64, __func__,
|
||||||
|
limit_samples);
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
} else if (capability == SR_HWCAP_LIMIT_MSEC) {
|
} else if (capability == SR_HWCAP_LIMIT_MSEC) {
|
||||||
tmp_u64 = value;
|
tmp_u64 = value;
|
||||||
limit_msec = *tmp_u64;
|
limit_msec = *tmp_u64;
|
||||||
|
sr_dbg("demo: %s: setting limit_msec to %" PRIu64, __func__,
|
||||||
|
limit_msec);
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
} else if (capability == SR_HWCAP_PATTERN_MODE) {
|
} else if (capability == SR_HWCAP_PATTERN_MODE) {
|
||||||
stropt = value;
|
stropt = value;
|
||||||
|
@ -214,6 +220,8 @@ static int hw_set_configuration(int device_index, int capability, void *value)
|
||||||
} else {
|
} else {
|
||||||
ret = SR_ERR;
|
ret = SR_ERR;
|
||||||
}
|
}
|
||||||
|
sr_dbg("demo: %s: setting patternmode to %d", __func__,
|
||||||
|
default_genmode);
|
||||||
} else {
|
} else {
|
||||||
ret = SR_ERR;
|
ret = SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue