[RFC,0/1] camera_sensor: Ensure we check all camera sensor factories
mbox series

Message ID 20260204154015.3755120-1-isaac.scott@ideasonboard.com
Headers show
Series
  • camera_sensor: Ensure we check all camera sensor factories
Related show

Message

Isaac Scott Feb. 4, 2026, 3:40 p.m. UTC
Hi All,

When working on making a CameraSensor class to represent non-RAW
cameras, I found what I believe is a bug with registering new camera
sensors. When CameraSensorFactory::create() iterates over the camera
sensor factories available to it, it will fail and return nullptr if the
first one it tries fails.

I've marked this as RFC because I wanted to ask whether this is
intentional? If it isn't this patch removes the early return and tries
to match other camera sensor factories if the first one fails.

Isaac Scott (1):
  camera_sensor: Ensure we try multiple camera sensor factories

 src/libcamera/sensor/camera_sensor.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)