Commit 713f3f84 authored by Kumar Abhishek's avatar Kumar Abhishek Committed by Uwe Hermann

beaglelogic: Enable seamless continuous capturing

This is done by setting triggerflags to 1 unless SR_CONF_LIMIT_SAMPLES is set
Signed-off-by: default avatarKumar Abhishek <abhishek@theembeddedkitchen.net>
parent 6eab3021
......@@ -130,10 +130,14 @@ static int dev_open(struct sr_dev_inst *sdi)
/* Get the default attributes */
beaglelogic_get_samplerate(devc);
beaglelogic_get_sampleunit(devc);
beaglelogic_get_triggerflags(devc);
beaglelogic_get_buffersize(devc);
beaglelogic_get_bufunitsize(devc);
/* Set the triggerflags to default for continuous capture unless we
* explicitly limit samples using SR_CONF_LIMIT_SAMPLES */
devc->triggerflags = BL_TRIGGERFLAGS_CONTINUOUS;
beaglelogic_set_triggerflags(devc);
/* Map the kernel capture FIFO for reads, saves 1 level of memcpy */
if (beaglelogic_mmap(devc) != SR_OK) {
sr_err("Unable to map capture buffer");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment