Using The Imaging Source Video Devices on Linux

来源:互联网 发布:一橙网络投诉电话 编辑:程序博客网 时间:2024/05/17 08:00

对刚买的usb ccd相机在linux下的使用困扰了我很长时间。今天终于解决了。

驱动:uvc

linux版本:ubuntu 7.04

相机型号:THE Imaging Source Europe GmbH DFx 21BU04 Camera

ID 199e:8101

在uvc的官方网站上,我是找到了这个id的支持的。可是我装了几个版本的uvc一直识别不了,偶然的机会在google上看到了这样一段话

Hi Vincent,
I have an Imaging Source DMK21 series USB camera which I recently made to work under Linux, using the 2.6.35 (RC5) kernel. The UVC video module is part of the kernel source in drivers/media/video/uvc/ or you can download the video4linux code.
The main patch is in uvc_driver.c, just add the following block to the uvc_ids[] device array:

/* Imaging Source DFx 21BU04 */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
.idVendor = 0x199e,
.idProduct = 0x8101,
.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 0,
.driver_info = UVC_QUIRK_PROBE_DEF
}

(Replace the product ID as necessary.)
In uvc_video.c, in the function __uvc_query_ctrl() ensure the type is set like:
__u8 type = USB_TYPE_CLASS | USB_RECIP_INTERFACE;

Good luck!
Thomas
地址:http://unicap-imaging.org/forums/viewtopic.php?f=6&t=261&p=774&hilit=21BU04#p774
原来在驱动里面添加这个设备号就可以了.我以前尝试着添加过,但是可能中间有几个参数设置的不正确。
再次感慨google真是个好东西....
原创粉丝点击