]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: omap3isp: add V4L2_CAP_IO_MC and don't set bus_info
authorHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 30 Apr 2025 07:17:33 +0000 (09:17 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 6 Jan 2026 07:22:46 +0000 (08:22 +0100)
Since this is a media-centric device set the V4L2_CAP_IO_MC
capability. Also don't set bus_info, leave that to the v4l2 core.

This fixes v4l2-compliance errors:

test MC information (see 'Media Driver Info' above): OK
fail: v4l2-compliance.cpp(661): missing bus_info prefix ('media')

Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/platform/ti/omap3isp/ispvideo.c

index 0e7f0bf2b3463b7ef6678f7bd836a952e0b707a7..46609045e2c8f487736eb5e97ef241761aee0921 100644 (file)
@@ -645,11 +645,9 @@ isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap)
 
        strscpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver));
        strscpy(cap->card, video->video.name, sizeof(cap->card));
-       strscpy(cap->bus_info, "media", sizeof(cap->bus_info));
 
        cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT
-               | V4L2_CAP_STREAMING | V4L2_CAP_DEVICE_CAPS;
-
+               | V4L2_CAP_STREAMING | V4L2_CAP_DEVICE_CAPS | V4L2_CAP_IO_MC;
 
        return 0;
 }
@@ -1451,10 +1449,10 @@ int omap3isp_video_init(struct isp_video *video, const char *name)
        video->video.ioctl_ops = &isp_video_ioctl_ops;
        if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
                video->video.device_caps = V4L2_CAP_VIDEO_CAPTURE
-                                        | V4L2_CAP_STREAMING;
+                                        | V4L2_CAP_STREAMING | V4L2_CAP_IO_MC;
        else
                video->video.device_caps = V4L2_CAP_VIDEO_OUTPUT
-                                        | V4L2_CAP_STREAMING;
+                                        | V4L2_CAP_STREAMING | V4L2_CAP_IO_MC;
 
        video->pipe.stream_state = ISP_PIPELINE_STREAM_STOPPED;