summaryrefslogtreecommitdiffstats
path: root/dma.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 06:25:14 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 06:25:14 +0200
commitec5fd54c7559392139fa704a57185f4d4244dfde (patch)
tree05c138b1d5a350f5454a1a18bd051546e7cf8632 /dma.c
parent112030c40f88dde281073e00e4c24cc48daa99d2 (diff)
downloadipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.gz
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.bz2
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.tar.xz
ipecamera-ec5fd54c7559392139fa704a57185f4d4244dfde.zip
Few fixes
Diffstat (limited to 'dma.c')
-rw-r--r--dma.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dma.c b/dma.c
index 45466b7..db7625c 100644
--- a/dma.c
+++ b/dma.c
@@ -72,7 +72,6 @@ int pcilib_start_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t
}
if (!ctx->model_info.dma_api->start_dma) {
- //pcilib_error("The IRQs are not supported by configured DMA engine");
return 0;
}
@@ -94,10 +93,12 @@ int pcilib_stop_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t f
}
if (!ctx->model_info.dma_api->stop_dma) {
- //pcilib_error("The IRQs are not supported by configured DMA engine");
return 0;
}
-
+
+
+ printf("stop dma: %li\n", dma);
+
return ctx->model_info.dma_api->stop_dma(ctx->dma_ctx, dma, flags);
}
@@ -119,7 +120,7 @@ int pcilib_enable_irq(pcilib_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flag
//pcilib_error("The IRQs are not supported by configured DMA engine");
return 0;
}
-
+
return ctx->model_info.dma_api->enable_irq(ctx->dma_ctx, irq_type, flags);
}