Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 7ae3c02

Browse files
committed
change uvc video node
1 parent 34ced19 commit 7ae3c02

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ int uvc_register_video_device(struct uvc_device *dev,
19581958
*/
19591959
video_set_drvdata(vdev, stream);
19601960

1961-
ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
1961+
ret = video_register_device(vdev, VFL_TYPE_VIDEO, 50);
19621962
if (ret < 0) {
19631963
dev_err(&stream->intf->dev,
19641964
"Failed to register %s device (%d).\n",

drivers/media/v4l2-core/v4l2-dev.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,10 @@ int __video_register_device(struct video_device *vdev,
907907

908908
/* Part 1: check device type */
909909
switch (type) {
910+
case VFL_TYPE_UVC:
911+
name_base = "uvcvideo";
912+
type = VFL_TYPE_VIDEO;
913+
break;
910914
case VFL_TYPE_VIDEO:
911915
name_base = "video";
912916
break;

include/media/v4l2-dev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ enum vfl_devnode_type {
4040
VFL_TYPE_SUBDEV,
4141
VFL_TYPE_SDR,
4242
VFL_TYPE_TOUCH,
43+
VFL_TYPE_UVC,
4344
VFL_TYPE_MAX /* Shall be the last one */
4445
};
4546

0 commit comments

Comments
 (0)