From b3d87e1c79c6eb24c70306f3e7795ed351b5aec3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 8 May 2013 22:31:18 +0200 Subject: [PATCH] software/videomixer: use new DMA engine --- software/videomixer/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/software/videomixer/main.c b/software/videomixer/main.c index 118e1291..4a15b641 100644 --- a/software/videomixer/main.c +++ b/software/videomixer/main.c @@ -26,12 +26,12 @@ static void print_status(void) static void capture_fb(void) { - dvisampler0_dma_base_write((unsigned int)framebuffer); - dvisampler0_dma_length_write(sizeof(framebuffer)); - dvisampler0_dma_shoot_write(1); + dvisampler0_dma_frame_size_write(sizeof(framebuffer)); + dvisampler0_dma_slot0_address_write((unsigned int)framebuffer); + dvisampler0_dma_slot0_status_write(1); printf("waiting for DMA..."); - while(dvisampler0_dma_busy_read()); + while(dvisampler0_dma_slot0_status_read() != 2); printf("done\n"); } -- 2.30.2