Skip to content

Commit 6ab8711

Browse files
authored
Claim the chaining DMA channels if used (#51)
1 parent 67e5088 commit 6ab8711

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rp2_common/pico_scanvideo_dpi/scanvideo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ bool scanvideo_setup_with_timing(const scanvideo_mode_t *mode, const scanvideo_t
15091509
1,
15101510
#endif
15111511
false);
1512+
dma_channel_claim(PICO_SCANVIDEO_SCANLINE_DMA_CB_CHANNEL);
15121513
#endif
15131514
#if PICO_SCANVIDEO_PLANE_COUNT > 1
15141515
channel_config = dma_channel_get_default_config(PICO_SCANVIDEO_SCANLINE_DMA_CHANNEL2);
@@ -1548,6 +1549,7 @@ bool scanvideo_setup_with_timing(const scanvideo_mode_t *mode, const scanvideo_t
15481549
1,
15491550
#endif
15501551
false);
1552+
dma_channel_claim(PICO_SCANVIDEO_SCANLINE_DMA_CB_CHANNEL2);
15511553
#endif
15521554
#if PICO_SCANVIDEO_PLANE_COUNT > 2
15531555
#if PICO_SCANVIDEO_PLANE3_FRAGMENT_DMA

0 commit comments

Comments
 (0)