[libcamera-devel] [PATCH 4/4] tests: camera-sensor: Drop check on media bus format
Niklas Söderlund
niklas.soderlund at ragnatech.se
Mon Aug 5 17:51:33 CEST 2019
Linux commit b6c61a6c37317efd ("media: vimc: propagate pixel format in
the stream") changes the sensor in the vimc media graph to accept any
media bus format set on it. This prevents the camera-sensor test case to
verify that a supported media bus format is selected.
In lack of a better fix remove the check for media bus format.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
test/camera-sensor.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp
index 092cbdd8111ce70d..a04b7333daecd9dd 100644
--- a/test/camera-sensor.cpp
+++ b/test/camera-sensor.cpp
@@ -87,10 +87,8 @@ protected:
MEDIA_BUS_FMT_SBGGR10_1X10,
MEDIA_BUS_FMT_BGR888_1X24 },
Size(1024, 768));
- if (format.mbus_code != MEDIA_BUS_FMT_SBGGR10_1X10 ||
- format.size != Size(4096, 2160)) {
- cerr << "Failed to get a suitable format, expected 4096x2160-0x"
- << std::hex << MEDIA_BUS_FMT_SBGGR10_1X10
+ if (format.size != Size(4096, 2160)) {
+ cerr << "Failed to get a suitable format, expected 4096x2160"
<< ", got " << format.toString() << endl;
return TestFail;
}
--
2.22.0
More information about the libcamera-devel
mailing list