提交 97ce4ede 编写于 作者: D Dave Stevenson 提交者: Zheng Zengkai

media: bcm2835-unicam: Reinstate V4L2_CAP_READWRITE in the caps

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

v4l2-compliance throws a failure if the device doesn't advertise
V4L2_CAP_READWRITE but allows read or write operations.
We do support read, so reinstate the flag.
Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 9dd9b6e1
......@@ -2418,8 +2418,8 @@ static int register_node(struct unicam_device *unicam, struct unicam_node *node,
vdev->queue = q;
vdev->lock = &node->lock;
vdev->device_caps = (pad_id == IMAGE_PAD) ?
(V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING) :
(V4L2_CAP_META_CAPTURE | V4L2_CAP_STREAMING);
V4L2_CAP_VIDEO_CAPTURE : V4L2_CAP_META_CAPTURE;
vdev->device_caps |= V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
/* Define the device names */
snprintf(vdev->name, sizeof(vdev->name), "%s-%s", UNICAM_MODULE_NAME,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册