{"id":4044,"url":"https://patchwork.libcamera.org/api/1.1/covers/4044/?format=json","web_url":"https://patchwork.libcamera.org/cover/4044/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200616131244.70308-1-paul.elder@ideasonboard.com>","date":"2020-06-16T13:12:29","name":"[libcamera-devel,00/15] Support v4l2-compliance","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/1.1/people/17/?format=json","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/4044/mbox/","series":[{"id":1006,"url":"https://patchwork.libcamera.org/api/1.1/series/1006/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1006","date":"2020-06-16T13:12:29","name":"Support v4l2-compliance","version":1,"mbox":"https://patchwork.libcamera.org/series/1006/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/4044/comments/","headers":{"Return-Path":"<paul.elder@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3C95B603C1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 16 Jun 2020 15:13:00 +0200 (CEST)","from jade.flets-east.jp (unknown\n\t[IPv6:2400:4051:61:600:2807:bdfa:f6a:8e53])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 701E3F9;\n\tTue, 16 Jun 2020 15:12:58 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"fAG6FkPu\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1592313179;\n\tbh=P8+EzyF/IbHR1HgeDAlQVy5A5RrglzSoDM2Xq33rLTg=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=fAG6FkPuyFxotMLUV9czkaQEhehRixBv/gRXIsb2/BGrrhtmDZ24YtBe/PONhdfrd\n\tcHtNdRnr2deIKPa1hJKaSn8+vZnQ/5gtDwH70AScU7b8HkccZ4SgcnQ0mLLuMBvkie\n\tiCX+xVdl855O7w2w6/vgKwvqJyYeXX6t56f+Y16Y=","From":"Paul Elder <paul.elder@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 16 Jun 2020 22:12:29 +0900","Message-Id":"<20200616131244.70308-1-paul.elder@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 00/15] Support v4l2-compliance","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 16 Jun 2020 13:13:00 -0000"},"content":"This patchset makes the V4L2 compatibility layer comply with\nv4l2-compliance, and v4l2-compliance -s. I have gotten zero failues and\n2 warnings with a uvcvideo libcamera camera. The two warnings are that\nVIDIOC_S_FMT doesn't work from a second fd (after a different fd has\nalready called it), and that VIDIOC_CREATEBUFS is not supported, which I\nthink are fair to not support.\n\nNote that there are a couple failues when using a vimc libcamera camera,\nas these cameras doesn't support setting frame sizes that are not\nmultiples of 3.\n\nAlso, while trying to comply with v4l2-compliance I lost support for\nfirefox. I'll look into this. qv4l2 still works, though.\n\n\nPaul Elder (15):\n  v4l2: v4l2_compat: Support multiple open\n  v4l2: v4l2_camera_proxy: Check for null arg values in ioctl handlers\n  v4l2: v4l2_camera_proxy: Fix v4l2-compliance support for extended\n    formats\n  v4l2: v4l2_camera_proxy: Implement VIDIOC_G/S_PRIORITY\n  v4l2: v4l2_camera_proxy: Implement VIDIOC_ENUMINPUT, VIDIOC_G/S_INPUT\n  v4l2: v4l2_camera_proxy: Implement VIDIOC_ENUM_FRAMESIZES\n  v4l2: v4l2_camera_proxy: Fix v4l2-compliance format tests\n  v4l2: v4l2_camera: Re-validate configuration after adjusted\n  v4l2: v4l2_cammera_proxy: Reset buffer flags on streamoff when already\n    off\n  v4l2: v4l2_camera_proxy: Call streamoff on reqbufs 0\n  v4l2: v4l2_camera: Don't use libcamera::Semaphore for available\n    buffers\n  v4l2: v4l2_camera_proxy: Add sequence number\n  v4l2: v4l2_camera: Clear pending requests on freeBuffers\n  v4l2: v4l2_camera_proxy: Check arg->index bounds for querybuf, qbuf,\n    dqbuf\n  v4l2: v4l2_camera_proxy: Fix v4l2-compliance streaming tests\n\n src/v4l2/v4l2_camera.cpp         |  53 +++-\n src/v4l2/v4l2_camera.h           |   9 +-\n src/v4l2/v4l2_camera_proxy.cpp   | 435 ++++++++++++++++++++++++++-----\n src/v4l2/v4l2_camera_proxy.h     |  58 +++--\n src/v4l2/v4l2_compat_manager.cpp |  25 +-\n 5 files changed, 477 insertions(+), 103 deletions(-)"}