diff --git a/samples/subsys/video/capture/boards/frdm_mcxn947_cpu0.conf b/samples/subsys/video/capture/boards/frdm_mcxn947_cpu0.conf new file mode 100644 index 000000000000000..4a604bc267ef25b --- /dev/null +++ b/samples/subsys/video/capture/boards/frdm_mcxn947_cpu0.conf @@ -0,0 +1,5 @@ +CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=40000 +CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=2 +# Workaround for issue where SDMA driver needs to start before camera, so that +# clock output will be generated for camera device +CONFIG_CHECK_INIT_PRIORITIES=n diff --git a/samples/subsys/video/capture/src/main.c b/samples/subsys/video/capture/src/main.c index b195e6d75a74e27..2cc51dfba1dd4a0 100644 --- a/samples/subsys/video/capture/src/main.c +++ b/samples/subsys/video/capture/src/main.c @@ -42,6 +42,15 @@ int main(void) return 0; } + video = dev; +#elif defined(CONFIG_VIDEO_MCUX_SDMA) + const struct device *const dev = DEVICE_DT_GET_ONE(nxp_video_smartdma); + + if (!device_is_ready(dev)) { + LOG_ERR("%s: device not ready.\n", dev->name); + return 0; + } + video = dev; #endif