software/videomixer: use new DMA engine
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 8 May 2013 20:31:18 +0000 (22:31 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 8 May 2013 20:31:18 +0000 (22:31 +0200)
software/videomixer/main.c

index 118e1291dbbd006b53dc74b2d7ca92d41c74a458..4a15b6413e37c50e7f6ad7678803c0dca8faa3ba 100644 (file)
@@ -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");
 }