From b4f070ac599d009b32a1bee2b2402aed6a9a6b26 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 20 Oct 2012 00:07:27 +0200 Subject: For the sake of FR-revision, don't clean DMA before recording and always set frame height to 1088 --- ipecamera/ipecamera.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipecamera') diff --git a/ipecamera/ipecamera.c b/ipecamera/ipecamera.c index acd423f..25fa060 100644 --- a/ipecamera/ipecamera.c +++ b/ipecamera/ipecamera.c @@ -290,7 +290,8 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev ctx->cur_size = 0; ctx->dim.width = IPECAMERA_WIDTH; - GET_REG(n_lines_reg, ctx->dim.height); + ctx->dim.height = IPECAMERA_MAX_LINES; +// GET_REG(n_lines_reg, ctx->dim.height); GET_REG(output_mode_reg, value); switch (value) { @@ -407,12 +408,14 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev } // Clean DMA +/* err = pcilib_skip_dma(vctx->pcilib, ctx->rdma); if (err) { ipecamera_stop(vctx, PCILIB_EVENT_FLAGS_DEFAULT); pcilib_error("Can't start grabbing, device continuously writes unexpected data using DMA engine"); return err; } +*/ if (vctx->params.autostop.duration) { gettimeofday(&ctx->autostop.timestamp, NULL); -- cgit v1.2.3