git: bae084550c8c - main - video(4): add missing V4L2_CAP_EXT_PIX_FORMAT feature
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 06:59:10 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=bae084550c8caa5e13504fcb5b962256b68c29be
commit bae084550c8caa5e13504fcb5b962256b68c29be
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-09-12 05:56:06 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-09-14 06:56:17 +0000
video(4): add missing V4L2_CAP_EXT_PIX_FORMAT feature
this fixes, 2 failed v4l2-compliances tests
---
sys/dev/video/video.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/dev/video/video.c b/sys/dev/video/video.c
index e2de3974c607..660e09642110 100644
--- a/sys/dev/video/video.c
+++ b/sys/dev/video/video.c
@@ -343,8 +343,9 @@ video_querycap(struct video_device *vd, struct v4l2_capability *cap)
strlcpy((char *)cap->card, vc.card, sizeof(cap->card));
strlcpy((char *)cap->bus_info, vc.bus_info, sizeof(cap->bus_info));
cap->version = vc.version;
- cap->device_caps = vc.capabilities;
- cap->capabilities = vc.capabilities | V4L2_CAP_DEVICE_CAPS;
+ cap->device_caps = vc.capabilities | V4L2_CAP_EXT_PIX_FORMAT;
+ cap->capabilities = vc.capabilities | V4L2_CAP_DEVICE_CAPS |
+ V4L2_CAP_EXT_PIX_FORMAT;
return (0);
}