OSDN Git Service

media: v4l2-ioctl.c: allow multiplanar for touch
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Sun, 15 Dec 2019 11:07:33 +0000 (12:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 12:23:33 +0000 (13:23 +0100)
There is no reason to prohibit multiplanar support for touch devices,
so just allow it.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c

index 4e70058..282ffee 100644 (file)
@@ -961,7 +961,7 @@ static int check_fmt(struct file *file, enum v4l2_buf_type type)
                        return 0;
                break;
        case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
-               if (is_vid && is_rx && ops->vidioc_g_fmt_vid_cap_mplane)
+               if ((is_vid || is_tch) && is_rx && ops->vidioc_g_fmt_vid_cap_mplane)
                        return 0;
                break;
        case V4L2_BUF_TYPE_VIDEO_OVERLAY: