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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user