Test case source:
https://github.com/xzn/libctru_dma_test/blob/master/source/main.c
Interactive test:
https://github.com/xzn/libctru_dma_test/raw/master/libctru_dma_test.3dsx
Press any button to advance.
Compiled using official devkitPro's pacman installed Windows binaries in msys2.
Output from test:

Switched case:

(As suggested in #536)
Edit:
Not sure how to do a test case for this one but the current DMACFG_SRC_IS_DEVICE and DMACFG_USE_SRC_CONFIG do seem to correspond to the current srcCfg, so if the structs are to be reversed, the flags should be too.