raspberrypi / pico-extras

BSD 3-Clause "New" or "Revised" License
480 stars 120 forks source link

Claim the chaining DMA fragment channels if used #51

Closed MichaelBell closed 1 year ago

MichaelBell commented 1 year ago

The DMA fragment chaining channels used by scanvideo aren't claimed, so if another module starts claiming DMA channels you end up with a conflict.

This is a simple fix to claim the channels as they are configured. Ideally scanvideo wouldn't use hardcoded channel numbers, but it isn't a big problem to make sure it is initialized first.

lurch commented 1 year ago

Ideally scanvideo wouldn't use hardcoded channel numbers

It's possible that this predates the dma_claim_unused_channel function being added? :shrug: