libcamera/test/v4l2_videodevice
Laurent Pinchart 302731cdf8 test: v4l2_videodevice: Fix format configuration in the vimc pipeline
The V4L2VideoDeviceTest class configures the capture pipeline with
parameters that are partly hardcoded, and partly come from the current
configuration of the device. In particular, with the vimc pipeline, the
sensor subdevice is configured with the size retrieved from the capture
video node, and the video node is then reconfigured to 640x480.

Relying on the current (and thus possibly random) device configuration
can lead to broken pipes when starting streaming. This currently causes
failures of the dequeue_watchdog test when run after the formats test.

Fix it by explicitly setting the same size for both the vimc subdevs and
the video capture device.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-04-07 16:19:41 +03:00
..
buffer_cache.cpp test: Test V4L2BufferCache::isEmpty() member function 2022-03-28 02:18:39 +03:00
buffer_sharing.cpp libcamera: base: timer: Drop start() overload with int argument 2022-03-25 13:11:12 +02:00
capture_async.cpp libcamera: base: timer: Drop start() overload with int argument 2022-03-25 13:11:12 +02:00
controls.cpp test: v4l2_videodevice: controls: Test 64-bit controls 2021-05-26 20:46:22 +03:00
dequeue_watchdog.cpp test: v4l2_videodevice: dequeue_watchdog: Check return value of streamOn 2022-04-07 16:19:40 +03:00
double_open.cpp test: Omit extra semicolons 2020-10-20 13:15:43 +03:00
formats.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
meson.build test: v4l2_videodevice: Verify the Dequeue Watchdog 2022-04-06 15:44:39 +03:00
request_buffers.cpp test: Omit extra semicolons 2020-10-20 13:15:43 +03:00
stream_on_off.cpp test: Omit extra semicolons 2020-10-20 13:15:43 +03:00
v4l2_m2mdevice.cpp libcamera: base: timer: Drop start() overload with int argument 2022-03-25 13:11:12 +02:00
v4l2_videodevice_test.cpp test: v4l2_videodevice: Fix format configuration in the vimc pipeline 2022-04-07 16:19:41 +03:00
v4l2_videodevice_test.h test: Convert to pragma once 2021-11-24 12:19:00 +00:00