-/* $OpenBSD: utvfu.c,v 1.13 2021/11/24 21:57:56 mglocker Exp $ */
+/* $OpenBSD: utvfu.c,v 1.14 2021/11/28 13:57:37 mglocker Exp $ */
/*
* Copyright (c) 2013 Lubomir Rintel
* Copyright (c) 2013 Federico Simoncelli
if (fsizes->pixel_format != V4L2_PIX_FMT_YUYV)
return (EINVAL);
+ /* The device only supports one frame size. */
+ if (fsizes->index >= 1)
+ return (EINVAL);
+
fsizes->type = V4L2_FRMSIZE_TYPE_DISCRETE;
fsizes->discrete.width = utvfu_norm_params[sc->sc_normi].cap_width;
fsizes->discrete.height = utvfu_norm_params[sc->sc_normi].cap_height;