diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2023-02-24 07:30:23 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-03-07 21:55:05 +0000 |
commit | 2a261d911f50d925be7b8921c1af58cde8a7f545 (patch) | |
tree | 2654d5b0a479f21f09788410b7f8b5bc993a0f4e /src/ipa/raspberrypi/controller/rpi/ccm.cpp | |
parent | 471cbc0ef7098c720a7395fa2f90cb3acdec7c4c (diff) |
pipeline: raspberrypi: Iterate over all Unicam instances in match()
On Raspberry Pi Compute Module platforms, it is possible to attach a
single camera device only to the secondary Unicam port. The current
logic of PipelineHandlerRPi::match() will return a failure during
enumeration of the first Unicam media device (due to no sensor attached,
or sensor failure) and thus the second Unicam media device will never be
enumerated.
Fix this by looping over all Unicam instances in PipelineHandlerRPi::match()
until a camera is correctly registered, or return a failure otherwise.
Reported-on: https://github.com/raspberrypi/libcamera/issues/44
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/ccm.cpp')
0 files changed, 0 insertions, 0 deletions