Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4eabafe authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (13148): uvcvideo: Handle V4L2_CTRL_TYPE_BUTTON control type in VIDIOC_QUERYCTRL



Return minimum, maximum and step set to 0 without querying the hardware.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ebbb5c3e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -826,6 +826,13 @@ int uvc_query_v4l2_ctrl(struct uvc_video_chain *chain,
		ret = 0;
		goto out;

	case V4L2_CTRL_TYPE_BUTTON:
		v4l2_ctrl->minimum = 0;
		v4l2_ctrl->maximum = 0;
		v4l2_ctrl->step = 0;
		ret = 0;
		goto out;

	default:
		break;
	}