media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 18 Jun 2021 12:29:11 +0000 (14:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:47 +0000 (10:07 +0200)
commit9b31ea808a4468d5d606d1f82c58b7e7bfb99f66
tree36e239b4e3d965b9db8a02bdb918957bf14e2b96
parent866c6bdd5663d4df7cf384b381b6ef8ba9ffd0e4
media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

Create all the class controls for the device defined controls.

Fixes v4l2-compliance:
Control ioctls (Input 0):
fail: v4l2-test-controls.cpp(216): missing control class for class 00980000
fail: v4l2-test-controls.cpp(216): missing control tclass for class 009a0000
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: FAIL

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvcvideo.h