LINUX&UVC驱动文件目录
2024-03-11
206
0
LINUX关于相机涉及到的东西有:
V4L2是视频的通用框架,其下可支持各类总线设备,如pci,i2c,usb等各种总线类型。
其目录位于:
E:\linux-5.6.11\linux-5.6.11\drivers\drivers\media
在USB总线框架下,其使用的是uvc驱动,其目录位于:
E:\linux-5.6.11\linux-5.6.11\drivers\media\usb\uvc
2020/05/06 14:16 623 Kconfig
2020/05/06 14:16 290 Makefile
2020/05/06 14:16 25,937 uvcvideo.h
2020/05/06 14:16 61,424 uvc_ctrl.c
2020/05/06 14:16 2,834 uvc_debugfs.c
2020/05/06 14:16 81,223 uvc_driver.c
2020/05/06 14:16 3,011 uvc_entity.c
2020/05/06 14:16 3,735 uvc_isight.c
2020/05/06 14:16 4,964 uvc_metadata.c
2020/05/06 14:16 13,576 uvc_queue.c
2020/05/06 14:16 7,268 uvc_status.c
2020/05/06 14:16 38,240 uvc_v4l2.c
2021/04/09 11:57 62,075 uvc_video.c
其MakeFile内容如下:
# SPDX-License-Identifier: GPL-2.0
uvcvideo-objs := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o \
uvc_status.o uvc_isight.o uvc_debugfs.o uvc_metadata.o
ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
uvcvideo-objs += uvc_entity.o
endif
obj-$(CONFIG_USB_VIDEO_CLASS) += uvcvideo.o
可见,如果配置成内核模块加载的方式时,其对应的驱协文件为uvcvideo.o
在使用MenuConfig编译选项时,其位置为:
Device Drivers -> Multimedia support -> Video capture adapters -> V4L USB Devices -> USB Video Class (UVC)