zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.92k stars 6.65k forks source link

drivers: video: Disable the driver if real camera presents #81725

Open trunghieulenxp opened 23 hours ago

trunghieulenxp commented 23 hours ago

Do not enable the video sw generator if a real camera is present. This helps to save some spaces and to avoid unrelated code going into the built image.

If the real camera presents, there will be a warning which cannot be avoided: `warning: VIDEO_SW_GENERATOR (defined at drivers/video/Kconfig.sw_generator:8) was assigned the value 'y' but got the value 'n'

trunghieulenxp commented 21 hours ago

Commit titile should be changed to "drivers: video: sw_generator: Disable the driver if a real camera presents" as this affects only the video sw generator driver"

Hi, I have modified it.