From 2f75a7e5b8c6258dc12e9e3128cb30133f66b4f9 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 12 Oct 2021 03:05:09 +0300 Subject: libcamera: v4l2_subdevice: Set format field to V4L2_FIELD_NONE libcamera doesn't support interlaced formats, set the field to V4L2_FIELD_NONE explicitly instead of relying on drivers to interpret V4L2_FIELD_ANY the way we want it. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/v4l2_subdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp index 8fe5e45b..023e2328 100644 --- a/src/libcamera/v4l2_subdevice.cpp +++ b/src/libcamera/v4l2_subdevice.cpp @@ -425,6 +425,7 @@ int V4L2Subdevice::setFormat(unsigned int pad, V4L2SubdeviceFormat *format, subdevFmt.format.width = format->size.width; subdevFmt.format.height = format->size.height; subdevFmt.format.code = format->mbus_code; + subdevFmt.format.field = V4L2_FIELD_NONE; int ret = ioctl(VIDIOC_SUBDEV_S_FMT, &subdevFmt); if (ret) { -- cgit v1.2.1